OLD | NEW |
1 // Copyright (c) 2010 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 #include <cmath> | 5 #include <cmath> |
6 | 6 |
7 #include "content/browser/host_zoom_map.h" | 7 #include "content/browser/host_zoom_map.h" |
8 | 8 |
9 #include "base/string_piece.h" | 9 #include "base/string_piece.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 12 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/notification_details.h" | |
15 #include "chrome/common/notification_service.h" | |
16 #include "chrome/common/notification_source.h" | |
17 #include "chrome/common/notification_type.h" | |
18 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
19 #include "content/browser/browser_thread.h" | 15 #include "content/browser/browser_thread.h" |
20 #include "content/browser/renderer_host/render_process_host.h" | 16 #include "content/browser/renderer_host/render_process_host.h" |
21 #include "content/browser/renderer_host/render_view_host.h" | 17 #include "content/browser/renderer_host/render_view_host.h" |
| 18 #include "content/common/notification_details.h" |
| 19 #include "content/common/notification_service.h" |
| 20 #include "content/common/notification_source.h" |
| 21 #include "content/common/notification_type.h" |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 #include "net/base/net_util.h" | 23 #include "net/base/net_util.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
25 | 25 |
26 using WebKit::WebView; | 26 using WebKit::WebView; |
27 | 27 |
28 HostZoomMap::HostZoomMap(Profile* profile) | 28 HostZoomMap::HostZoomMap(Profile* profile) |
29 : profile_(profile), | 29 : profile_(profile), |
30 updating_preferences_(false) { | 30 updating_preferences_(false) { |
31 Load(); | 31 Load(); |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 break; | 252 break; |
253 } | 253 } |
254 default: | 254 default: |
255 NOTREACHED() << "Unexpected preference observed."; | 255 NOTREACHED() << "Unexpected preference observed."; |
256 } | 256 } |
257 } | 257 } |
258 | 258 |
259 HostZoomMap::~HostZoomMap() { | 259 HostZoomMap::~HostZoomMap() { |
260 Shutdown(); | 260 Shutdown(); |
261 } | 261 } |
OLD | NEW |