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_DELEGATE | |
6 #define CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_DELEGATE | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 | |
10 class PrefService; | |
11 | |
12 namespace base { | |
13 class FilePath; | |
14 } // namespace base | |
15 | |
16 namespace content { | |
17 | |
18 class HostZoomMap; | |
19 | |
20 class ZoomLevelPrefsDelegate : public base::RefCounted<ZoomLevelPrefsDelegate> { | |
awong
2014/08/12 21:07:07
Does this need to be refcounted?
wjmaclean
2014/08/13 17:16:03
Hmmm, no.
Done.
| |
21 public: | |
22 virtual void InitZoomLevels(const base::FilePath& file_path, | |
23 HostZoomMap* host_zoom_map) = 0; | |
24 // Expose for tests. | |
25 virtual PrefService* GetPrefs() = 0; | |
26 | |
27 protected: | |
28 friend class base::RefCounted<ZoomLevelPrefsDelegate>; | |
29 | |
30 virtual ~ZoomLevelPrefsDelegate() {} | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_DELEGATE | |
OLD | NEW |