OLD | NEW |
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_BROWSER_HOST_ZOOM_MAP_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ |
6 #define CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ | 6 #define CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 15 matching lines...) Expand all Loading... |
26 public base::SupportsUserData::Data { | 26 public base::SupportsUserData::Data { |
27 public: | 27 public: |
28 HostZoomMapImpl(); | 28 HostZoomMapImpl(); |
29 virtual ~HostZoomMapImpl(); | 29 virtual ~HostZoomMapImpl(); |
30 | 30 |
31 // HostZoomMap implementation: | 31 // HostZoomMap implementation: |
32 virtual void CopyFrom(HostZoomMap* copy) OVERRIDE; | 32 virtual void CopyFrom(HostZoomMap* copy) OVERRIDE; |
33 virtual double GetZoomLevelForHostAndScheme( | 33 virtual double GetZoomLevelForHostAndScheme( |
34 const std::string& scheme, | 34 const std::string& scheme, |
35 const std::string& host) const OVERRIDE; | 35 const std::string& host) const OVERRIDE; |
| 36 virtual ZoomLevelVector GetAllZoomLevels() const OVERRIDE; |
36 virtual void SetZoomLevelForHost( | 37 virtual void SetZoomLevelForHost( |
37 const std::string& host, | 38 const std::string& host, |
38 double level) OVERRIDE; | 39 double level) OVERRIDE; |
39 virtual void SetZoomLevelForHostAndScheme( | 40 virtual void SetZoomLevelForHostAndScheme( |
40 const std::string& scheme, | 41 const std::string& scheme, |
41 const std::string& host, | 42 const std::string& host, |
42 double level) OVERRIDE; | 43 double level) OVERRIDE; |
43 virtual double GetDefaultZoomLevel() const OVERRIDE; | 44 virtual double GetDefaultZoomLevel() const OVERRIDE; |
44 virtual void SetDefaultZoomLevel(double level) OVERRIDE; | 45 virtual void SetDefaultZoomLevel(double level) OVERRIDE; |
45 virtual scoped_ptr<Subscription> AddZoomLevelChangedCallback( | 46 virtual scoped_ptr<Subscription> AddZoomLevelChangedCallback( |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 mutable base::Lock lock_; | 97 mutable base::Lock lock_; |
97 | 98 |
98 NotificationRegistrar registrar_; | 99 NotificationRegistrar registrar_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(HostZoomMapImpl); | 101 DISALLOW_COPY_AND_ASSIGN(HostZoomMapImpl); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace content | 104 } // namespace content |
104 | 105 |
105 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ | 106 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ |
OLD | NEW |