OLD | NEW |
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_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // When initializing WebKit, ensure that any schemes needed for the content | 88 // When initializing WebKit, ensure that any schemes needed for the content |
89 // module are registered properly. Static to allow sharing with tests. | 89 // module are registered properly. Static to allow sharing with tests. |
90 static void RegisterSchemes(); | 90 static void RegisterSchemes(); |
91 | 91 |
92 // content::RenderThread implementation: | 92 // content::RenderThread implementation: |
93 virtual bool Send(IPC::Message* msg) OVERRIDE; | 93 virtual bool Send(IPC::Message* msg) OVERRIDE; |
94 virtual MessageLoop* GetMessageLoop() OVERRIDE; | 94 virtual MessageLoop* GetMessageLoop() OVERRIDE; |
95 virtual IPC::SyncChannel* GetChannel() OVERRIDE; | 95 virtual IPC::SyncChannel* GetChannel() OVERRIDE; |
96 virtual std::string GetLocale() OVERRIDE; | 96 virtual std::string GetLocale() OVERRIDE; |
97 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() OVERRIDE; | 97 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() OVERRIDE; |
| 98 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() |
| 99 OVERRIDE; |
98 virtual void AddRoute(int32 routing_id, | 100 virtual void AddRoute(int32 routing_id, |
99 IPC::Channel::Listener* listener) OVERRIDE; | 101 IPC::Channel::Listener* listener) OVERRIDE; |
100 virtual void RemoveRoute(int32 routing_id) OVERRIDE; | 102 virtual void RemoveRoute(int32 routing_id) OVERRIDE; |
101 virtual int GenerateRoutingID() OVERRIDE; | 103 virtual int GenerateRoutingID() OVERRIDE; |
102 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE; | 104 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE; |
103 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE; | 105 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE; |
104 virtual void SetOutgoingMessageFilter( | 106 virtual void SetOutgoingMessageFilter( |
105 IPC::ChannelProxy::OutgoingMessageFilter* filter) OVERRIDE; | 107 IPC::ChannelProxy::OutgoingMessageFilter* filter) OVERRIDE; |
106 virtual void AddObserver(content::RenderProcessObserver* observer) OVERRIDE; | 108 virtual void AddObserver(content::RenderProcessObserver* observer) OVERRIDE; |
107 virtual void RemoveObserver( | 109 virtual void RemoveObserver( |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 274 |
273 bool compositor_initialized_; | 275 bool compositor_initialized_; |
274 scoped_ptr<CompositorThread> compositor_thread_; | 276 scoped_ptr<CompositorThread> compositor_thread_; |
275 | 277 |
276 ObserverList<content::RenderProcessObserver> observers_; | 278 ObserverList<content::RenderProcessObserver> observers_; |
277 | 279 |
278 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 280 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
279 }; | 281 }; |
280 | 282 |
281 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 283 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |