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

Side by Side Diff: Source/core/inspector/WorkerInspectorController.cpp

Issue 670433002: DevTools: Remove unused code after service/shared worker inspection migration to main thread. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | Source/core/workers/WorkerObjectProxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 { 67 {
68 m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageI nspector(message->toJSONString()); 68 m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageI nspector(message->toJSONString());
69 } 69 }
70 virtual void flush() override { } 70 virtual void flush() override { }
71 WorkerGlobalScope* m_workerGlobalScope; 71 WorkerGlobalScope* m_workerGlobalScope;
72 }; 72 };
73 73
74 class WorkerStateClient final : public InspectorStateClient { 74 class WorkerStateClient final : public InspectorStateClient {
75 WTF_MAKE_FAST_ALLOCATED; 75 WTF_MAKE_FAST_ALLOCATED;
76 public: 76 public:
77 WorkerStateClient(WorkerGlobalScope* context) : m_workerGlobalScope(context) { } 77 WorkerStateClient(WorkerGlobalScope* context) { }
78 virtual ~WorkerStateClient() { } 78 virtual ~WorkerStateClient() { }
79 79
80 private: 80 private:
81 virtual void updateInspectorStateCookie(const String& cookie) override 81 virtual void updateInspectorStateCookie(const String& cookie) override { }
82 {
83 m_workerGlobalScope->thread()->workerReportingProxy().updateInspectorSta teCookie(cookie);
84 }
85
86 WorkerGlobalScope* m_workerGlobalScope;
87 }; 82 };
88 83
89 } 84 }
90 85
91 WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl obalScope) 86 WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl obalScope)
92 : m_workerGlobalScope(workerGlobalScope) 87 : m_workerGlobalScope(workerGlobalScope)
93 , m_stateClient(adoptPtr(new WorkerStateClient(workerGlobalScope))) 88 , m_stateClient(adoptPtr(new WorkerStateClient(workerGlobalScope)))
94 , m_state(adoptPtrWillBeNoop(new InspectorCompositeState(m_stateClient.get() ))) 89 , m_state(adoptPtrWillBeNoop(new InspectorCompositeState(m_stateClient.get() )))
95 , m_instrumentingAgents(InstrumentingAgents::create()) 90 , m_instrumentingAgents(InstrumentingAgents::create())
96 , m_injectedScriptManager(InjectedScriptManager::createForWorker()) 91 , m_injectedScriptManager(InjectedScriptManager::createForWorker())
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 visitor->trace(m_workerGlobalScope); 177 visitor->trace(m_workerGlobalScope);
183 visitor->trace(m_state); 178 visitor->trace(m_state);
184 visitor->trace(m_instrumentingAgents); 179 visitor->trace(m_instrumentingAgents);
185 visitor->trace(m_injectedScriptManager); 180 visitor->trace(m_injectedScriptManager);
186 visitor->trace(m_backendDispatcher); 181 visitor->trace(m_backendDispatcher);
187 visitor->trace(m_agents); 182 visitor->trace(m_agents);
188 visitor->trace(m_workerDebuggerAgent); 183 visitor->trace(m_workerDebuggerAgent);
189 } 184 }
190 185
191 } 186 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/workers/WorkerObjectProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698