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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // | 79 // |
80 // This may be called on any thread. | 80 // This may be called on any thread. |
81 double GetTemporaryZoomLevel(int render_process_id, | 81 double GetTemporaryZoomLevel(int render_process_id, |
82 int render_view_id) const; | 82 int render_view_id) const; |
83 | 83 |
84 // NotificationObserver implementation. | 84 // NotificationObserver implementation. |
85 void Observe(int type, | 85 void Observe(int type, |
86 const NotificationSource& source, | 86 const NotificationSource& source, |
87 const NotificationDetails& details) override; | 87 const NotificationDetails& details) override; |
88 | 88 |
| 89 void SendErrorPageZoomLevelRefresh(); |
| 90 |
89 private: | 91 private: |
90 typedef std::map<std::string, double> HostZoomLevels; | 92 typedef std::map<std::string, double> HostZoomLevels; |
91 typedef std::map<std::string, HostZoomLevels> SchemeHostZoomLevels; | 93 typedef std::map<std::string, HostZoomLevels> SchemeHostZoomLevels; |
92 | 94 |
93 struct RenderViewKey { | 95 struct RenderViewKey { |
94 int render_process_id; | 96 int render_process_id; |
95 int render_view_id; | 97 int render_view_id; |
96 RenderViewKey(int render_process_id, int render_view_id) | 98 RenderViewKey(int render_process_id, int render_view_id) |
97 : render_process_id(render_process_id), | 99 : render_process_id(render_process_id), |
98 render_view_id(render_view_id) {} | 100 render_view_id(render_view_id) {} |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 mutable base::Lock lock_; | 134 mutable base::Lock lock_; |
133 | 135 |
134 NotificationRegistrar registrar_; | 136 NotificationRegistrar registrar_; |
135 | 137 |
136 DISALLOW_COPY_AND_ASSIGN(HostZoomMapImpl); | 138 DISALLOW_COPY_AND_ASSIGN(HostZoomMapImpl); |
137 }; | 139 }; |
138 | 140 |
139 } // namespace content | 141 } // namespace content |
140 | 142 |
141 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ | 143 #endif // CONTENT_BROWSER_HOST_ZOOM_MAP_IMPL_H_ |
OLD | NEW |