Chromium Code Reviews| 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 25 matching lines...) Expand all Loading... | |
| 36 // be accessed when running on the render thread itself. | 36 // be accessed when running on the render thread itself. |
| 37 static RenderThread* Get(); | 37 static RenderThread* Get(); |
| 38 | 38 |
| 39 RenderThread(); | 39 RenderThread(); |
| 40 virtual ~RenderThread(); | 40 virtual ~RenderThread(); |
| 41 | 41 |
| 42 virtual MessageLoop* GetMessageLoop() = 0; | 42 virtual MessageLoop* GetMessageLoop() = 0; |
| 43 virtual IPC::SyncChannel* GetChannel() = 0; | 43 virtual IPC::SyncChannel* GetChannel() = 0; |
| 44 virtual std::string GetLocale() = 0; | 44 virtual std::string GetLocale() = 0; |
| 45 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; | 45 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; |
| 46 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() = 0; | |
|
jam
2012/05/16 22:25:23
nit: GetIOMessageLoopProxy
bbudge
2012/05/16 23:16:16
Done.
| |
| 46 | 47 |
| 47 // Called to add or remove a listener for a particular message routing ID. | 48 // Called to add or remove a listener for a particular message routing ID. |
| 48 // These methods normally get delegated to a MessageRouter. | 49 // These methods normally get delegated to a MessageRouter. |
| 49 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener) = 0; | 50 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener) = 0; |
| 50 virtual void RemoveRoute(int32 routing_id) = 0; | 51 virtual void RemoveRoute(int32 routing_id) = 0; |
| 51 virtual int GenerateRoutingID() = 0; | 52 virtual int GenerateRoutingID() = 0; |
| 52 | 53 |
| 53 // These map to IPC::ChannelProxy methods. | 54 // These map to IPC::ChannelProxy methods. |
| 54 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; | 55 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; |
| 55 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; | 56 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 virtual void PreCacheFont(const LOGFONT& log_font) = 0; | 105 virtual void PreCacheFont(const LOGFONT& log_font) = 0; |
| 105 | 106 |
| 106 // Release cached font. | 107 // Release cached font. |
| 107 virtual void ReleaseCachedFonts() = 0; | 108 virtual void ReleaseCachedFonts() = 0; |
| 108 #endif | 109 #endif |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace content | 112 } // namespace content |
| 112 | 113 |
| 113 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 114 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |