OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Maps hostnames to custom zoom levels. Written on the UI thread and read on | 5 // Maps hostnames to custom zoom levels. Written on the UI thread and read on |
6 // any thread. One instance per profile. | 6 // any thread. One instance per browser context. |
7 | 7 |
8 #ifndef CONTENT_BROWSER_HOST_ZOOM_MAP_H_ | 8 #ifndef CONTENT_BROWSER_HOST_ZOOM_MAP_H_ |
9 #define CONTENT_BROWSER_HOST_ZOOM_MAP_H_ | 9 #define CONTENT_BROWSER_HOST_ZOOM_MAP_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // Used around accesses to |host_zoom_levels_|, |default_zoom_level_| and | 97 // Used around accesses to |host_zoom_levels_|, |default_zoom_level_| and |
98 // |temporary_zoom_levels_| to guarantee thread safety. | 98 // |temporary_zoom_levels_| to guarantee thread safety. |
99 mutable base::Lock lock_; | 99 mutable base::Lock lock_; |
100 | 100 |
101 NotificationRegistrar registrar_; | 101 NotificationRegistrar registrar_; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(HostZoomMap); | 103 DISALLOW_COPY_AND_ASSIGN(HostZoomMap); |
104 }; | 104 }; |
105 | 105 |
106 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_H_ | 106 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_H_ |
OLD | NEW |