Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_HOST_ZOOM_MAP_HOST_H_ | |
| 6 #define CONTENT_BROWSER_HOST_ZOOM_MAP_HOST_H_ | |
| 7 | |
| 8 #include "content/common/content_export.h" | |
| 9 #include "content/common/host_zoom.mojom.h" | |
| 10 #include "content/public/browser/web_contents_observer.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 class RenderFrameHostImpl; | |
| 15 | |
| 16 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?
| |
| 17 public: | |
| 18 HostZoomMapHost(WebContents* web_contents, | |
| 19 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.
| |
| 20 | |
| 21 private: | |
| 22 // WebContentsObserver implementation: | |
| 23 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; | |
| 24 | |
| 25 RenderFrameHostImpl* render_frame_host_impl_; | |
| 26 mojom::HostZoomAssociatedPtr host_zoom_; | |
| 27 }; | |
| 28 | |
| 29 } // namespace content | |
| 30 | |
| 31 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_HOST_H_ | |
| OLD | NEW |