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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 virtual void SetIdleNotificationDelayInMs( | 158 virtual void SetIdleNotificationDelayInMs( |
159 int64 idle_notification_delay_in_ms) OVERRIDE; | 159 int64 idle_notification_delay_in_ms) OVERRIDE; |
160 virtual void UpdateHistograms(int sequence_number) OVERRIDE; | 160 virtual void UpdateHistograms(int sequence_number) OVERRIDE; |
161 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) OVERRIDE; | 161 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) OVERRIDE; |
162 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE; | 162 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE; |
163 virtual base::WaitableEvent* GetShutdownEvent() OVERRIDE; | 163 virtual base::WaitableEvent* GetShutdownEvent() OVERRIDE; |
164 #if defined(OS_WIN) | 164 #if defined(OS_WIN) |
165 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; | 165 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; |
166 virtual void ReleaseCachedFonts() OVERRIDE; | 166 virtual void ReleaseCachedFonts() OVERRIDE; |
167 #endif | 167 #endif |
| 168 virtual ServiceRegistry* GetServiceRegistry() OVERRIDE; |
168 | 169 |
169 // Synchronously establish a channel to the GPU plugin if not previously | 170 // Synchronously establish a channel to the GPU plugin if not previously |
170 // established or if it has been lost (for example if the GPU plugin crashed). | 171 // established or if it has been lost (for example if the GPU plugin crashed). |
171 // If there is a pending asynchronous request, it will be completed by the | 172 // If there is a pending asynchronous request, it will be completed by the |
172 // time this routine returns. | 173 // time this routine returns. |
173 GpuChannelHost* EstablishGpuChannelSync(CauseForGpuLaunch); | 174 GpuChannelHost* EstablishGpuChannelSync(CauseForGpuLaunch); |
174 | 175 |
175 | 176 |
176 // These methods modify how the next message is sent. Normally, when sending | 177 // These methods modify how the next message is sent. Normally, when sending |
177 // a synchronous message that runs a nested message loop, we need to suspend | 178 // a synchronous message that runs a nested message loop, we need to suspend |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 gfx::PluginWindowHandle window, | 413 gfx::PluginWindowHandle window, |
413 int32 image_id, | 414 int32 image_id, |
414 const CreateImageCallback& callback) OVERRIDE; | 415 const CreateImageCallback& callback) OVERRIDE; |
415 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; | 416 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; |
416 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 417 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
417 size_t width, | 418 size_t width, |
418 size_t height, | 419 size_t height, |
419 unsigned internalformat, | 420 unsigned internalformat, |
420 unsigned usage) OVERRIDE; | 421 unsigned usage) OVERRIDE; |
421 | 422 |
422 // mojo::ServiceProvider implementation: | |
423 virtual void ConnectToService( | |
424 const mojo::String& service_url, | |
425 const mojo::String& service_name, | |
426 mojo::ScopedMessagePipeHandle message_pipe, | |
427 const mojo::String& requestor_url) OVERRIDE; | |
428 | |
429 void Init(); | 423 void Init(); |
430 | 424 |
431 void OnSetZoomLevelForCurrentURL(const std::string& scheme, | 425 void OnSetZoomLevelForCurrentURL(const std::string& scheme, |
432 const std::string& host, | 426 const std::string& host, |
433 double zoom_level); | 427 double zoom_level); |
434 void OnCreateNewView(const ViewMsg_New_Params& params); | 428 void OnCreateNewView(const ViewMsg_New_Params& params); |
435 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 429 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
436 void OnPurgePluginListCache(bool reload_pages); | 430 void OnPurgePluginListCache(bool reload_pages); |
437 void OnNetworkStateChanged(bool online, | 431 void OnNetworkStateChanged(bool online, |
438 net::NetworkChangeNotifier::ConnectionType type); | 432 net::NetworkChangeNotifier::ConnectionType type); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 bool is_distance_field_text_enabled_; | 562 bool is_distance_field_text_enabled_; |
569 bool is_zero_copy_enabled_; | 563 bool is_zero_copy_enabled_; |
570 bool is_one_copy_enabled_; | 564 bool is_one_copy_enabled_; |
571 | 565 |
572 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 566 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
573 }; | 567 }; |
574 | 568 |
575 } // namespace content | 569 } // namespace content |
576 | 570 |
577 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 571 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |