OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/interstitial_page.h" | 5 #include "chrome/browser/tab_contents/interstitial_page.h" |
6 | 6 |
| 7 #include <vector> |
| 8 |
7 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
8 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
9 #include "base/string_util.h" | 11 #include "base/string_util.h" |
10 #include "base/thread.h" | 12 #include "base/thread.h" |
11 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
13 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/browser_thread.h" | 16 #include "chrome/browser/browser_thread.h" |
15 #include "chrome/browser/dom_operation_notification_details.h" | 17 #include "chrome/browser/dom_operation_notification_details.h" |
16 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/renderer_host/render_process_host.h" | 19 #include "chrome/browser/renderer_host/render_process_host.h" |
18 #include "chrome/browser/renderer_host/render_view_host.h" | 20 #include "chrome/browser/renderer_host/render_view_host.h" |
19 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 21 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
20 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 22 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
21 #include "chrome/browser/renderer_host/site_instance.h" | 23 #include "chrome/browser/renderer_host/site_instance.h" |
22 #include "chrome/browser/renderer_preferences_util.h" | 24 #include "chrome/browser/renderer_preferences_util.h" |
23 #include "chrome/browser/tab_contents/navigation_controller.h" | 25 #include "chrome/browser/tab_contents/navigation_controller.h" |
24 #include "chrome/browser/tab_contents/navigation_entry.h" | 26 #include "chrome/browser/tab_contents/navigation_entry.h" |
25 #include "chrome/browser/tab_contents/tab_contents.h" | 27 #include "chrome/browser/tab_contents/tab_contents.h" |
26 #include "chrome/browser/tab_contents/tab_contents_view.h" | 28 #include "chrome/browser/tab_contents/tab_contents_view.h" |
27 #include "chrome/common/bindings_policy.h" | 29 #include "chrome/common/bindings_policy.h" |
28 #include "chrome/common/dom_storage_common.h" | 30 #include "chrome/common/dom_storage_common.h" |
29 #if defined(TOOLKIT_GTK) | |
30 #include "chrome/browser/gtk/gtk_theme_provider.h" | |
31 #endif | |
32 #include "chrome/common/net/url_request_context_getter.h" | 31 #include "chrome/common/net/url_request_context_getter.h" |
33 #include "chrome/common/notification_service.h" | 32 #include "chrome/common/notification_source.h" |
34 #include "grit/browser_resources.h" | 33 #include "grit/browser_resources.h" |
35 #include "net/base/escape.h" | 34 #include "net/base/escape.h" |
36 #include "views/window/window_delegate.h" | 35 #include "views/window/window_delegate.h" |
37 | 36 |
| 37 #if defined(TOOLKIT_GTK) |
| 38 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 39 #endif |
| 40 |
38 using WebKit::WebDragOperation; | 41 using WebKit::WebDragOperation; |
39 using WebKit::WebDragOperationsMask; | 42 using WebKit::WebDragOperationsMask; |
40 | 43 |
41 namespace { | 44 namespace { |
42 | 45 |
43 class ResourceRequestTask : public Task { | 46 class ResourceRequestTask : public Task { |
44 public: | 47 public: |
45 ResourceRequestTask(int process_id, | 48 ResourceRequestTask(int process_id, |
46 int render_view_host_id, | 49 int render_view_host_id, |
47 ResourceRequestAction action) | 50 ResourceRequestAction action) |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 | 728 |
726 void InterstitialPage::UpdateInspectorSetting(const std::string& key, | 729 void InterstitialPage::UpdateInspectorSetting(const std::string& key, |
727 const std::string& value) { | 730 const std::string& value) { |
728 RenderViewHostDelegateHelper::UpdateInspectorSetting( | 731 RenderViewHostDelegateHelper::UpdateInspectorSetting( |
729 tab_->profile(), key, value); | 732 tab_->profile(), key, value); |
730 } | 733 } |
731 | 734 |
732 void InterstitialPage::ClearInspectorSettings() { | 735 void InterstitialPage::ClearInspectorSettings() { |
733 RenderViewHostDelegateHelper::ClearInspectorSettings(tab_->profile()); | 736 RenderViewHostDelegateHelper::ClearInspectorSettings(tab_->profile()); |
734 } | 737 } |
OLD | NEW |