| 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 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" | 5 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" |
| 6 | 6 |
| 7 #include <string> | |
| 8 | |
| 9 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 10 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 11 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/background/background_contents_service.h" | 10 #include "chrome/browser/background/background_contents_service.h" |
| 13 #include "chrome/browser/background/background_contents_service_factory.h" | 11 #include "chrome/browser/background/background_contents_service_factory.h" |
| 14 #include "chrome/browser/chrome_content_browser_client.h" | 12 #include "chrome/browser/chrome_content_browser_client.h" |
| 15 #include "chrome/browser/character_encoding.h" | 13 #include "chrome/browser/character_encoding.h" |
| 16 #include "chrome/browser/extensions/extension_process_manager.h" | 14 #include "chrome/browser/extensions/extension_process_manager.h" |
| 17 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
| 18 #include "chrome/browser/extensions/extension_webkit_preferences.h" | 16 #include "chrome/browser/extensions/extension_webkit_preferences.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 #include "content/browser/gpu/gpu_process_host.h" | 30 #include "content/browser/gpu/gpu_process_host.h" |
| 33 #include "content/browser/renderer_host/render_view_host.h" | 31 #include "content/browser/renderer_host/render_view_host.h" |
| 34 #include "content/browser/renderer_host/render_widget_fullscreen_host.h" | 32 #include "content/browser/renderer_host/render_widget_fullscreen_host.h" |
| 35 #include "content/browser/renderer_host/render_widget_host.h" | 33 #include "content/browser/renderer_host/render_widget_host.h" |
| 36 #include "content/browser/renderer_host/render_widget_host_view.h" | 34 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 37 #include "content/browser/site_instance.h" | 35 #include "content/browser/site_instance.h" |
| 38 #include "content/browser/tab_contents/navigation_details.h" | 36 #include "content/browser/tab_contents/navigation_details.h" |
| 39 #include "content/browser/tab_contents/tab_contents.h" | 37 #include "content/browser/tab_contents/tab_contents.h" |
| 40 #include "content/browser/tab_contents/tab_contents_delegate.h" | 38 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 41 #include "content/browser/tab_contents/tab_contents_view.h" | 39 #include "content/browser/tab_contents/tab_contents_view.h" |
| 42 #include "content/browser/webui/web_ui.h" | |
| 43 #include "content/public/browser/notification_service.h" | 40 #include "content/public/browser/notification_service.h" |
| 44 #include "content/public/browser/render_process_host.h" | 41 #include "content/public/browser/render_process_host.h" |
| 45 #include "content/common/view_messages.h" | 42 #include "content/common/view_messages.h" |
| 46 #include "net/base/network_change_notifier.h" | 43 #include "net/base/network_change_notifier.h" |
| 47 | 44 |
| 48 namespace { | 45 namespace { |
| 49 | 46 |
| 50 // Fills |map| with the per-script font prefs under path |map_name|. | 47 // Fills |map| with the per-script font prefs under path |map_name|. |
| 51 void FillFontFamilyMap(const PrefService* prefs, | 48 void FillFontFamilyMap(const PrefService* prefs, |
| 52 const char* map_name, | 49 const char* map_name, |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 DictionaryValue* inspector_settings = update.Get(); | 578 DictionaryValue* inspector_settings = update.Get(); |
| 582 inspector_settings->SetWithoutPathExpansion(key, | 579 inspector_settings->SetWithoutPathExpansion(key, |
| 583 Value::CreateStringValue(value)); | 580 Value::CreateStringValue(value)); |
| 584 } | 581 } |
| 585 | 582 |
| 586 void RenderViewHostDelegateHelper::ClearInspectorSettings( | 583 void RenderViewHostDelegateHelper::ClearInspectorSettings( |
| 587 content::BrowserContext* browser_context) { | 584 content::BrowserContext* browser_context) { |
| 588 Profile::FromBrowserContext(browser_context)->GetPrefs()-> | 585 Profile::FromBrowserContext(browser_context)->GetPrefs()-> |
| 589 ClearPref(prefs::kWebKitInspectorSettings); | 586 ClearPref(prefs::kWebKitInspectorSettings); |
| 590 } | 587 } |
| OLD | NEW |