Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: Rebased Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/renderer.mojom ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 void CreateView(mojom::CreateViewParamsPtr params) override; 561 void CreateView(mojom::CreateViewParamsPtr params) override;
561 void CreateFrame(mojom::CreateFrameParamsPtr params) override; 562 void CreateFrame(mojom::CreateFrameParamsPtr params) override;
562 void CreateFrameProxy(int32_t routing_id, 563 void CreateFrameProxy(int32_t routing_id,
563 int32_t render_view_routing_id, 564 int32_t render_view_routing_id,
564 int32_t opener_routing_id, 565 int32_t opener_routing_id,
565 int32_t parent_routing_id, 566 int32_t parent_routing_id,
566 const FrameReplicationState& replicated_state) override; 567 const FrameReplicationState& replicated_state) override;
567 void OnNetworkConnectionChanged( 568 void OnNetworkConnectionChanged(
568 net::NetworkChangeNotifier::ConnectionType type, 569 net::NetworkChangeNotifier::ConnectionType type,
569 double max_bandwidth_mbps) override; 570 double max_bandwidth_mbps) override;
570 void OnNetworkQualityChanged(double http_rtt_msec, 571 void OnNetworkQualityChanged(base::TimeDelta http_rtt,
571 double transport_rtt_msec, 572 base::TimeDelta transport_rtt,
572 double bandwidth_kbps) override; 573 double bandwidth_kbps) override;
573 void SetWebKitSharedTimersSuspended(bool suspend) override; 574 void SetWebKitSharedTimersSuspended(bool suspend) override;
574 void UpdateScrollbarTheme( 575 void UpdateScrollbarTheme(
575 mojom::UpdateScrollbarThemeParamsPtr params) override; 576 mojom::UpdateScrollbarThemeParamsPtr params) override;
576 void OnSystemColorsChanged(int32_t aqua_color_variant, 577 void OnSystemColorsChanged(int32_t aqua_color_variant,
577 const std::string& highlight_text_color, 578 const std::string& highlight_text_color,
578 const std::string& highlight_color) override; 579 const std::string& highlight_color) override;
579 void PurgePluginListCache(bool reload_pages) override; 580 void PurgePluginListCache(bool reload_pages) override;
580 581
581 void OnMemoryPressure( 582 void OnMemoryPressure(
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 804 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
804 }; 805 };
805 806
806 #if defined(COMPILER_MSVC) 807 #if defined(COMPILER_MSVC)
807 #pragma warning(pop) 808 #pragma warning(pop)
808 #endif 809 #endif
809 810
810 } // namespace content 811 } // namespace content
811 812
812 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 813 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/renderer.mojom ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698