Changeset 106777 in webkit
- Timestamp:
- Feb 5, 2012 11:39:40 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106776 r106777 1 2012-02-05 Peter Rybin <peter.rybin@gmail.com> 2 3 Web Inspector: CodeGeneratorInspector.py: switch domain agents to formal interfaces in BackendDispatcher 4 https://bugs.webkit.org/show_bug.cgi?id=77444 5 6 Reviewed by Yury Semikhatsky. 7 8 All agent code is switched to formal interfaces. Actual agent class 9 names and includes are dropped from InspectorBackendDispatcher.h. 10 11 * inspector/CodeGeneratorInspector.py: 12 (DomainNameFixes.get_fixed_data): 13 (Generator.go): 14 * inspector/InspectorAgent.h: 15 * inspector/InspectorApplicationCacheAgent.h: 16 * inspector/InspectorCSSAgent.cpp: 17 (WebCore::InspectorCSSAgent::getMatchedStylesForNode): 18 * inspector/InspectorCSSAgent.h: 19 (InspectorCSSAgent): 20 * inspector/InspectorConsoleAgent.h: 21 * inspector/InspectorDOMAgent.cpp: 22 (WebCore::InspectorDOMAgent::highlightNode): 23 * inspector/InspectorDOMAgent.h: 24 (InspectorDOMAgent): 25 * inspector/InspectorDOMDebuggerAgent.h: 26 * inspector/InspectorDOMStorageAgent.h: 27 * inspector/InspectorDatabaseAgent.h: 28 * inspector/InspectorDebuggerAgent.cpp: 29 (WebCore::InspectorDebuggerAgent::setBreakpoint): 30 (WebCore::InspectorDebuggerAgent::continueToLocation): 31 * inspector/InspectorDebuggerAgent.h: 32 (InspectorDebuggerAgent): 33 * inspector/InspectorFileSystemAgent.h: 34 * inspector/InspectorIndexedDBAgent.h: 35 * inspector/InspectorMemoryAgent.h: 36 * inspector/InspectorPageAgent.h: 37 * inspector/InspectorProfilerAgent.cpp: 38 (WebCore::InspectorProfilerAgent::getProfile): 39 (WebCore::InspectorProfilerAgent::removeProfile): 40 * inspector/InspectorProfilerAgent.h: 41 (InspectorProfilerAgent): 42 * inspector/InspectorResourceAgent.cpp: 43 (WebCore::InspectorResourceAgent::setExtraHTTPHeaders): 44 * inspector/InspectorResourceAgent.h: 45 (InspectorResourceAgent): 46 * inspector/InspectorRuntimeAgent.h: 47 * inspector/InspectorTimelineAgent.cpp: 48 (WebCore::InspectorTimelineAgent::start): 49 * inspector/InspectorTimelineAgent.h: 50 (InspectorTimelineAgent): 51 * inspector/InspectorWorkerAgent.cpp: 52 (WebCore::InspectorWorkerAgent::sendMessageToWorker): 53 * inspector/InspectorWorkerAgent.h: 54 (InspectorWorkerAgent): 55 1 56 2012-02-05 Kentaro Hara <haraken@chromium.org> 2 57 -
trunk/Source/WebCore/inspector/CodeGeneratorInspector.py
r106469 r106777 154 154 @classmethod 155 155 def get_fixed_data(cls, domain_name): 156 if domain_name in cls.agent_type_map:157 agent_name_res = cls.agent_type_map[domain_name]158 else:159 agent_name_res = "Inspector%sAgent" % domain_name160 161 156 field_name_res = Capitalizer.upper_camel_case_to_lower(domain_name) + "Agent" 162 157 163 158 class Res(object): 164 agent_type_name = agent_name_res165 159 skip_js_bind = domain_name in cls.skip_js_bind_domains 166 160 agent_field_name = field_name_res … … 185 179 186 180 skip_js_bind_domains = set(["Runtime", "DOMDebugger"]) 187 agent_type_map = {"Network": "InspectorResourceAgent", "Inspector": "InspectorAgent", }188 181 189 182 … … 1676 1669 class InspectorFrontendChannel; 1677 1670 1678 $forwardDeclarations1679 1680 1671 typedef String ErrorString; 1681 1672 … … 1732 1723 #include "InspectorFrontendChannel.h" 1733 1724 #include <wtf/text/WTFString.h> 1734 $includes1735 1725 1736 1726 namespace WebCore { … … 1748 1738 { } 1749 1739 1750 v oid clearFrontend() { m_inspectorFrontendChannel = 0; }1751 v oid dispatch(const String& message);1752 v oid reportProtocolError(const long* const callId, CommonErrorCode, const String& errorMessage, PassRefPtr<InspectorArray> data) const;1740 virtual void clearFrontend() { m_inspectorFrontendChannel = 0; } 1741 virtual void dispatch(const String& message); 1742 virtual void reportProtocolError(const long* const callId, CommonErrorCode, const String& errorMessage, PassRefPtr<InspectorArray> data) const; 1753 1743 using InspectorBackendDispatcher::reportProtocolError; 1754 1744 … … 2398 2388 backend_constructor_init_list = [] 2399 2389 backend_field_list = [] 2400 backend_forward_list = []2401 backend_include_list = []2402 2390 frontend_constructor_init_list = [] 2403 2391 type_builder_fragments = [] … … 2460 2448 Generator.backend_agent_interface_list.append(" class %s {\n" % agent_interface_name) 2461 2449 Generator.backend_agent_interface_list.append(" public:\n") 2462 Generator.backend_agent_interface_list.append(" virtual ~%s() { }\n" % agent_interface_name);2463 2450 if "commands" in json_domain: 2464 2451 for json_command in json_domain["commands"]: 2465 2452 Generator.process_command(json_command, domain_name, agent_field_name) 2453 Generator.backend_agent_interface_list.append("\n protected:\n") 2454 Generator.backend_agent_interface_list.append(" virtual ~%s() { }\n" % agent_interface_name) 2466 2455 Generator.backend_agent_interface_list.append(" };\n\n") 2467 2456 … … 2478 2467 Generator.backend_virtual_setters_list, 2479 2468 Generator.backend_setters_list, 2480 Generator.backend_field_list, 2481 Generator.backend_forward_list, 2482 Generator.backend_include_list] 2469 Generator.backend_field_list] 2483 2470 2484 2471 for json_domain in sorted_json_domains: … … 2494 2481 agent_interface_name = Capitalizer.lower_camel_case_to_upper(domain_name) + "CommandHandler" 2495 2482 2496 agent_type_name = domain_fixes.agent_type_name2497 2483 agent_field_name = domain_fixes.agent_field_name 2498 2484 Generator.backend_constructor_init_list.append(" , m_%s(0)" % agent_field_name) 2499 Generator.backend_virtual_setters_list.append(" virtual void registerAgent(%s /* %s */* %s) = 0;" % (agent_type_name, agent_interface_name, agent_field_name)) 2500 Generator.backend_setters_list.append(" void registerAgent(%s /* %s */* %s) { ASSERT(!m_%s); m_%s = %s; }" % (agent_type_name, agent_interface_name, agent_field_name, agent_field_name, agent_field_name, agent_field_name)) 2501 Generator.backend_field_list.append(" %s /* %s */* m_%s;" % (agent_type_name, agent_interface_name, agent_field_name)) 2502 Generator.backend_forward_list.append("class %s;" % agent_type_name) 2503 Generator.backend_include_list.append("#include \"%s.h\"" % agent_type_name) 2485 Generator.backend_virtual_setters_list.append(" virtual void registerAgent(%s* %s) = 0;" % (agent_interface_name, agent_field_name)) 2486 Generator.backend_setters_list.append(" virtual void registerAgent(%s* %s) { ASSERT(!m_%s); m_%s = %s; }" % (agent_interface_name, agent_field_name, agent_field_name, agent_field_name, agent_field_name)) 2487 Generator.backend_field_list.append(" %s* m_%s;" % (agent_interface_name, agent_field_name)) 2504 2488 2505 2489 if domain_guard: … … 2803 2787 virtualSetters=join(Generator.backend_virtual_setters_list, "\n"), 2804 2788 agentInterfaces=join(Generator.backend_agent_interface_list, ""), 2805 methodNamesEnumContent=join(Generator.method_name_enum_list, "\n"), 2806 forwardDeclarations=join(Generator.backend_forward_list, "\n"))) 2789 methodNamesEnumContent=join(Generator.method_name_enum_list, "\n"))) 2807 2790 2808 2791 backend_cpp_file.write(Templates.backend_cpp.substitute(None, … … 2811 2794 fieldDeclarations=join(Generator.backend_field_list, "\n"), 2812 2795 methodNameDeclarations=join(Generator.backend_method_name_declaration_list, "\n"), 2813 includes=join(Generator.backend_include_list, "\n"),2814 2796 methods=join(Generator.backend_method_implementation_list, "\n"), 2815 2797 methodDeclarations=join(Generator.backend_method_declaration_list, "\n"), -
trunk/Source/WebCore/inspector/InspectorAgent.h
r103325 r106777 53 53 typedef String ErrorString; 54 54 55 class InspectorAgent : public InspectorBaseAgent<InspectorAgent> {55 class InspectorAgent : public InspectorBaseAgent<InspectorAgent>, public InspectorBackendDispatcher::InspectorCommandHandler { 56 56 WTF_MAKE_NONCOPYABLE(InspectorAgent); 57 57 public: -
trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.h
r103389 r106777 50 50 typedef String ErrorString; 51 51 52 class InspectorApplicationCacheAgent : public InspectorBaseAgent<InspectorApplicationCacheAgent> {52 class InspectorApplicationCacheAgent : public InspectorBaseAgent<InspectorApplicationCacheAgent>, public InspectorBackendDispatcher::ApplicationCacheCommandHandler { 53 53 WTF_MAKE_NONCOPYABLE(InspectorApplicationCacheAgent); WTF_MAKE_FAST_ALLOCATED; 54 54 public: … … 69 69 70 70 // ApplicationCache API for InspectorFrontend 71 v oid enable(ErrorString*);72 v oid getFramesWithManifests(ErrorString*, RefPtr<InspectorArray>& result);73 v oid getManifestForFrame(ErrorString*, const String& frameId, String* manifestURL);74 v oid getApplicationCacheForFrame(ErrorString*, const String& frameId, RefPtr<InspectorObject>& applicationCache);71 virtual void enable(ErrorString*); 72 virtual void getFramesWithManifests(ErrorString*, RefPtr<InspectorArray>& result); 73 virtual void getManifestForFrame(ErrorString*, const String& frameId, String* manifestURL); 74 virtual void getApplicationCacheForFrame(ErrorString*, const String& frameId, RefPtr<InspectorObject>& applicationCache); 75 75 76 76 private: -
trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp
r106756 r106777 332 332 } 333 333 334 void InspectorCSSAgent::getMatchedStylesForNode(ErrorString* errorString, int nodeId, const RefPtr<InspectorArray>* forcedPseudoClasses, bool* needPseudo,bool* needInherited, RefPtr<InspectorArray>& matchedCSSRules, RefPtr<InspectorArray>& pseudoIdRules, RefPtr<InspectorArray>& inheritedEntries)334 void InspectorCSSAgent::getMatchedStylesForNode(ErrorString* errorString, int nodeId, const RefPtr<InspectorArray>* forcedPseudoClasses, const bool* needPseudo, const bool* needInherited, RefPtr<InspectorArray>& matchedCSSRules, RefPtr<InspectorArray>& pseudoIdRules, RefPtr<InspectorArray>& inheritedEntries) 335 335 { 336 336 Element* element = elementForId(errorString, nodeId); -
trunk/Source/WebCore/inspector/InspectorCSSAgent.h
r104710 r106777 55 55 #if ENABLE(INSPECTOR) 56 56 57 class InspectorCSSAgent : public InspectorBaseAgent<InspectorCSSAgent>, public InspectorDOMAgent::DOMListener {57 class InspectorCSSAgent : public InspectorBaseAgent<InspectorCSSAgent>, public InspectorDOMAgent::DOMListener, public InspectorBackendDispatcher::CSSCommandHandler { 58 58 WTF_MAKE_NONCOPYABLE(InspectorCSSAgent); 59 59 public: … … 71 71 virtual void discardAgent(); 72 72 virtual void restore(); 73 v oid enable(ErrorString*);74 v oid disable(ErrorString*);73 virtual void enable(ErrorString*); 74 virtual void disable(ErrorString*); 75 75 void reset(); 76 76 void mediaQueryResultChanged(); 77 77 78 v oid getComputedStyleForNode(ErrorString*, int nodeId, const RefPtr<InspectorArray>* forcedPseudoClasses, RefPtr<InspectorArray>& style);79 v oid getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<InspectorObject>& inlineStyle, RefPtr<InspectorArray>& attributes);80 v oid getMatchedStylesForNode(ErrorString*, int nodeId, const RefPtr<InspectorArray>* forcedPseudoClasses, bool* includePseudo,bool* includeInherited, RefPtr<InspectorArray>& matchedCSSRules, RefPtr<InspectorArray>& pseudoIdRules, RefPtr<InspectorArray>& inheritedEntries);81 v oid getAllStyleSheets(ErrorString*, RefPtr<InspectorArray>& styleSheetInfos);82 v oid getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr<InspectorObject>& result);83 v oid getStyleSheetText(ErrorString*, const String& styleSheetId, String* result);84 v oid setStyleSheetText(ErrorString*, const String& styleSheetId, const String& text);85 v oid setPropertyText(ErrorString*, const RefPtr<InspectorObject>& styleId, int propertyIndex, const String& text, bool overwrite, RefPtr<InspectorObject>& result);86 v oid toggleProperty(ErrorString*, const RefPtr<InspectorObject>& styleId, int propertyIndex, bool disable, RefPtr<InspectorObject>& result);87 v oid setRuleSelector(ErrorString*, const RefPtr<InspectorObject>& ruleId, const String& selector, RefPtr<InspectorObject>& result);88 v oid addRule(ErrorString*, constint contextNodeId, const String& selector, RefPtr<InspectorObject>& result);89 v oid getSupportedCSSProperties(ErrorString*, RefPtr<InspectorArray>& result);78 virtual void getComputedStyleForNode(ErrorString*, int nodeId, const RefPtr<InspectorArray>* forcedPseudoClasses, RefPtr<InspectorArray>& style); 79 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<InspectorObject>& inlineStyle, RefPtr<InspectorArray>& attributes); 80 virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const RefPtr<InspectorArray>* forcedPseudoClasses, const bool* includePseudo, const bool* includeInherited, RefPtr<InspectorArray>& matchedCSSRules, RefPtr<InspectorArray>& pseudoIdRules, RefPtr<InspectorArray>& inheritedEntries); 81 virtual void getAllStyleSheets(ErrorString*, RefPtr<InspectorArray>& styleSheetInfos); 82 virtual void getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr<InspectorObject>& result); 83 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, String* result); 84 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, const String& text); 85 virtual void setPropertyText(ErrorString*, const RefPtr<InspectorObject>& styleId, int propertyIndex, const String& text, bool overwrite, RefPtr<InspectorObject>& result); 86 virtual void toggleProperty(ErrorString*, const RefPtr<InspectorObject>& styleId, int propertyIndex, bool disable, RefPtr<InspectorObject>& result); 87 virtual void setRuleSelector(ErrorString*, const RefPtr<InspectorObject>& ruleId, const String& selector, RefPtr<InspectorObject>& result); 88 virtual void addRule(ErrorString*, int contextNodeId, const String& selector, RefPtr<InspectorObject>& result); 89 virtual void getSupportedCSSProperties(ErrorString*, RefPtr<InspectorArray>& result); 90 90 91 void startSelectorProfiler(ErrorString*); 92 void stopSelectorProfiler(ErrorString*, RefPtr<InspectorObject>&); 91 virtual void startSelectorProfiler(ErrorString*); 92 virtual void stopSelectorProfiler(ErrorString*, RefPtr<InspectorObject>&); 93 93 94 void stopSelectorProfilerImpl(ErrorString*, RefPtr<InspectorObject>* = 0); 94 95 void willMatchRule(const CSSStyleRule*); -
trunk/Source/WebCore/inspector/InspectorConsoleAgent.h
r104803 r106777 53 53 typedef String ErrorString; 54 54 55 class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent> {55 class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent>, public InspectorBackendDispatcher::ConsoleCommandHandler { 56 56 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent); 57 57 public: … … 59 59 virtual ~InspectorConsoleAgent(); 60 60 61 v oid enable(ErrorString*);62 v oid disable(ErrorString*);61 virtual void enable(ErrorString*); 62 virtual void disable(ErrorString*); 63 63 virtual void clearMessages(ErrorString*); 64 64 void reset(); … … 84 84 void addStartProfilingMessageToConsole(const String& title, unsigned lineNumber, const String& sourceURL); 85 85 #endif 86 v oid setMonitoringXHREnabled(ErrorString* error, bool enabled);86 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled); 87 87 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; 88 88 -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r106695 r106777 976 976 ErrorString*, 977 977 int nodeId, 978 const RefPtr<InspectorObject> highlightConfig)978 const RefPtr<InspectorObject>& highlightConfig) 979 979 { 980 980 if (Node* node = nodeForId(nodeId)) { -
trunk/Source/WebCore/inspector/InspectorDOMAgent.h
r105679 r106777 90 90 }; 91 91 92 class InspectorDOMAgent : public InspectorBaseAgent<InspectorDOMAgent> {92 class InspectorDOMAgent : public InspectorBaseAgent<InspectorDOMAgent>, public InspectorBackendDispatcher::DOMCommandHandler { 93 93 WTF_MAKE_NONCOPYABLE(InspectorDOMAgent); 94 94 public: … … 117 117 118 118 // Methods called from the frontend for DOM nodes inspection. 119 v oid querySelector(ErrorString*, int nodeId, const String& selectors, int* elementId);120 v oid querySelectorAll(ErrorString*, int nodeId, const String& selectors, RefPtr<InspectorArray>& result);121 v oid getDocument(ErrorString*, RefPtr<InspectorObject>& root);122 v oid requestChildNodes(ErrorString*, int nodeId);123 v oid setAttributeValue(ErrorString*, int elementId, const String& name, const String& value);124 v oid setAttributesAsText(ErrorString*, int elementId, const String& text, const String* constname);125 v oid removeAttribute(ErrorString*, int elementId, const String& name);126 v oid removeNode(ErrorString*, int nodeId);127 v oid setNodeName(ErrorString*, int nodeId, const String& name, int* newId);128 v oid getOuterHTML(ErrorString*, int nodeId, WTF::String* outerHTML);129 v oid setOuterHTML(ErrorString*, int nodeId, const String& outerHTML);130 v oid setNodeValue(ErrorString*, int nodeId, const String& value);131 v oid getEventListenersForNode(ErrorString*, int nodeId, RefPtr<InspectorArray>& listenersArray);132 v oid performSearch(ErrorString*, const String& whitespaceTrimmedQuery, String* searchId, int* resultCount);133 v oid getSearchResults(ErrorString*, const String& searchId, int fromIndex, int toIndex, RefPtr<InspectorArray>&);134 v oid discardSearchResults(ErrorString*, const String& searchId);135 v oid resolveNode(ErrorString*, int nodeId, const String* constobjectGroup, RefPtr<InspectorObject>& result);136 v oid getAttributes(ErrorString*, int nodeId, RefPtr<InspectorArray>& result);137 v oid setInspectModeEnabled(ErrorString*, bool enabled, const RefPtr<InspectorObject>* highlightConfig);138 v oid requestNode(ErrorString*, const String& objectId, int* nodeId);139 v oid pushNodeByPathToFrontend(ErrorString*, const String& path, int* nodeId);140 v oid hideHighlight(ErrorString*);141 v oid highlightRect(ErrorString*, int x, int y, int width, int height, const RefPtr<InspectorObject>* color, const RefPtr<InspectorObject>* outlineColor);142 v oid highlightNode(ErrorString*, int nodeId, const RefPtr<InspectorObject>highlightConfig);143 v oid highlightFrame(ErrorString*, const String& frameId, const RefPtr<InspectorObject>* color, const RefPtr<InspectorObject>* outlineColor);144 v oid moveTo(ErrorString*, int nodeId, int targetNodeId, const int* constanchorNodeId, int* newNodeId);119 virtual void querySelector(ErrorString*, int nodeId, const String& selectors, int* elementId); 120 virtual void querySelectorAll(ErrorString*, int nodeId, const String& selectors, RefPtr<InspectorArray>& result); 121 virtual void getDocument(ErrorString*, RefPtr<InspectorObject>& root); 122 virtual void requestChildNodes(ErrorString*, int nodeId); 123 virtual void setAttributeValue(ErrorString*, int elementId, const String& name, const String& value); 124 virtual void setAttributesAsText(ErrorString*, int elementId, const String& text, const String* name); 125 virtual void removeAttribute(ErrorString*, int elementId, const String& name); 126 virtual void removeNode(ErrorString*, int nodeId); 127 virtual void setNodeName(ErrorString*, int nodeId, const String& name, int* newId); 128 virtual void getOuterHTML(ErrorString*, int nodeId, WTF::String* outerHTML); 129 virtual void setOuterHTML(ErrorString*, int nodeId, const String& outerHTML); 130 virtual void setNodeValue(ErrorString*, int nodeId, const String& value); 131 virtual void getEventListenersForNode(ErrorString*, int nodeId, RefPtr<InspectorArray>& listenersArray); 132 virtual void performSearch(ErrorString*, const String& whitespaceTrimmedQuery, String* searchId, int* resultCount); 133 virtual void getSearchResults(ErrorString*, const String& searchId, int fromIndex, int toIndex, RefPtr<InspectorArray>&); 134 virtual void discardSearchResults(ErrorString*, const String& searchId); 135 virtual void resolveNode(ErrorString*, int nodeId, const String* objectGroup, RefPtr<InspectorObject>& result); 136 virtual void getAttributes(ErrorString*, int nodeId, RefPtr<InspectorArray>& result); 137 virtual void setInspectModeEnabled(ErrorString*, bool enabled, const RefPtr<InspectorObject>* highlightConfig); 138 virtual void requestNode(ErrorString*, const String& objectId, int* nodeId); 139 virtual void pushNodeByPathToFrontend(ErrorString*, const String& path, int* nodeId); 140 virtual void hideHighlight(ErrorString*); 141 virtual void highlightRect(ErrorString*, int x, int y, int width, int height, const RefPtr<InspectorObject>* color, const RefPtr<InspectorObject>* outlineColor); 142 virtual void highlightNode(ErrorString*, int nodeId, const RefPtr<InspectorObject>& highlightConfig); 143 virtual void highlightFrame(ErrorString*, const String& frameId, const RefPtr<InspectorObject>* color, const RefPtr<InspectorObject>* outlineColor); 144 virtual void moveTo(ErrorString*, int nodeId, int targetNodeId, const int* anchorNodeId, int* newNodeId); 145 145 146 146 Node* highlightedNode() const; -
trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h
r106347 r106777 55 55 typedef String ErrorString; 56 56 57 class InspectorDOMDebuggerAgent : public InspectorBaseAgent<InspectorDOMDebuggerAgent>, public InspectorDebuggerAgent::Listener {57 class InspectorDOMDebuggerAgent : public InspectorBaseAgent<InspectorDOMDebuggerAgent>, public InspectorDebuggerAgent::Listener, public InspectorBackendDispatcher::DOMDebuggerCommandHandler { 58 58 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); 59 59 public: … … 63 63 64 64 // DOMDebugger API for InspectorFrontend 65 v oid setXHRBreakpoint(ErrorString*, const String& url);66 v oid removeXHRBreakpoint(ErrorString*, const String& url);67 v oid setEventListenerBreakpoint(ErrorString*, const String& eventName);68 v oid removeEventListenerBreakpoint(ErrorString*, const String& eventName);69 v oid setInstrumentationBreakpoint(ErrorString*, const String& eventName);70 v oid removeInstrumentationBreakpoint(ErrorString*, const String& eventName);71 v oid setDOMBreakpoint(ErrorString*, int nodeId, const String& type);72 v oid removeDOMBreakpoint(ErrorString*, int nodeId, const String& type);65 virtual void setXHRBreakpoint(ErrorString*, const String& url); 66 virtual void removeXHRBreakpoint(ErrorString*, const String& url); 67 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventName); 68 virtual void removeEventListenerBreakpoint(ErrorString*, const String& eventName); 69 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventName); 70 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eventName); 71 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type); 72 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& type); 73 73 74 74 // InspectorInstrumentation API -
trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h
r103389 r106777 48 48 typedef String ErrorString; 49 49 50 class InspectorDOMStorageAgent : public InspectorBaseAgent<InspectorDOMStorageAgent> {50 class InspectorDOMStorageAgent : public InspectorBaseAgent<InspectorDOMStorageAgent>, public InspectorBackendDispatcher::DOMStorageCommandHandler { 51 51 public: 52 52 static PassOwnPtr<InspectorDOMStorageAgent> create(InstrumentingAgents* instrumentingAgents, InspectorState* state) … … 63 63 64 64 // Called from the front-end. 65 v oid enable(ErrorString*);66 v oid disable(ErrorString*);67 v oid getDOMStorageEntries(ErrorString*, int storageId, RefPtr<InspectorArray>& entries);68 v oid setDOMStorageItem(ErrorString*, int storageId, const String& key, const String& value, bool* success);69 v oid removeDOMStorageItem(ErrorString*, int storageId, const String& key, bool* success);65 virtual void enable(ErrorString*); 66 virtual void disable(ErrorString*); 67 virtual void getDOMStorageEntries(ErrorString*, int storageId, RefPtr<InspectorArray>& entries); 68 virtual void setDOMStorageItem(ErrorString*, int storageId, const String& key, const String& value, bool* success); 69 virtual void removeDOMStorageItem(ErrorString*, int storageId, const String& key, bool* success); 70 70 71 71 // Called from the injected script. -
trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h
r103389 r106777 46 46 typedef String ErrorString; 47 47 48 class InspectorDatabaseAgent : public InspectorBaseAgent<InspectorDatabaseAgent> {48 class InspectorDatabaseAgent : public InspectorBaseAgent<InspectorDatabaseAgent>, public InspectorBackendDispatcher::DatabaseCommandHandler { 49 49 public: 50 50 class FrontendProvider; … … 63 63 64 64 // Called from the front-end. 65 v oid enable(ErrorString*);66 v oid disable(ErrorString*);67 v oid getDatabaseTableNames(ErrorString*, int databaseId, RefPtr<InspectorArray>& names);68 v oid executeSQL(ErrorString*, int databaseId, const String& query, bool* success, int* transactionId);65 virtual void enable(ErrorString*); 66 virtual void disable(ErrorString*); 67 virtual void getDatabaseTableNames(ErrorString*, int databaseId, RefPtr<InspectorArray>& names); 68 virtual void executeSQL(ErrorString*, int databaseId, const String& query, bool* success, int* transactionId); 69 69 70 70 // Called from the injected script. -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.cpp
r106662 r106777 256 256 } 257 257 258 void InspectorDebuggerAgent::setBreakpoint(ErrorString* errorString, PassRefPtr<InspectorObject>location, const String* const optionalCondition, String* outBreakpointId, RefPtr<InspectorObject>& actualLocation)258 void InspectorDebuggerAgent::setBreakpoint(ErrorString* errorString, const RefPtr<InspectorObject>& location, const String* const optionalCondition, String* outBreakpointId, RefPtr<InspectorObject>& actualLocation) 259 259 { 260 260 String scriptId; … … 292 292 } 293 293 294 void InspectorDebuggerAgent::continueToLocation(ErrorString* errorString, PassRefPtr<InspectorObject>location)294 void InspectorDebuggerAgent::continueToLocation(ErrorString* errorString, const RefPtr<InspectorObject>& location) 295 295 { 296 296 if (!m_continueToLocationBreakpointId.isEmpty()) { -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.h
r106662 r106777 59 59 typedef String ErrorString; 60 60 61 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent>, public ScriptDebugListener {61 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent>, public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommandHandler { 62 62 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; 63 63 public: … … 66 66 virtual ~InspectorDebuggerAgent(); 67 67 68 v oid causesRecompilation(ErrorString*, bool*);69 v oid canSetScriptSource(ErrorString*, bool*);70 v oid supportsNativeBreakpoints(ErrorString*, bool*);68 virtual void causesRecompilation(ErrorString*, bool*); 69 virtual void canSetScriptSource(ErrorString*, bool*); 70 virtual void supportsNativeBreakpoints(ErrorString*, bool*); 71 71 72 v oid enable(ErrorString*);73 v oid disable(ErrorString*);72 virtual void enable(ErrorString*); 73 virtual void disable(ErrorString*); 74 74 75 75 virtual void setFrontend(InspectorFrontend*); … … 81 81 82 82 // Part of the protocol. 83 v oid setBreakpointsActive(ErrorString*, bool active);83 virtual void setBreakpointsActive(ErrorString*, bool active); 84 84 85 v oid setBreakpointByUrl(ErrorString*, int lineNumber, const String* const optionalURL, const String* const optionalURLRegex, const int* const optionalColumnNumber, const String* constoptionalCondition, String* breakpointId, RefPtr<InspectorArray>& locations);86 v oid setBreakpoint(ErrorString*, PassRefPtr<InspectorObject> location, const String* constoptionalCondition, String* breakpointId, RefPtr<InspectorObject>& actualLocation);87 v oid removeBreakpoint(ErrorString*, const String& breakpointId);88 v oid continueToLocation(ErrorString*, PassRefPtr<InspectorObject>location);85 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String* optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, const String* optionalCondition, String* breakpointId, RefPtr<InspectorArray>& locations); 86 virtual void setBreakpoint(ErrorString*, const RefPtr<InspectorObject>& location, const String* optionalCondition, String* breakpointId, RefPtr<InspectorObject>& actualLocation); 87 virtual void removeBreakpoint(ErrorString*, const String& breakpointId); 88 virtual void continueToLocation(ErrorString*, const RefPtr<InspectorObject>& location); 89 89 90 v oid searchInContent(ErrorString*, const String& scriptId, const String& query, const bool* const optionalCaseSensitive, const bool* constoptionalIsRegex, RefPtr<InspectorArray>&);91 v oid setScriptSource(ErrorString*, const String& scriptId, const String& newContent, const bool* constpreview, RefPtr<InspectorArray>& newCallFrames, RefPtr<InspectorObject>& result);92 v oid getScriptSource(ErrorString*, const String& scriptId, String* scriptSource);93 v oid getFunctionDetails(ErrorString*, const String& functionId, RefPtr<InspectorObject>& details);90 virtual void searchInContent(ErrorString*, const String& scriptId, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr<InspectorArray>&); 91 virtual void setScriptSource(ErrorString*, const String& scriptId, const String& newContent, const bool* preview, RefPtr<InspectorArray>& newCallFrames, RefPtr<InspectorObject>& result); 92 virtual void getScriptSource(ErrorString*, const String& scriptId, String* scriptSource); 93 virtual void getFunctionDetails(ErrorString*, const String& functionId, RefPtr<InspectorObject>& details); 94 94 void schedulePauseOnNextStatement(const String& breakReason, PassRefPtr<InspectorObject> data); 95 95 void cancelPauseOnNextStatement(); 96 96 void breakProgram(const String& breakReason, PassRefPtr<InspectorObject> data); 97 v oid pause(ErrorString*);98 v oid resume(ErrorString*);99 v oid stepOver(ErrorString*);100 v oid stepInto(ErrorString*);101 v oid stepOut(ErrorString*);102 v oid setPauseOnExceptions(ErrorString*, const String& pauseState);103 v oid evaluateOnCallFrame(ErrorString*,97 virtual void pause(ErrorString*); 98 virtual void resume(ErrorString*); 99 virtual void stepOver(ErrorString*); 100 virtual void stepInto(ErrorString*); 101 virtual void stepOut(ErrorString*); 102 virtual void setPauseOnExceptions(ErrorString*, const String& pauseState); 103 virtual void evaluateOnCallFrame(ErrorString*, 104 104 const String& callFrameId, 105 105 const String& expression, 106 const String* constobjectGroup,107 const bool* constincludeCommandLineAPI,108 const bool* constreturnByValue,106 const String* objectGroup, 107 const bool* includeCommandLineAPI, 108 const bool* returnByValue, 109 109 RefPtr<InspectorObject>& result, 110 110 bool* wasThrown); -
trunk/Source/WebCore/inspector/InspectorFileSystemAgent.h
r101345 r106777 46 46 class InstrumentingAgents; 47 47 48 class InspectorFileSystemAgent : public InspectorBaseAgent<InspectorFileSystemAgent> {48 class InspectorFileSystemAgent : public InspectorBaseAgent<InspectorFileSystemAgent>, public InspectorBackendDispatcher::FileSystemCommandHandler { 49 49 public: 50 50 static PassOwnPtr<InspectorFileSystemAgent> create(InstrumentingAgents*, InspectorState*); … … 54 54 void fileSystemInvalidated(PassRefPtr<DOMFileSystem>); 55 55 56 v oid enable(ErrorString*);57 v oid disable(ErrorString*);56 virtual void enable(ErrorString*); 57 virtual void disable(ErrorString*); 58 58 59 59 virtual void setFrontend(InspectorFrontend*); -
trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.h
r105864 r106777 44 44 typedef String ErrorString; 45 45 46 class InspectorIndexedDBAgent : public InspectorBaseAgent<InspectorIndexedDBAgent> {46 class InspectorIndexedDBAgent : public InspectorBaseAgent<InspectorIndexedDBAgent>, public InspectorBackendDispatcher::IndexedDBCommandHandler { 47 47 public: 48 48 class FrontendProvider; … … 59 59 60 60 // Called from the front-end. 61 v oid enable(ErrorString*);62 v oid disable(ErrorString*);63 v oid requestDatabaseNamesForFrame(ErrorString*, int requestId, const String& frameId);64 v oid requestDatabase(ErrorString*, int requestId, const String& frameId, const String& databaseName);61 virtual void enable(ErrorString*); 62 virtual void disable(ErrorString*); 63 virtual void requestDatabaseNamesForFrame(ErrorString*, int requestId, const String& frameId); 64 virtual void requestDatabase(ErrorString*, int requestId, const String& frameId, const String& databaseName); 65 65 private: 66 66 InspectorIndexedDBAgent(InstrumentingAgents*, InspectorState*, InspectorPageAgent*); -
trunk/Source/WebCore/inspector/InspectorMemoryAgent.h
r105157 r106777 48 48 typedef String ErrorString; 49 49 50 class InspectorMemoryAgent : public InspectorBaseAgent<InspectorMemoryAgent> {50 class InspectorMemoryAgent : public InspectorBaseAgent<InspectorMemoryAgent>, public InspectorBackendDispatcher::MemoryCommandHandler { 51 51 WTF_MAKE_NONCOPYABLE(InspectorMemoryAgent); 52 52 public: -
trunk/Source/WebCore/inspector/InspectorPageAgent.h
r105600 r106777 61 61 typedef String ErrorString; 62 62 63 class InspectorPageAgent : public InspectorBaseAgent<InspectorPageAgent> {63 class InspectorPageAgent : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler { 64 64 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); 65 65 public: … … 88 88 89 89 // Page API for InspectorFrontend 90 v oid enable(ErrorString*);91 v oid disable(ErrorString*);92 v oid addScriptToEvaluateOnLoad(ErrorString*, const String& source, String* result);93 v oid removeScriptToEvaluateOnLoad(ErrorString*, const String& identifier);94 v oid reload(ErrorString*, const bool* constoptionalIgnoreCache, const String* optionalScriptToEvaluateOnLoad);95 v oid navigate(ErrorString*, const String& url);96 v oid getCookies(ErrorString*, RefPtr<InspectorArray>& cookies, WTF::String* cookiesString);97 v oid deleteCookie(ErrorString*, const String& cookieName, const String& domain);98 v oid getResourceTree(ErrorString*, RefPtr<InspectorObject>&);99 v oid getResourceContent(ErrorString*, const String& frameId, const String& url, String* content, bool* base64Encoded);100 v oid searchInResource(ErrorString*, const String& frameId, const String& url, const String& query, const bool* const optionalCaseSensitive, const bool* constoptionalIsRegex, RefPtr<InspectorArray>&);101 v oid searchInResources(ErrorString*, const String&, const bool* const caseSensitive, const bool* constisRegex, RefPtr<InspectorArray>&);102 v oid setDocumentContent(ErrorString*, const String& frameId, const String& html);103 v oid setScreenSizeOverride(ErrorString*, const int width, constint height);90 virtual void enable(ErrorString*); 91 virtual void disable(ErrorString*); 92 virtual void addScriptToEvaluateOnLoad(ErrorString*, const String& source, String* result); 93 virtual void removeScriptToEvaluateOnLoad(ErrorString*, const String& identifier); 94 virtual void reload(ErrorString*, const bool* optionalIgnoreCache, const String* optionalScriptToEvaluateOnLoad); 95 virtual void navigate(ErrorString*, const String& url); 96 virtual void getCookies(ErrorString*, RefPtr<InspectorArray>& cookies, WTF::String* cookiesString); 97 virtual void deleteCookie(ErrorString*, const String& cookieName, const String& domain); 98 virtual void getResourceTree(ErrorString*, RefPtr<InspectorObject>&); 99 virtual void getResourceContent(ErrorString*, const String& frameId, const String& url, String* content, bool* base64Encoded); 100 virtual void searchInResource(ErrorString*, const String& frameId, const String& url, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr<InspectorArray>&); 101 virtual void searchInResources(ErrorString*, const String&, const bool* caseSensitive, const bool* isRegex, RefPtr<InspectorArray>&); 102 virtual void setDocumentContent(ErrorString*, const String& frameId, const String& html); 103 virtual void setScreenSizeOverride(ErrorString*, int width, int height); 104 104 105 105 // InspectorInstrumentation API -
trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp
r104945 r106777 218 218 } // namespace 219 219 220 void InspectorProfilerAgent::getProfile(ErrorString*, const String& type, unsigned uid, RefPtr<InspectorObject>& profileObject) 221 { 220 void InspectorProfilerAgent::getProfile(ErrorString*, const String& type, int rawUid, RefPtr<InspectorObject>& profileObject) 221 { 222 unsigned uid = static_cast<unsigned>(rawUid); 222 223 if (type == CPUProfileType) { 223 224 ProfilesMap::iterator it = m_profiles.find(uid); … … 241 242 } 242 243 243 void InspectorProfilerAgent::removeProfile(ErrorString*, const String& type, unsigned uid) 244 { 244 void InspectorProfilerAgent::removeProfile(ErrorString*, const String& type, int rawUid) 245 { 246 unsigned uid = static_cast<unsigned>(rawUid); 245 247 if (type == CPUProfileType) { 246 248 if (m_profiles.contains(uid)) -
trunk/Source/WebCore/inspector/InspectorProfilerAgent.h
r103389 r106777 56 56 typedef String ErrorString; 57 57 58 class InspectorProfilerAgent : public InspectorBaseAgent<InspectorProfilerAgent> {58 class InspectorProfilerAgent : public InspectorBaseAgent<InspectorProfilerAgent>, public InspectorBackendDispatcher::ProfilerCommandHandler { 59 59 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); WTF_MAKE_FAST_ALLOCATED; 60 60 public: … … 65 65 void addProfileFinishedMessageToConsole(PassRefPtr<ScriptProfile>, unsigned lineNumber, const String& sourceURL); 66 66 void addStartProfilingMessageToConsole(const String& title, unsigned lineNumber, const String& sourceURL); 67 v oid collectGarbage(ErrorString*);68 v oid clearProfiles(ErrorString*) { resetState(); }67 virtual void collectGarbage(ErrorString*); 68 virtual void clearProfiles(ErrorString*) { resetState(); } 69 69 void resetState(); 70 70 71 v oid causesRecompilation(ErrorString*, bool*);72 v oid isSampling(ErrorString*, bool*);73 v oid hasHeapProfiler(ErrorString*, bool*);71 virtual void causesRecompilation(ErrorString*, bool*); 72 virtual void isSampling(ErrorString*, bool*); 73 virtual void hasHeapProfiler(ErrorString*, bool*); 74 74 75 v oid enable(ErrorString*);76 v oid disable(ErrorString*);77 v oid start(ErrorString* = 0);78 v oid stop(ErrorString* = 0);75 virtual void enable(ErrorString*); 76 virtual void disable(ErrorString*); 77 virtual void start(ErrorString* = 0); 78 virtual void stop(ErrorString* = 0); 79 79 80 80 void disable(); … … 82 82 bool enabled() { return m_enabled; } 83 83 String getCurrentUserInitiatedProfileName(bool incrementProfileNumber = false); 84 v oid getProfileHeaders(ErrorString* error, RefPtr<InspectorArray>& headers);85 v oid getProfile(ErrorString* error, const String& type, unsigneduid, RefPtr<InspectorObject>& profileObject);86 v oid removeProfile(ErrorString* error, const String& type, unsigneduid);84 virtual void getProfileHeaders(ErrorString*, RefPtr<InspectorArray>& headers); 85 virtual void getProfile(ErrorString*, const String& type, int uid, RefPtr<InspectorObject>& profileObject); 86 virtual void removeProfile(ErrorString*, const String& type, int uid); 87 87 88 88 virtual void setFrontend(InspectorFrontend*); … … 90 90 virtual void restore(); 91 91 92 v oid takeHeapSnapshot(ErrorString*);92 virtual void takeHeapSnapshot(ErrorString*); 93 93 void toggleRecordButton(bool isProfiling); 94 94 95 v oid getObjectByHeapObjectId(ErrorString*, int id, RefPtr<InspectorObject>& result);95 virtual void getObjectByHeapObjectId(ErrorString*, int id, RefPtr<InspectorObject>& result); 96 96 97 97 private: -
trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp
r103759 r106777 474 474 } 475 475 476 void InspectorResourceAgent::setExtraHTTPHeaders(ErrorString*, PassRefPtr<InspectorObject>headers)476 void InspectorResourceAgent::setExtraHTTPHeaders(ErrorString*, const RefPtr<InspectorObject>& headers) 477 477 { 478 478 m_state->setObject(ResourceAgentState::extraRequestHeaders, headers); -
trunk/Source/WebCore/inspector/InspectorResourceAgent.h
r101651 r106777 74 74 typedef String ErrorString; 75 75 76 class InspectorResourceAgent : public InspectorBaseAgent<InspectorResourceAgent> {76 class InspectorResourceAgent : public InspectorBaseAgent<InspectorResourceAgent>, public InspectorBackendDispatcher::NetworkCommandHandler { 77 77 public: 78 78 static PassOwnPtr<InspectorResourceAgent> create(InstrumentingAgents* instrumentingAgents, InspectorPageAgent* pageAgent, InspectorClient* client, InspectorState* state) … … 124 124 125 125 // Called from frontend 126 void enable(ErrorString*); 127 void disable(ErrorString*); 128 void setUserAgentOverride(ErrorString*, const String& userAgent); 129 void setExtraHTTPHeaders(ErrorString*, PassRefPtr<InspectorObject>); 130 void getResponseBody(ErrorString*, const String& requestId, String* content, bool* base64Encoded); 126 virtual void enable(ErrorString*); 127 virtual void disable(ErrorString*); 128 virtual void setUserAgentOverride(ErrorString*, const String& userAgent); 129 virtual void setExtraHTTPHeaders(ErrorString*, const RefPtr<InspectorObject>&); 130 virtual void getResponseBody(ErrorString*, const String& requestId, String* content, bool* base64Encoded); 131 // FIXME: this seems to be unsued. 131 132 void clearCache(ErrorString*, const String* const optionalPreservedLoaderId); 132 133 133 v oid canClearBrowserCache(ErrorString*, bool*);134 v oid clearBrowserCache(ErrorString*);135 v oid canClearBrowserCookies(ErrorString*, bool*);136 v oid clearBrowserCookies(ErrorString*);137 v oid setCacheDisabled(ErrorString*, bool cacheDisabled);134 virtual void canClearBrowserCache(ErrorString*, bool*); 135 virtual void clearBrowserCache(ErrorString*); 136 virtual void canClearBrowserCookies(ErrorString*, bool*); 137 virtual void clearBrowserCookies(ErrorString*); 138 virtual void setCacheDisabled(ErrorString*, bool cacheDisabled); 138 139 139 140 private: -
trunk/Source/WebCore/inspector/InspectorRuntimeAgent.h
r103389 r106777 52 52 typedef String ErrorString; 53 53 54 class InspectorRuntimeAgent : public InspectorBaseAgent<InspectorRuntimeAgent> {54 class InspectorRuntimeAgent : public InspectorBaseAgent<InspectorRuntimeAgent>, public InspectorBackendDispatcher::RuntimeCommandHandler { 55 55 WTF_MAKE_NONCOPYABLE(InspectorRuntimeAgent); 56 56 public: … … 58 58 59 59 // Part of the protocol. 60 v oid evaluate(ErrorString*,60 virtual void evaluate(ErrorString*, 61 61 const String& expression, 62 const String* constobjectGroup,63 const bool* constincludeCommandLineAPI,64 const bool* constdoNotPauseOnExceptions,65 const String* constframeId,66 const bool* constreturnByValue,62 const String* objectGroup, 63 const bool* includeCommandLineAPI, 64 const bool* doNotPauseOnExceptions, 65 const String* frameId, 66 const bool* returnByValue, 67 67 RefPtr<InspectorObject>& result, 68 68 bool* wasThrown); 69 v oid callFunctionOn(ErrorString*,69 virtual void callFunctionOn(ErrorString*, 70 70 const String& objectId, 71 71 const String& expression, 72 const RefPtr<InspectorArray>* constoptionalArguments,73 const bool* constreturnByValue,72 const RefPtr<InspectorArray>* optionalArguments, 73 const bool* returnByValue, 74 74 RefPtr<InspectorObject>& result, 75 75 bool* wasThrown); 76 v oid releaseObject(ErrorString*, const String& objectId);77 v oid getProperties(ErrorString*, const String& objectId, const bool* constownProperties, RefPtr<InspectorArray>& result);78 v oid releaseObjectGroup(ErrorString*, const String& objectGroup);79 v oid run(ErrorString*);76 virtual void releaseObject(ErrorString*, const String& objectId); 77 virtual void getProperties(ErrorString*, const String& objectId, const bool* ownProperties, RefPtr<InspectorArray>& result); 78 virtual void releaseObjectGroup(ErrorString*, const String& objectGroup); 79 virtual void run(ErrorString*); 80 80 81 81 #if ENABLE(JAVASCRIPT_DEBUGGER) -
trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp
r105877 r106777 137 137 } 138 138 139 void InspectorTimelineAgent::start(ErrorString*, int* maxCallStackDepth)139 void InspectorTimelineAgent::start(ErrorString*, const int* maxCallStackDepth) 140 140 { 141 141 if (!m_frontend) -
trunk/Source/WebCore/inspector/InspectorTimelineAgent.h
r105877 r106777 55 55 typedef String ErrorString; 56 56 57 class InspectorTimelineAgent : public InspectorBaseAgent<InspectorTimelineAgent>, ScriptGCEventListener {57 class InspectorTimelineAgent : public InspectorBaseAgent<InspectorTimelineAgent>, ScriptGCEventListener, public InspectorBackendDispatcher::TimelineCommandHandler { 58 58 WTF_MAKE_NONCOPYABLE(InspectorTimelineAgent); 59 59 public: … … 69 69 virtual void restore(); 70 70 71 v oid start(ErrorString*,int* maxCallStackDepth);72 v oid stop(ErrorString*);73 v oid setIncludeMemoryDetails(ErrorString*, bool);71 virtual void start(ErrorString*, const int* maxCallStackDepth); 72 virtual void stop(ErrorString*); 73 virtual void setIncludeMemoryDetails(ErrorString*, bool); 74 74 75 75 int id() const { return m_id; } -
trunk/Source/WebCore/inspector/InspectorWorkerAgent.cpp
r101367 r106777 170 170 } 171 171 172 void InspectorWorkerAgent::sendMessageToWorker(ErrorString* error, int workerId, PassRefPtr<InspectorObject>message)172 void InspectorWorkerAgent::sendMessageToWorker(ErrorString* error, int workerId, const RefPtr<InspectorObject>& message) 173 173 { 174 174 WorkerFrontendChannel* channel = m_idToChannel.get(workerId); -
trunk/Source/WebCore/inspector/InspectorWorkerAgent.h
r101345 r106777 48 48 typedef String ErrorString; 49 49 50 class InspectorWorkerAgent : public InspectorBaseAgent<InspectorWorkerAgent> {50 class InspectorWorkerAgent : public InspectorBaseAgent<InspectorWorkerAgent>, public InspectorBackendDispatcher::WorkerCommandHandler { 51 51 public: 52 52 static PassOwnPtr<InspectorWorkerAgent> create(InstrumentingAgents*, InspectorState*); … … 63 63 64 64 // Called from InspectorBackendDispatcher 65 v oid setWorkerInspectionEnabled(ErrorString*, bool value);66 v oid connectToWorker(ErrorString*, int workerId);67 v oid disconnectFromWorker(ErrorString*, int workerId);68 v oid sendMessageToWorker(ErrorString*, int workerId, PassRefPtr<InspectorObject>message);69 v oid setAutoconnectToWorkers(ErrorString*, bool value);65 virtual void setWorkerInspectionEnabled(ErrorString*, bool value); 66 virtual void connectToWorker(ErrorString*, int workerId); 67 virtual void disconnectFromWorker(ErrorString*, int workerId); 68 virtual void sendMessageToWorker(ErrorString*, int workerId, const RefPtr<InspectorObject>& message); 69 virtual void setAutoconnectToWorkers(ErrorString*, bool value); 70 70 71 71 private:
Note: See TracChangeset
for help on using the changeset viewer.