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> |
11 | 11 |
12 #include "base/memory/memory_pressure_listener.h" | 12 #include "base/memory/memory_pressure_listener.h" |
13 #include "base/metrics/user_metrics_action.h" | 13 #include "base/metrics/user_metrics_action.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/process/process_handle.h" | 15 #include "base/process/process_handle.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "content/child/child_thread.h" | 20 #include "content/child/child_thread.h" |
21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
22 #include "content/common/gpu/client/gpu_channel_host.h" | 22 #include "content/common/gpu/client/gpu_channel_host.h" |
23 #include "content/public/renderer/render_thread.h" | 23 #include "content/public/renderer/render_thread.h" |
24 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" | 24 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" |
25 #include "ipc/ipc_channel_proxy.h" | 25 #include "ipc/ipc_channel_proxy.h" |
26 #include "ui/gfx/native_widget_types.h" | 26 #include "ui/gfx/native_widget_types.h" |
27 | 27 |
| 28 #if defined(OS_MACOSX) |
| 29 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| 30 #endif |
| 31 |
28 class GrContext; | 32 class GrContext; |
29 class SkBitmap; | 33 class SkBitmap; |
30 struct ViewMsg_New_Params; | 34 struct ViewMsg_New_Params; |
31 | 35 |
32 namespace blink { | 36 namespace blink { |
33 class WebGamepads; | 37 class WebGamepads; |
34 class WebGraphicsContext3D; | 38 class WebGraphicsContext3D; |
35 class WebMediaStreamCenter; | 39 class WebMediaStreamCenter; |
36 class WebMediaStreamCenterClient; | 40 class WebMediaStreamCenterClient; |
37 } | 41 } |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 void OnSetRendererProcessID(base::ProcessId process_id); | 393 void OnSetRendererProcessID(base::ProcessId process_id); |
390 void OnMemoryPressure( | 394 void OnMemoryPressure( |
391 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 395 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
392 #if defined(OS_ANDROID) | 396 #if defined(OS_ANDROID) |
393 void OnSetWebKitSharedTimersSuspended(bool suspend); | 397 void OnSetWebKitSharedTimersSuspended(bool suspend); |
394 #endif | 398 #endif |
395 #if defined(OS_MACOSX) | 399 #if defined(OS_MACOSX) |
396 void OnUpdateScrollbarTheme(float initial_button_delay, | 400 void OnUpdateScrollbarTheme(float initial_button_delay, |
397 float autoscroll_button_delay, | 401 float autoscroll_button_delay, |
398 bool jump_on_track_click, | 402 bool jump_on_track_click, |
| 403 blink::ScrollerStyle preferred_scroller_style, |
399 bool redraw); | 404 bool redraw); |
400 #endif | 405 #endif |
401 | 406 |
402 void IdleHandlerInForegroundTab(); | 407 void IdleHandlerInForegroundTab(); |
403 | 408 |
404 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); | 409 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); |
405 | 410 |
406 // These objects live solely on the render thread. | 411 // These objects live solely on the render thread. |
407 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 412 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
408 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; | 413 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 // multiple threads. Current allocation mechanism for IOSurface | 511 // multiple threads. Current allocation mechanism for IOSurface |
507 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 512 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
508 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 513 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
509 | 514 |
510 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 515 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
511 }; | 516 }; |
512 | 517 |
513 } // namespace content | 518 } // namespace content |
514 | 519 |
515 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 520 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |