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

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

Issue 10532162: Rename IPC Sender and Listener in ppapi, content/public, and content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
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/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ipc/ipc_channel_proxy.h" 11 #include "ipc/ipc_channel_proxy.h"
12 #include "ipc/ipc_sender.h"
12 13
13 #if defined(OS_WIN) 14 #if defined(OS_WIN)
14 #include <windows.h> 15 #include <windows.h>
15 #endif 16 #endif
16 17
17 class MessageLoop; 18 class MessageLoop;
18 19
19 namespace IPC { 20 namespace IPC {
20 class SyncChannel; 21 class SyncChannel;
21 class SyncMessageFilter; 22 class SyncMessageFilter;
22 } 23 }
23 24
24 namespace v8 { 25 namespace v8 {
25 class Extension; 26 class Extension;
26 } 27 }
27 28
28 namespace content { 29 namespace content {
29 30
30 class RenderProcessObserver; 31 class RenderProcessObserver;
31 class ResourceDispatcherDelegate; 32 class ResourceDispatcherDelegate;
32 33
33 class CONTENT_EXPORT RenderThread : public IPC::Message::Sender { 34 class CONTENT_EXPORT RenderThread : public IPC::Sender {
34 public: 35 public:
35 // Returns the one render thread for this process. Note that this can only 36 // Returns the one render thread for this process. Note that this can only
36 // be accessed when running on the render thread itself. 37 // be accessed when running on the render thread itself.
37 static RenderThread* Get(); 38 static RenderThread* Get();
38 39
39 RenderThread(); 40 RenderThread();
40 virtual ~RenderThread(); 41 virtual ~RenderThread();
41 42
42 virtual MessageLoop* GetMessageLoop() = 0; 43 virtual MessageLoop* GetMessageLoop() = 0;
43 virtual IPC::SyncChannel* GetChannel() = 0; 44 virtual IPC::SyncChannel* GetChannel() = 0;
44 virtual std::string GetLocale() = 0; 45 virtual std::string GetLocale() = 0;
45 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; 46 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0;
46 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() = 0; 47 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() = 0;
47 48
48 // Called to add or remove a listener for a particular message routing ID. 49 // Called to add or remove a listener for a particular message routing ID.
49 // These methods normally get delegated to a MessageRouter. 50 // These methods normally get delegated to a MessageRouter.
50 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener) = 0; 51 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0;
51 virtual void RemoveRoute(int32 routing_id) = 0; 52 virtual void RemoveRoute(int32 routing_id) = 0;
52 virtual int GenerateRoutingID() = 0; 53 virtual int GenerateRoutingID() = 0;
53 54
54 // These map to IPC::ChannelProxy methods. 55 // These map to IPC::ChannelProxy methods.
55 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; 56 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0;
56 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; 57 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0;
57 virtual void SetOutgoingMessageFilter( 58 virtual void SetOutgoingMessageFilter(
58 IPC::ChannelProxy::OutgoingMessageFilter* filter) = 0; 59 IPC::ChannelProxy::OutgoingMessageFilter* filter) = 0;
59 60
60 // Add/remove observers for the process. 61 // Add/remove observers for the process.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 106 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
106 107
107 // Release cached font. 108 // Release cached font.
108 virtual void ReleaseCachedFonts() = 0; 109 virtual void ReleaseCachedFonts() = 0;
109 #endif 110 #endif
110 }; 111 };
111 112
112 } // namespace content 113 } // namespace content
113 114
114 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 115 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/public/common/child_process_host_delegate.h ('k') | content/public/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698