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

Unified Diff: content/browser/host_zoom_map_host.h

Issue 2374863002: Remove usage of HostZoomMap from c/b/loader via ReadyToCommitNavigation (Closed)
Patch Set: try separate mojom for Associated, crashes on registration 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/browser/host_zoom_map_host.h
diff --git a/content/browser/host_zoom_map_host.h b/content/browser/host_zoom_map_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..7d7b0ab028a209e11d1c74962f7275d4ce286628
--- /dev/null
+++ b/content/browser/host_zoom_map_host.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_HOST_ZOOM_MAP_HOST_H_
+#define CONTENT_BROWSER_HOST_ZOOM_MAP_HOST_H_
+
+#include "content/common/content_export.h"
+#include "content/common/host_zoom.mojom.h"
+#include "content/public/browser/web_contents_observer.h"
+
+namespace content {
+
+class RenderFrameHostImpl;
+
+class CONTENT_EXPORT HostZoomMapHost : private WebContentsObserver {
nasko 2016/09/28 01:32:04 I find the Host suffix a bit confusing, as this ob
scottmg 2016/09/28 02:44:53 Yeah. :( Sender? Observer?
+ public:
+ HostZoomMapHost(WebContents* web_contents,
+ RenderFrameHostImpl* render_frame_host_impl);
nasko 2016/09/28 01:32:04 nit: No need for _impl, we skip that on a lot of p
scottmg 2016/09/28 02:44:53 Done.
+
+ private:
+ // WebContentsObserver implementation:
+ void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override;
+
+ RenderFrameHostImpl* render_frame_host_impl_;
+ mojom::HostZoomAssociatedPtr host_zoom_;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_HOST_ZOOM_MAP_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698