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

Side by Side Diff: content/public/renderer/render_thread.h

Issue 245443005: Move IPC::MessageFilter and router to a separate file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gn build Created 6 years, 8 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 | « content/public/common/child_process_host.h ('k') | content/public/test/mock_render_thread.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/metrics/user_metrics_action.h" 11 #include "base/metrics/user_metrics_action.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "ipc/ipc_channel_proxy.h" 13 #include "ipc/ipc_channel_proxy.h"
14 #include "ipc/ipc_sender.h" 14 #include "ipc/ipc_sender.h"
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 #include <windows.h> 17 #include <windows.h>
18 #endif 18 #endif
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace base { 22 namespace base {
23 class MessageLoop; 23 class MessageLoop;
24 class MessageLoopProxy; 24 class MessageLoopProxy;
25 class WaitableEvent; 25 class WaitableEvent;
26 } 26 }
27 27
28 namespace IPC { 28 namespace IPC {
29 class MessageFilter;
29 class SyncChannel; 30 class SyncChannel;
30 class SyncMessageFilter; 31 class SyncMessageFilter;
31 } 32 }
32 33
33 namespace v8 { 34 namespace v8 {
34 class Extension; 35 class Extension;
35 } 36 }
36 37
37 namespace content { 38 namespace content {
38 39
(...skipping 15 matching lines...) Expand all
54 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; 55 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0;
55 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() = 0; 56 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() = 0;
56 57
57 // Called to add or remove a listener for a particular message routing ID. 58 // Called to add or remove a listener for a particular message routing ID.
58 // These methods normally get delegated to a MessageRouter. 59 // These methods normally get delegated to a MessageRouter.
59 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0; 60 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0;
60 virtual void RemoveRoute(int32 routing_id) = 0; 61 virtual void RemoveRoute(int32 routing_id) = 0;
61 virtual int GenerateRoutingID() = 0; 62 virtual int GenerateRoutingID() = 0;
62 63
63 // These map to IPC::ChannelProxy methods. 64 // These map to IPC::ChannelProxy methods.
64 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; 65 virtual void AddFilter(IPC::MessageFilter* filter) = 0;
65 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; 66 virtual void RemoveFilter(IPC::MessageFilter* filter) = 0;
66 67
67 // Add/remove observers for the process. 68 // Add/remove observers for the process.
68 virtual void AddObserver(RenderProcessObserver* observer) = 0; 69 virtual void AddObserver(RenderProcessObserver* observer) = 0;
69 virtual void RemoveObserver(RenderProcessObserver* observer) = 0; 70 virtual void RemoveObserver(RenderProcessObserver* observer) = 0;
70 71
71 // Set the ResourceDispatcher delegate object for this process. 72 // Set the ResourceDispatcher delegate object for this process.
72 virtual void SetResourceDispatcherDelegate( 73 virtual void SetResourceDispatcherDelegate(
73 ResourceDispatcherDelegate* delegate) = 0; 74 ResourceDispatcherDelegate* delegate) = 0;
74 75
75 // We initialize WebKit as late as possible. Call this to force 76 // We initialize WebKit as late as possible. Call this to force
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 134 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
134 135
135 // Release cached font. 136 // Release cached font.
136 virtual void ReleaseCachedFonts() = 0; 137 virtual void ReleaseCachedFonts() = 0;
137 #endif 138 #endif
138 }; 139 };
139 140
140 } // namespace content 141 } // namespace content
141 142
142 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 143 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/public/common/child_process_host.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698