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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" | 46 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
47 #include "third_party/WebKit/public/web/WebMemoryStatistics.h" | 47 #include "third_party/WebKit/public/web/WebMemoryStatistics.h" |
48 #include "ui/gfx/native_widget_types.h" | 48 #include "ui/gfx/native_widget_types.h" |
49 | 49 |
50 #if defined(OS_MACOSX) | 50 #if defined(OS_MACOSX) |
51 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 51 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
52 #endif | 52 #endif |
53 | 53 |
54 class GrContext; | 54 class GrContext; |
55 class SkBitmap; | 55 class SkBitmap; |
56 struct ViewMsg_UpdateScrollbarTheme_Params; | |
57 struct WorkerProcessMsg_CreateWorker_Params; | 56 struct WorkerProcessMsg_CreateWorker_Params; |
58 | 57 |
59 namespace blink { | 58 namespace blink { |
60 namespace scheduler { | 59 namespace scheduler { |
61 class WebThreadBase; | 60 class WebThreadBase; |
62 } | 61 } |
63 class WebGamepads; | 62 class WebGamepads; |
64 class WebMediaStreamCenter; | 63 class WebMediaStreamCenter; |
65 class WebMediaStreamCenterClient; | 64 class WebMediaStreamCenterClient; |
66 } | 65 } |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 void ClearMemory(); | 502 void ClearMemory(); |
504 | 503 |
505 void Init(scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 504 void Init(scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
506 | 505 |
507 void InitializeCompositorThread(); | 506 void InitializeCompositorThread(); |
508 | 507 |
509 void InitializeWebKit( | 508 void InitializeWebKit( |
510 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 509 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
511 | 510 |
512 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 511 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
513 #if defined(ENABLE_PLUGINS) | |
514 void OnPurgePluginListCache(bool reload_pages); | |
515 #endif | |
516 void OnNetworkConnectionChanged( | |
517 net::NetworkChangeNotifier::ConnectionType type, | |
518 double max_bandwidth_mbps); | |
519 void OnGetAccessibilityTree(); | 512 void OnGetAccessibilityTree(); |
520 | 513 |
521 // mojom::Renderer: | 514 // mojom::Renderer: |
522 void CreateView(mojom::CreateViewParamsPtr params) override; | 515 void CreateView(mojom::CreateViewParamsPtr params) override; |
523 void CreateFrame(mojom::CreateFrameParamsPtr params) override; | 516 void CreateFrame(mojom::CreateFrameParamsPtr params) override; |
524 void CreateFrameProxy(int32_t routing_id, | 517 void CreateFrameProxy(int32_t routing_id, |
525 int32_t render_view_routing_id, | 518 int32_t render_view_routing_id, |
526 int32_t opener_routing_id, | 519 int32_t opener_routing_id, |
527 int32_t parent_routing_id, | 520 int32_t parent_routing_id, |
528 const FrameReplicationState& replicated_state) override; | 521 const FrameReplicationState& replicated_state) override; |
| 522 void OnNetworkConnectionChanged( |
| 523 net::NetworkChangeNotifier::ConnectionType type, |
| 524 double max_bandwidth_mbps) override; |
| 525 void SetWebKitSharedTimersSuspended(bool suspend) override; |
| 526 void UpdateScrollbarTheme( |
| 527 mojom::UpdateScrollbarThemeParamsPtr params) override; |
| 528 void OnSystemColorsChanged(int32_t aqua_color_variant, |
| 529 const std::string& highlight_text_color, |
| 530 const std::string& highlight_color) override; |
| 531 void PurgePluginListCache(bool reload_pages) override; |
529 | 532 |
530 // device::mojom::TimeZoneClient: | 533 // device::mojom::TimeZoneClient: |
531 void OnTimeZoneChange(const std::string& zoneId) override; | 534 void OnTimeZoneChange(const std::string& zoneId) override; |
532 void OnMemoryPressure( | 535 void OnMemoryPressure( |
533 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 536 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
534 #if defined(OS_ANDROID) | 537 |
535 void OnSetWebKitSharedTimersSuspended(bool suspend); | |
536 #endif | |
537 #if defined(OS_MACOSX) | |
538 void OnUpdateScrollbarTheme( | |
539 const ViewMsg_UpdateScrollbarTheme_Params& params); | |
540 void OnSystemColorsChanged(int aqua_color_variant, | |
541 const std::string& highlight_text_color, | |
542 const std::string& highlight_color); | |
543 #endif | |
544 void OnCreateNewSharedWorker( | 538 void OnCreateNewSharedWorker( |
545 const WorkerProcessMsg_CreateWorker_Params& params); | 539 const WorkerProcessMsg_CreateWorker_Params& params); |
546 bool RendererIsHidden() const; | 540 bool RendererIsHidden() const; |
547 void OnRendererHidden(); | 541 void OnRendererHidden(); |
548 void OnRendererVisible(); | 542 void OnRendererVisible(); |
549 | 543 |
550 void RecordPurgeAndSuspendMetrics() const; | 544 void RecordPurgeAndSuspendMetrics() const; |
551 | 545 |
552 void ReleaseFreeMemory(); | 546 void ReleaseFreeMemory(); |
553 | 547 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 746 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
753 }; | 747 }; |
754 | 748 |
755 #if defined(COMPILER_MSVC) | 749 #if defined(COMPILER_MSVC) |
756 #pragma warning(pop) | 750 #pragma warning(pop) |
757 #endif | 751 #endif |
758 | 752 |
759 } // namespace content | 753 } // namespace content |
760 | 754 |
761 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 755 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |