OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 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_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_ | |
7 | |
8 class PrefService; | |
9 | |
10 namespace base { | |
11 class FilePath; | |
12 } // namespace base | |
13 | |
14 namespace content { | |
15 | |
16 class HostZoomMap; | |
17 | |
18 // An interface to manage a prefs store for (1) default zoom level, and | |
19 // (2) per-host zoom levels. It can be used to load the latter into a | |
20 // HostZoomMap. | |
21 class ZoomLevelPrefsStore { | |
sky
2014/09/05 19:28:07
Why does this need to be in content?
wjmaclean
2014/09/05 21:01:47
Ultimately this is an interface that will be acces
| |
22 public: | |
23 virtual void InitPrefsAndCopyToHostZoomMap(const base::FilePath& file_path, | |
24 HostZoomMap* host_zoom_map) = 0; | |
25 virtual ~ZoomLevelPrefsStore() {} | |
sky
2014/09/05 19:28:07
nit: constructor/destructor comes before other fun
wjmaclean
2014/09/05 21:01:47
Done.
| |
26 | |
27 // Expose for tests. | |
28 virtual PrefService* GetPrefs() = 0; | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_ | |
OLD | NEW |