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

Unified Diff: content/renderer/render_thread_impl.h

Issue 2304073003: Mojoify time zone update IPC from browser to renderer (Closed)
Patch Set: Switch to push Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 2457b648018b8cbe9c0e67af364009ecc169c95b..ae192f5274f5f8f9631b28586ffaa2cbb8d3a054 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -32,7 +32,9 @@
#include "content/public/renderer/render_thread.h"
#include "content/renderer/gpu/compositor_dependencies.h"
#include "content/renderer/layout_test_dependencies.h"
+#include "device/time_zone_monitor/public/interfaces/time_zone_monitor.mojom.h"
#include "gpu/ipc/client/gpu_channel_host.h"
+#include "mojo/public/cpp/bindings/binding.h"
#include "net/base/network_change_notifier.h"
#include "third_party/WebKit/public/platform/WebConnectionType.h"
#include "third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h"
@@ -151,6 +153,8 @@ class CONTENT_EXPORT RenderThreadImpl
public gpu::GpuChannelHostFactory,
public blink::scheduler::RendererScheduler::RAILModeObserver,
public memory_coordinator::ChildMemoryCoordinatorDelegate,
+ // TODO(blundell): Separate this impl out into Blink.
+ NON_EXPORTED_BASE(public device::mojom::TimeZoneMonitorClient),
NON_EXPORTED_BASE(public CompositorDependencies) {
public:
static RenderThreadImpl* Create(const InProcessChildThreadParams& params);
@@ -503,7 +507,9 @@ class CONTENT_EXPORT RenderThreadImpl
net::NetworkChangeNotifier::ConnectionType type,
double max_bandwidth_mbps);
void OnGetAccessibilityTree();
- void OnUpdateTimezone(const std::string& zoneId);
+
+ // device::mojom::TimeZoneClient:
+ void OnTimeZoneChange(const std::string& zoneId) override;
void OnMemoryPressure(
base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
#if defined(OS_ANDROID)
@@ -565,6 +571,9 @@ class CONTENT_EXPORT RenderThreadImpl
scoped_refptr<P2PSocketDispatcher> p2p_socket_dispatcher_;
#endif
+ mojo::Binding<device::mojom::TimeZoneMonitorClient>
+ time_zone_monitor_binding_;
+
// Used on the render thread.
std::unique_ptr<VideoCaptureImplManager> vc_manager_;
@@ -709,6 +718,8 @@ class CONTENT_EXPORT RenderThreadImpl
mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
+ device::mojom::TimeZoneMonitorPtr time_zone_monitor_;
+
bool is_renderer_suspended_;
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);

Powered by Google App Engine
This is Rietveld 408576698