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

Side by Side Diff: Source/core/workers/WorkerInspectorProxy.h

Issue 1323493004: Make classes and structures in core/workers, core/timing and core/testing fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/workers/WorkerGlobalScopeProxy.h ('k') | 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WorkerInspectorProxy_h 5 #ifndef WorkerInspectorProxy_h
6 #define WorkerInspectorProxy_h 6 #define WorkerInspectorProxy_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "public/platform/WebThread.h" 9 #include "public/platform/WebThread.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExecutionContext; 14 class ExecutionContext;
15 class KURL; 15 class KURL;
16 class WebTraceLocation; 16 class WebTraceLocation;
17 class WorkerGlobalScopeProxy; 17 class WorkerGlobalScopeProxy;
18 class WorkerThread; 18 class WorkerThread;
19 19
20 // A proxy for talking to the worker inspector on the worker thread. 20 // A proxy for talking to the worker inspector on the worker thread.
21 // All of these methods should be called on the main thread. 21 // All of these methods should be called on the main thread.
22 class CORE_EXPORT WorkerInspectorProxy final { 22 class CORE_EXPORT WorkerInspectorProxy final {
23 WTF_MAKE_FAST_ALLOCATED(WorkerInspectorProxy);
23 public: 24 public:
24 static PassOwnPtr<WorkerInspectorProxy> create(); 25 static PassOwnPtr<WorkerInspectorProxy> create();
25 26
26 ~WorkerInspectorProxy(); 27 ~WorkerInspectorProxy();
27 28
28 class PageInspector { 29 class PageInspector {
29 public: 30 public:
30 virtual ~PageInspector() { } 31 virtual ~PageInspector() { }
31 virtual void dispatchMessageFromWorker(const String&) = 0; 32 virtual void dispatchMessageFromWorker(const String&) = 0;
32 virtual void workerConsoleAgentEnabled(WorkerGlobalScopeProxy*) = 0; 33 virtual void workerConsoleAgentEnabled(WorkerGlobalScopeProxy*) = 0;
(...skipping 19 matching lines...) Expand all
52 53
53 WorkerThread* m_workerThread; 54 WorkerThread* m_workerThread;
54 ExecutionContext* m_executionContext; 55 ExecutionContext* m_executionContext;
55 WorkerInspectorProxy::PageInspector* m_pageInspector; 56 WorkerInspectorProxy::PageInspector* m_pageInspector;
56 WorkerGlobalScopeProxy* m_workerGlobalScopeProxy; 57 WorkerGlobalScopeProxy* m_workerGlobalScopeProxy;
57 }; 58 };
58 59
59 } // namespace blink 60 } // namespace blink
60 61
61 #endif // WorkerInspectorProxy_h 62 #endif // WorkerInspectorProxy_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerGlobalScopeProxy.h ('k') | Source/core/workers/WorkerObjectProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698