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 |
11 #include <memory> | 11 #include <memory> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/cancelable_callback.h" | 16 #include "base/cancelable_callback.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/memory_coordinator_client.h" | 18 #include "base/memory/memory_coordinator_client.h" |
19 #include "base/memory/memory_pressure_listener.h" | 19 #include "base/memory/memory_pressure_listener.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/metrics/field_trial.h" | 21 #include "base/metrics/field_trial.h" |
22 #include "base/metrics/user_metrics_action.h" | 22 #include "base/metrics/user_metrics_action.h" |
23 #include "base/observer_list.h" | 23 #include "base/observer_list.h" |
24 #include "base/strings/string16.h" | 24 #include "base/strings/string16.h" |
25 #include "base/threading/thread_checker.h" | 25 #include "base/threading/thread_checker.h" |
| 26 #include "base/time/time.h" |
26 #include "base/timer/timer.h" | 27 #include "base/timer/timer.h" |
27 #include "build/build_config.h" | 28 #include "build/build_config.h" |
28 #include "components/variations/child_process_field_trial_syncer.h" | 29 #include "components/variations/child_process_field_trial_syncer.h" |
29 #include "content/child/child_thread_impl.h" | 30 #include "content/child/child_thread_impl.h" |
30 #include "content/child/memory/child_memory_coordinator_impl.h" | 31 #include "content/child/memory/child_memory_coordinator_impl.h" |
31 #include "content/common/associated_interface_registry_impl.h" | 32 #include "content/common/associated_interface_registry_impl.h" |
32 #include "content/common/content_export.h" | 33 #include "content/common/content_export.h" |
33 #include "content/common/frame.mojom.h" | 34 #include "content/common/frame.mojom.h" |
34 #include "content/common/frame_replication_state.h" | 35 #include "content/common/frame_replication_state.h" |
35 #include "content/common/frame_sink_provider.mojom.h" | 36 #include "content/common/frame_sink_provider.mojom.h" |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 void CreateView(mojom::CreateViewParamsPtr params) override; | 558 void CreateView(mojom::CreateViewParamsPtr params) override; |
558 void CreateFrame(mojom::CreateFrameParamsPtr params) override; | 559 void CreateFrame(mojom::CreateFrameParamsPtr params) override; |
559 void CreateFrameProxy(int32_t routing_id, | 560 void CreateFrameProxy(int32_t routing_id, |
560 int32_t render_view_routing_id, | 561 int32_t render_view_routing_id, |
561 int32_t opener_routing_id, | 562 int32_t opener_routing_id, |
562 int32_t parent_routing_id, | 563 int32_t parent_routing_id, |
563 const FrameReplicationState& replicated_state) override; | 564 const FrameReplicationState& replicated_state) override; |
564 void OnNetworkConnectionChanged( | 565 void OnNetworkConnectionChanged( |
565 net::NetworkChangeNotifier::ConnectionType type, | 566 net::NetworkChangeNotifier::ConnectionType type, |
566 double max_bandwidth_mbps) override; | 567 double max_bandwidth_mbps) override; |
567 void OnNetworkQualityChanged(double http_rtt_msec, | 568 void OnNetworkQualityChanged(base::TimeDelta http_rtt, |
568 double transport_rtt_msec, | 569 base::TimeDelta transport_rtt, |
569 double bandwidth_kbps) override; | 570 double bandwidth_kbps) override; |
570 void SetWebKitSharedTimersSuspended(bool suspend) override; | 571 void SetWebKitSharedTimersSuspended(bool suspend) override; |
571 void UpdateScrollbarTheme( | 572 void UpdateScrollbarTheme( |
572 mojom::UpdateScrollbarThemeParamsPtr params) override; | 573 mojom::UpdateScrollbarThemeParamsPtr params) override; |
573 void OnSystemColorsChanged(int32_t aqua_color_variant, | 574 void OnSystemColorsChanged(int32_t aqua_color_variant, |
574 const std::string& highlight_text_color, | 575 const std::string& highlight_text_color, |
575 const std::string& highlight_color) override; | 576 const std::string& highlight_color) override; |
576 void PurgePluginListCache(bool reload_pages) override; | 577 void PurgePluginListCache(bool reload_pages) override; |
577 | 578 |
578 void OnMemoryPressure( | 579 void OnMemoryPressure( |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 799 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
799 }; | 800 }; |
800 | 801 |
801 #if defined(COMPILER_MSVC) | 802 #if defined(COMPILER_MSVC) |
802 #pragma warning(pop) | 803 #pragma warning(pop) |
803 #endif | 804 #endif |
804 | 805 |
805 } // namespace content | 806 } // namespace content |
806 | 807 |
807 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 808 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |