| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 // Notify V8 that the date/time configuration of the system might have | 165 // Notify V8 that the date/time configuration of the system might have |
| 166 // changed. | 166 // changed. |
| 167 static void NotifyTimezoneChange(); | 167 static void NotifyTimezoneChange(); |
| 168 | 168 |
| 169 // RenderThread implementation: | 169 // RenderThread implementation: |
| 170 bool Send(IPC::Message* msg) override; | 170 bool Send(IPC::Message* msg) override; |
| 171 IPC::SyncChannel* GetChannel() override; | 171 IPC::SyncChannel* GetChannel() override; |
| 172 std::string GetLocale() override; | 172 std::string GetLocale() override; |
| 173 IPC::SyncMessageFilter* GetSyncMessageFilter() override; | 173 IPC::SyncMessageFilter* GetSyncMessageFilter() override; |
| 174 scoped_refptr<base::SingleThreadTaskRunner> GetIOMessageLoopProxy() override; | 174 scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() override; |
| 175 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; | 175 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; |
| 176 void RemoveRoute(int32_t routing_id) override; | 176 void RemoveRoute(int32_t routing_id) override; |
| 177 int GenerateRoutingID() override; | 177 int GenerateRoutingID() override; |
| 178 void AddFilter(IPC::MessageFilter* filter) override; | 178 void AddFilter(IPC::MessageFilter* filter) override; |
| 179 void RemoveFilter(IPC::MessageFilter* filter) override; | 179 void RemoveFilter(IPC::MessageFilter* filter) override; |
| 180 void AddObserver(RenderThreadObserver* observer) override; | 180 void AddObserver(RenderThreadObserver* observer) override; |
| 181 void RemoveObserver(RenderThreadObserver* observer) override; | 181 void RemoveObserver(RenderThreadObserver* observer) override; |
| 182 void SetResourceDispatcherDelegate( | 182 void SetResourceDispatcherDelegate( |
| 183 ResourceDispatcherDelegate* delegate) override; | 183 ResourceDispatcherDelegate* delegate) override; |
| 184 std::unique_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( | 184 std::unique_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 return vc_manager_.get(); | 326 return vc_manager_.get(); |
| 327 } | 327 } |
| 328 | 328 |
| 329 // Get the GPU channel. Returns NULL if the channel is not established or | 329 // Get the GPU channel. Returns NULL if the channel is not established or |
| 330 // has been lost. | 330 // has been lost. |
| 331 gpu::GpuChannelHost* GetGpuChannel(); | 331 gpu::GpuChannelHost* GetGpuChannel(); |
| 332 | 332 |
| 333 // Returns a SingleThreadTaskRunner instance corresponding to the message loop | 333 // Returns a SingleThreadTaskRunner instance corresponding to the message loop |
| 334 // of the thread on which file operations should be run. Must be called | 334 // of the thread on which file operations should be run. Must be called |
| 335 // on the renderer's main thread. | 335 // on the renderer's main thread. |
| 336 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy(); | 336 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadTaskRunner(); |
| 337 | 337 |
| 338 // Returns a SingleThreadTaskRunner instance corresponding to the message loop | 338 // Returns a SingleThreadTaskRunner instance corresponding to the message loop |
| 339 // of the thread on which media operations should be run. Must be called | 339 // of the thread on which media operations should be run. Must be called |
| 340 // on the renderer's main thread. | 340 // on the renderer's main thread. |
| 341 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); | 341 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); |
| 342 | 342 |
| 343 // A TaskRunner instance that runs tasks on the raster worker pool. | 343 // A TaskRunner instance that runs tasks on the raster worker pool. |
| 344 base::TaskRunner* GetWorkerTaskRunner(); | 344 base::TaskRunner* GetWorkerTaskRunner(); |
| 345 | 345 |
| 346 // Returns a worker context provider that will be bound on the compositor | 346 // Returns a worker context provider that will be bound on the compositor |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 699 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 700 }; | 700 }; |
| 701 | 701 |
| 702 #if defined(COMPILER_MSVC) | 702 #if defined(COMPILER_MSVC) |
| 703 #pragma warning(pop) | 703 #pragma warning(pop) |
| 704 #endif | 704 #endif |
| 705 | 705 |
| 706 } // namespace content | 706 } // namespace content |
| 707 | 707 |
| 708 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 708 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |