OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
(...skipping 28 matching lines...) Expand all Loading... |
39 virtual ~RenderThread(); | 39 virtual ~RenderThread(); |
40 | 40 |
41 virtual MessageLoop* GetMessageLoop() = 0; | 41 virtual MessageLoop* GetMessageLoop() = 0; |
42 virtual IPC::SyncChannel* GetChannel() = 0; | 42 virtual IPC::SyncChannel* GetChannel() = 0; |
43 virtual std::string GetLocale() = 0; | 43 virtual std::string GetLocale() = 0; |
44 | 44 |
45 // Called to add or remove a listener for a particular message routing ID. | 45 // Called to add or remove a listener for a particular message routing ID. |
46 // These methods normally get delegated to a MessageRouter. | 46 // These methods normally get delegated to a MessageRouter. |
47 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener) = 0; | 47 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener) = 0; |
48 virtual void RemoveRoute(int32 routing_id) = 0; | 48 virtual void RemoveRoute(int32 routing_id) = 0; |
| 49 virtual int GenerateRoutingID() = 0; |
49 | 50 |
50 // These map to IPC::ChannelProxy methods. | 51 // These map to IPC::ChannelProxy methods. |
51 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; | 52 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; |
52 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; | 53 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; |
53 virtual void SetOutgoingMessageFilter( | 54 virtual void SetOutgoingMessageFilter( |
54 IPC::ChannelProxy::OutgoingMessageFilter* filter) = 0; | 55 IPC::ChannelProxy::OutgoingMessageFilter* filter) = 0; |
55 | 56 |
56 // Add/remove observers for the process. | 57 // Add/remove observers for the process. |
57 virtual void AddObserver(RenderProcessObserver* observer) = 0; | 58 virtual void AddObserver(RenderProcessObserver* observer) = 0; |
58 virtual void RemoveObserver(RenderProcessObserver* observer) = 0; | 59 virtual void RemoveObserver(RenderProcessObserver* observer) = 0; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 virtual void PreCacheFont(const LOGFONT& log_font) = 0; | 102 virtual void PreCacheFont(const LOGFONT& log_font) = 0; |
102 | 103 |
103 // Release cached font. | 104 // Release cached font. |
104 virtual void ReleaseCachedFonts() = 0; | 105 virtual void ReleaseCachedFonts() = 0; |
105 #endif | 106 #endif |
106 }; | 107 }; |
107 | 108 |
108 } // namespace content | 109 } // namespace content |
109 | 110 |
110 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 111 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |