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

Side by Side Diff: content/browser/host_zoom_map_observer.h

Issue 2595603002: Revert of Maintain HostZoom connection per-frame on browser side (Closed)
Patch Set: Created 3 years, 12 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 | « no previous file | content/browser/host_zoom_map_observer.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 2016 The Chromium Authors. All rights reserved. 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 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_BROWSER_HOST_ZOOM_MAP_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_HOST_ZOOM_MAP_OBSERVER_H_
6 #define CONTENT_BROWSER_HOST_ZOOM_MAP_OBSERVER_H_ 6 #define CONTENT_BROWSER_HOST_ZOOM_MAP_OBSERVER_H_
7 7
8 #include "content/common/host_zoom.mojom.h" 8 #include "content/common/host_zoom.mojom.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class RenderFrameHost; 13 class RenderFrameHost;
14 14
15 class HostZoomMapObserver : private WebContentsObserver { 15 class HostZoomMapObserver : private WebContentsObserver {
16 public: 16 public:
17 explicit HostZoomMapObserver(WebContents* web_contents); 17 explicit HostZoomMapObserver(WebContents* web_contents);
18 ~HostZoomMapObserver() override; 18 ~HostZoomMapObserver() override;
19 19
20 private: 20 private:
21 // WebContentsObserver implementation: 21 // WebContentsObserver implementation:
22 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; 22 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override;
23 void RenderFrameCreated(RenderFrameHost* rfh) override; 23 void RenderFrameCreated(RenderFrameHost* rfh) override;
24 void RenderFrameDeleted(RenderFrameHost* rfh) override;
25 24
26 std::map<RenderFrameHost*, mojom::HostZoomAssociatedPtr> host_zoom_ptrs_; 25 mojom::HostZoomAssociatedPtr host_zoom_;
27 }; 26 };
28 27
29 } // namespace content 28 } // namespace content
30 29
31 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_OBSERVER_H_ 30 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/host_zoom_map_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698