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_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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // Get the GPU channel. Returns NULL if the channel is not established or | 162 // Get the GPU channel. Returns NULL if the channel is not established or |
163 // has been lost. | 163 // has been lost. |
164 GpuChannelHost* GetGpuChannel(); | 164 GpuChannelHost* GetGpuChannel(); |
165 | 165 |
166 // Returns a MessageLoopProxy instance corresponding to the message loop | 166 // Returns a MessageLoopProxy instance corresponding to the message loop |
167 // of the thread on which file operations should be run. Must be called | 167 // of the thread on which file operations should be run. Must be called |
168 // on the renderer's main thread. | 168 // on the renderer's main thread. |
169 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 169 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
170 | 170 |
171 private: | 171 private: |
172 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 172 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
173 | 173 |
174 void Init(); | 174 void Init(); |
175 | 175 |
176 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); | 176 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); |
177 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); | 177 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); |
178 void OnSetNextPageID(int32 next_page_id); | 178 void OnSetNextPageID(int32 next_page_id); |
179 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 179 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
180 void OnCreateNewView(const ViewMsg_New_Params& params); | 180 void OnCreateNewView(const ViewMsg_New_Params& params); |
181 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 181 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
182 void OnPurgePluginListCache(bool reload_pages); | 182 void OnPurgePluginListCache(bool reload_pages); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 std::set<std::string> v8_extensions_; | 234 std::set<std::string> v8_extensions_; |
235 | 235 |
236 scoped_ptr<CompositorThread> compositor_thread_; | 236 scoped_ptr<CompositorThread> compositor_thread_; |
237 | 237 |
238 ObserverList<content::RenderProcessObserver> observers_; | 238 ObserverList<content::RenderProcessObserver> observers_; |
239 | 239 |
240 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 240 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
241 }; | 241 }; |
242 | 242 |
243 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 243 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |