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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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
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_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 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 explicit RenderThreadImpl(const std::string& channel_name); 108 explicit RenderThreadImpl(const std::string& channel_name);
109 virtual ~RenderThreadImpl(); 109 virtual ~RenderThreadImpl();
110 virtual void Shutdown() OVERRIDE; 110 virtual void Shutdown() OVERRIDE;
111 111
112 // When initializing WebKit, ensure that any schemes needed for the content 112 // When initializing WebKit, ensure that any schemes needed for the content
113 // module are registered properly. Static to allow sharing with tests. 113 // module are registered properly. Static to allow sharing with tests.
114 static void RegisterSchemes(); 114 static void RegisterSchemes();
115 115
116 // RenderThread implementation: 116 // RenderThread implementation:
117 virtual bool Send(IPC::Message* msg) OVERRIDE; 117 virtual bool Send(IPC::Message* msg) OVERRIDE;
118 virtual MessageLoop* GetMessageLoop() OVERRIDE; 118 virtual base::MessageLoop* GetMessageLoop() OVERRIDE;
119 virtual IPC::SyncChannel* GetChannel() OVERRIDE; 119 virtual IPC::SyncChannel* GetChannel() OVERRIDE;
120 virtual std::string GetLocale() OVERRIDE; 120 virtual std::string GetLocale() OVERRIDE;
121 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() OVERRIDE; 121 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() OVERRIDE;
122 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() 122 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy()
123 OVERRIDE; 123 OVERRIDE;
124 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) OVERRIDE; 124 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) OVERRIDE;
125 virtual void RemoveRoute(int32 routing_id) OVERRIDE; 125 virtual void RemoveRoute(int32 routing_id) OVERRIDE;
126 virtual int GenerateRoutingID() OVERRIDE; 126 virtual int GenerateRoutingID() OVERRIDE;
127 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE; 127 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE;
128 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE; 128 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE;
(...skipping 22 matching lines...) Expand all
151 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; 151 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE;
152 virtual void ReleaseCachedFonts() OVERRIDE; 152 virtual void ReleaseCachedFonts() OVERRIDE;
153 #endif 153 #endif
154 154
155 // ChildThread: 155 // ChildThread:
156 virtual bool IsWebFrameValid(WebKit::WebFrame* frame) OVERRIDE; 156 virtual bool IsWebFrameValid(WebKit::WebFrame* frame) OVERRIDE;
157 157
158 // GpuChannelHostFactory implementation: 158 // GpuChannelHostFactory implementation:
159 virtual bool IsMainThread() OVERRIDE; 159 virtual bool IsMainThread() OVERRIDE;
160 virtual bool IsIOThread() OVERRIDE; 160 virtual bool IsIOThread() OVERRIDE;
161 virtual MessageLoop* GetMainLoop() OVERRIDE; 161 virtual base::MessageLoop* GetMainLoop() OVERRIDE;
162 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; 162 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE;
163 virtual base::WaitableEvent* GetShutDownEvent() OVERRIDE; 163 virtual base::WaitableEvent* GetShutDownEvent() OVERRIDE;
164 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( 164 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(
165 size_t size) OVERRIDE; 165 size_t size) OVERRIDE;
166 virtual int32 CreateViewCommandBuffer( 166 virtual int32 CreateViewCommandBuffer(
167 int32 surface_id, 167 int32 surface_id,
168 const GPUCreateCommandBufferConfig& init_params) OVERRIDE; 168 const GPUCreateCommandBufferConfig& init_params) OVERRIDE;
169 virtual void CreateImage( 169 virtual void CreateImage(
170 gfx::PluginWindowHandle window, 170 gfx::PluginWindowHandle window,
171 int32 image_id, 171 int32 image_id,
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 465 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
466 466
467 HistogramCustomizer histogram_customizer_; 467 HistogramCustomizer histogram_customizer_;
468 468
469 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 469 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
470 }; 470 };
471 471
472 } // namespace content 472 } // namespace content
473 473
474 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 474 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698