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_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_HOST_ZOOM_MAP_OBSERVER_H_ |
| 7 |
| 8 #include "content/common/host_zoom.mojom.h" |
| 9 #include "content/public/browser/web_contents_observer.h" |
| 10 #include "content/public/browser/web_contents_user_data.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class RenderFrameHost; |
| 15 |
| 16 class HostZoomMapObserver : private WebContentsObserver, |
| 17 public WebContentsUserData<HostZoomMapObserver> { |
| 18 public: |
| 19 ~HostZoomMapObserver() override; |
| 20 |
| 21 private: |
| 22 explicit HostZoomMapObserver(WebContents* web_contents); |
| 23 friend class WebContentsUserData<HostZoomMapObserver>; |
| 24 |
| 25 // WebContentsObserver implementation: |
| 26 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; |
| 27 void RenderFrameCreated(RenderFrameHost* rfh) override; |
| 28 |
| 29 mojom::HostZoomAssociatedPtr host_zoom_; |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_OBSERVER_H_ |
OLD | NEW |