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

Side by Side Diff: content/public/browser/host_zoom_map.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_
6 #define CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_ 6 #define CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/callback_list.h" 14 #include "base/callback_list.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 class NavigationEntry; 20 class NavigationEntry;
21 class BrowserContext; 21 class BrowserContext;
22 class ResourceContext;
23 class SiteInstance; 22 class SiteInstance;
24 class WebContents; 23 class WebContents;
25 24
26 // Maps hostnames to custom zoom levels. Written on the UI thread and read on 25 // Maps hostnames to custom zoom levels. Written on the UI thread and read on
27 // any thread. One instance per browser context. Must be created on the UI 26 // any thread. One instance per browser context. Must be created on the UI
28 // thread, and it'll delete itself on the UI thread as well. 27 // thread, and it'll delete itself on the UI thread as well.
29 // Zoom can be defined at three levels: default zoom, zoom for host, and zoom 28 // Zoom can be defined at three levels: default zoom, zoom for host, and zoom
30 // for host with specific scheme. Setting any of the levels leaves settings 29 // for host with specific scheme. Setting any of the levels leaves settings
31 // for other settings intact. Getting the zoom level starts at the most 30 // for other settings intact. Getting the zoom level starts at the most
32 // specific setting and progresses to the less specific: first the zoom for the 31 // specific setting and progresses to the less specific: first the zoom for the
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual std::unique_ptr<Subscription> AddZoomLevelChangedCallback( 173 virtual std::unique_ptr<Subscription> AddZoomLevelChangedCallback(
175 const ZoomLevelChangedCallback& callback) = 0; 174 const ZoomLevelChangedCallback& callback) = 0;
176 175
177 protected: 176 protected:
178 virtual ~HostZoomMap() {} 177 virtual ~HostZoomMap() {}
179 }; 178 };
180 179
181 } // namespace content 180 } // namespace content
182 181
183 #endif // CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_ 182 #endif // CONTENT_PUBLIC_BROWSER_HOST_ZOOM_MAP_H_
OLDNEW
« no previous file with comments | « content/public/browser/gpu_data_manager.h ('k') | content/public/browser/message_port_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698