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

Side by Side Diff: extensions/renderer/worker_thread_dispatcher.h

Issue 2535713004: extensions: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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 | « extensions/renderer/v8_context_native_handler.h ('k') | extensions/shell/app/paths_mac.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 EXTENSIONS_RENDERER_WORKER_THREAD_DISPATCHER_H_ 5 #ifndef EXTENSIONS_RENDERER_WORKER_THREAD_DISPATCHER_H_
6 #define EXTENSIONS_RENDERER_WORKER_THREAD_DISPATCHER_H_ 6 #define EXTENSIONS_RENDERER_WORKER_THREAD_DISPATCHER_H_
7 7
8 #include "base/synchronization/lock.h" 8 #include "base/synchronization/lock.h"
9 #include "content/public/renderer/render_thread_observer.h" 9 #include "content/public/renderer/render_thread_observer.h"
10 #include "ipc/ipc_sync_message_filter.h" 10 #include "ipc/ipc_sync_message_filter.h"
11 11
12 namespace base { 12 namespace base {
13 class ListValue; 13 class ListValue;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 class RenderThread; 17 class RenderThread;
18 } 18 }
19 19
20 namespace extensions { 20 namespace extensions {
21 class ExtensionBindingsSystem; 21 class ExtensionBindingsSystem;
22 class ResourceBundleSourceMap; 22 class ResourceBundleSourceMap;
23 class RequestSender;
24 class ServiceWorkerRequestSender; 23 class ServiceWorkerRequestSender;
25 class V8SchemaRegistry; 24 class V8SchemaRegistry;
26 25
27 // Sends and receives IPC in an extension Service Worker. 26 // Sends and receives IPC in an extension Service Worker.
28 // TODO(lazyboy): This class should really be a combination of the following 27 // TODO(lazyboy): This class should really be a combination of the following
29 // two: 28 // two:
30 // 1) A content::WorkerThreadMessageFilter, so that we can receive IPC directly 29 // 1) A content::WorkerThreadMessageFilter, so that we can receive IPC directly
31 // on worker thread. 30 // on worker thread.
32 // 2) A content::ThreadSafeSender, so we can safely send IPC from worker thread. 31 // 2) A content::ThreadSafeSender, so we can safely send IPC from worker thread.
33 class WorkerThreadDispatcher : public content::RenderThreadObserver { 32 class WorkerThreadDispatcher : public content::RenderThreadObserver {
(...skipping 26 matching lines...) Expand all
60 59
61 // IPC sender. Belongs to the render thread, but thread safe. 60 // IPC sender. Belongs to the render thread, but thread safe.
62 scoped_refptr<IPC::SyncMessageFilter> message_filter_; 61 scoped_refptr<IPC::SyncMessageFilter> message_filter_;
63 62
64 DISALLOW_COPY_AND_ASSIGN(WorkerThreadDispatcher); 63 DISALLOW_COPY_AND_ASSIGN(WorkerThreadDispatcher);
65 }; 64 };
66 65
67 } // namespace extensions 66 } // namespace extensions
68 67
69 #endif // EXTENSIONS_RENDERER_WORKER_THREAD_DISPATCHER_H_ 68 #endif // EXTENSIONS_RENDERER_WORKER_THREAD_DISPATCHER_H_
OLDNEW
« no previous file with comments | « extensions/renderer/v8_context_native_handler.h ('k') | extensions/shell/app/paths_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698