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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
183 | 183 |
184 // When initializing WebKit, ensure that any schemes needed for the content | 184 // When initializing WebKit, ensure that any schemes needed for the content |
185 // module are registered properly. Static to allow sharing with tests. | 185 // module are registered properly. Static to allow sharing with tests. |
186 static void RegisterSchemes(); | 186 static void RegisterSchemes(); |
187 | 187 |
188 // RenderThread implementation: | 188 // RenderThread implementation: |
189 bool Send(IPC::Message* msg) override; | 189 bool Send(IPC::Message* msg) override; |
190 IPC::SyncChannel* GetChannel() override; | 190 IPC::SyncChannel* GetChannel() override; |
191 std::string GetLocale() override; | 191 std::string GetLocale() override; |
192 IPC::SyncMessageFilter* GetSyncMessageFilter() override; | 192 IPC::SyncMessageFilter* GetSyncMessageFilter() override; |
193 scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() override; | |
194 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; | 193 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; |
195 void RemoveRoute(int32_t routing_id) override; | 194 void RemoveRoute(int32_t routing_id) override; |
196 int GenerateRoutingID() override; | 195 int GenerateRoutingID() override; |
197 void AddFilter(IPC::MessageFilter* filter) override; | 196 void AddFilter(IPC::MessageFilter* filter) override; |
198 void RemoveFilter(IPC::MessageFilter* filter) override; | 197 void RemoveFilter(IPC::MessageFilter* filter) override; |
199 void AddObserver(RenderThreadObserver* observer) override; | 198 void AddObserver(RenderThreadObserver* observer) override; |
200 void RemoveObserver(RenderThreadObserver* observer) override; | 199 void RemoveObserver(RenderThreadObserver* observer) override; |
201 void SetResourceDispatcherDelegate( | 200 void SetResourceDispatcherDelegate( |
202 ResourceDispatcherDelegate* delegate) override; | 201 ResourceDispatcherDelegate* delegate) override; |
203 std::unique_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( | 202 std::unique_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( |
(...skipping 12 matching lines...) Expand all Loading... | |
216 scoped_refptr<base::SingleThreadTaskRunner> GetTimerTaskRunner() override; | 215 scoped_refptr<base::SingleThreadTaskRunner> GetTimerTaskRunner() override; |
217 scoped_refptr<base::SingleThreadTaskRunner> GetLoadingTaskRunner() override; | 216 scoped_refptr<base::SingleThreadTaskRunner> GetLoadingTaskRunner() override; |
218 void SetFieldTrialGroup(const std::string& trial_name, | 217 void SetFieldTrialGroup(const std::string& trial_name, |
219 const std::string& group_name) override; | 218 const std::string& group_name) override; |
220 | 219 |
221 // IPC::Listener implementation via ChildThreadImpl: | 220 // IPC::Listener implementation via ChildThreadImpl: |
222 void OnAssociatedInterfaceRequest( | 221 void OnAssociatedInterfaceRequest( |
223 const std::string& name, | 222 const std::string& name, |
224 mojo::ScopedInterfaceEndpointHandle handle) override; | 223 mojo::ScopedInterfaceEndpointHandle handle) override; |
225 | 224 |
225 // ChildThread implementation via ChildThreadImpl: | |
226 scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() override; | |
dcheng
2017/05/10 07:36:48
Nit: methods in .h and .cc files are supposed to b
Wei Li
2017/05/11 16:53:02
Done.
| |
227 | |
226 // CompositorDependencies implementation. | 228 // CompositorDependencies implementation. |
227 bool IsGpuRasterizationForced() override; | 229 bool IsGpuRasterizationForced() override; |
228 bool IsAsyncWorkerContextEnabled() override; | 230 bool IsAsyncWorkerContextEnabled() override; |
229 int GetGpuRasterizationMSAASampleCount() override; | 231 int GetGpuRasterizationMSAASampleCount() override; |
230 bool IsLcdTextEnabled() override; | 232 bool IsLcdTextEnabled() override; |
231 bool IsDistanceFieldTextEnabled() override; | 233 bool IsDistanceFieldTextEnabled() override; |
232 bool IsZeroCopyEnabled() override; | 234 bool IsZeroCopyEnabled() override; |
233 bool IsPartialRasterEnabled() override; | 235 bool IsPartialRasterEnabled() override; |
234 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; | 236 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; |
235 bool IsElasticOverscrollEnabled() override; | 237 bool IsElasticOverscrollEnabled() override; |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
795 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 797 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
796 }; | 798 }; |
797 | 799 |
798 #if defined(COMPILER_MSVC) | 800 #if defined(COMPILER_MSVC) |
799 #pragma warning(pop) | 801 #pragma warning(pop) |
800 #endif | 802 #endif |
801 | 803 |
802 } // namespace content | 804 } // namespace content |
803 | 805 |
804 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 806 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |