Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: Source/core/inspector/InspectorWorkerAgent.h

Issue 476153002: DevTools: Make the way inspectorFrontend is referenced in agents consistent in all of them. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef InspectorWorkerAgent_h 31 #ifndef InspectorWorkerAgent_h
32 #define InspectorWorkerAgent_h 32 #define InspectorWorkerAgent_h
33 33
34 #include "core/InspectorFrontend.h"
34 #include "core/inspector/InspectorBaseAgent.h" 35 #include "core/inspector/InspectorBaseAgent.h"
35 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
36 #include "wtf/HashMap.h" 37 #include "wtf/HashMap.h"
37 38
38 namespace blink { 39 namespace blink {
39 class InspectorFrontend;
40 class InstrumentingAgents; 40 class InstrumentingAgents;
41 class JSONObject; 41 class JSONObject;
42 class KURL; 42 class KURL;
43 class WorkerGlobalScopeProxy; 43 class WorkerGlobalScopeProxy;
44 44
45 typedef String ErrorString; 45 typedef String ErrorString;
46 46
47 class InspectorWorkerAgent FINAL : public InspectorBaseAgent<InspectorWorkerAgen t>, public InspectorBackendDispatcher::WorkerCommandHandler { 47 class InspectorWorkerAgent FINAL : public InspectorBaseAgent<InspectorWorkerAgen t>, public InspectorBackendDispatcher::WorkerCommandHandler {
48 public: 48 public:
49 static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create(); 49 static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create();
(...skipping 19 matching lines...) Expand all
69 virtual void setAutoconnectToWorkers(ErrorString*, bool value) OVERRIDE; 69 virtual void setAutoconnectToWorkers(ErrorString*, bool value) OVERRIDE;
70 70
71 void setTracingSessionId(const String&); 71 void setTracingSessionId(const String&);
72 72
73 private: 73 private:
74 InspectorWorkerAgent(); 74 InspectorWorkerAgent();
75 void createWorkerFrontendChannelsForExistingWorkers(); 75 void createWorkerFrontendChannelsForExistingWorkers();
76 void createWorkerFrontendChannel(WorkerGlobalScopeProxy*, const String& url) ; 76 void createWorkerFrontendChannel(WorkerGlobalScopeProxy*, const String& url) ;
77 void destroyWorkerFrontendChannels(); 77 void destroyWorkerFrontendChannels();
78 78
79 InspectorFrontend* m_inspectorFrontend; 79 InspectorFrontend::Worker* m_frontend;
80 80
81 class WorkerFrontendChannel; 81 class WorkerFrontendChannel;
82 typedef HashMap<int, WorkerFrontendChannel*> WorkerChannels; 82 typedef HashMap<int, WorkerFrontendChannel*> WorkerChannels;
83 WorkerChannels m_idToChannel; 83 WorkerChannels m_idToChannel;
84 typedef HashMap<WorkerGlobalScopeProxy*, String> DedicatedWorkers; 84 typedef HashMap<WorkerGlobalScopeProxy*, String> DedicatedWorkers;
85 DedicatedWorkers m_dedicatedWorkers; 85 DedicatedWorkers m_dedicatedWorkers;
86 String m_tracingSessionId; 86 String m_tracingSessionId;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif // !defined(InspectorWorkerAgent_h) 91 #endif // !defined(InspectorWorkerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInspectorAgent.cpp ('k') | Source/core/inspector/InspectorWorkerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698