| 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/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 #include "chrome/common/extensions/url_pattern_set.h" | 108 #include "chrome/common/extensions/url_pattern_set.h" |
| 109 #include "chrome/common/pref_names.h" | 109 #include "chrome/common/pref_names.h" |
| 110 #include "chrome/common/render_messages.h" | 110 #include "chrome/common/render_messages.h" |
| 111 #include "chrome/common/url_constants.h" | 111 #include "chrome/common/url_constants.h" |
| 112 #include "chrome/common/chrome_view_types.h" | 112 #include "chrome/common/chrome_view_types.h" |
| 113 #include "content/browser/plugin_service.h" | 113 #include "content/browser/plugin_service.h" |
| 114 #include "content/browser/renderer_host/render_process_host.h" | 114 #include "content/browser/renderer_host/render_process_host.h" |
| 115 #include "content/browser/renderer_host/render_view_host.h" | 115 #include "content/browser/renderer_host/render_view_host.h" |
| 116 #include "content/browser/tab_contents/interstitial_page.h" | 116 #include "content/browser/tab_contents/interstitial_page.h" |
| 117 #include "content/common/common_param_traits.h" | 117 #include "content/common/common_param_traits.h" |
| 118 #include "content/common/notification_service.h" | 118 #include "content/public/browser/notification_service.h" |
| 119 #include "net/base/cookie_store.h" | 119 #include "net/base/cookie_store.h" |
| 120 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 120 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 121 #include "ui/base/events.h" | 121 #include "ui/base/events.h" |
| 122 #include "ui/base/keycodes/keyboard_codes.h" | 122 #include "ui/base/keycodes/keyboard_codes.h" |
| 123 #include "ui/base/message_box_flags.h" | 123 #include "ui/base/message_box_flags.h" |
| 124 #include "webkit/glue/webdropdata.h" | 124 #include "webkit/glue/webdropdata.h" |
| 125 #include "webkit/plugins/webplugininfo.h" | 125 #include "webkit/plugins/webplugininfo.h" |
| 126 | 126 |
| 127 #if defined(ENABLE_CONFIGURATION_POLICY) | 127 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 128 #include "chrome/browser/policy/browser_policy_connector.h" | 128 #include "chrome/browser/policy/browser_policy_connector.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 } // namespace | 179 } // namespace |
| 180 | 180 |
| 181 TestingAutomationProvider::TestingAutomationProvider(Profile* profile) | 181 TestingAutomationProvider::TestingAutomationProvider(Profile* profile) |
| 182 : AutomationProvider(profile), | 182 : AutomationProvider(profile), |
| 183 #if defined(TOOLKIT_VIEWS) | 183 #if defined(TOOLKIT_VIEWS) |
| 184 popup_menu_waiter_(NULL), | 184 popup_menu_waiter_(NULL), |
| 185 #endif | 185 #endif |
| 186 redirect_query_(0) { | 186 redirect_query_(0) { |
| 187 BrowserList::AddObserver(this); | 187 BrowserList::AddObserver(this); |
| 188 registrar_.Add(this, chrome::NOTIFICATION_SESSION_END, | 188 registrar_.Add(this, chrome::NOTIFICATION_SESSION_END, |
| 189 NotificationService::AllSources()); | 189 content::NotificationService::AllSources()); |
| 190 } | 190 } |
| 191 | 191 |
| 192 TestingAutomationProvider::~TestingAutomationProvider() { | 192 TestingAutomationProvider::~TestingAutomationProvider() { |
| 193 BrowserList::RemoveObserver(this); | 193 BrowserList::RemoveObserver(this); |
| 194 } | 194 } |
| 195 | 195 |
| 196 IPC::Channel::Mode TestingAutomationProvider::GetChannelMode( | 196 IPC::Channel::Mode TestingAutomationProvider::GetChannelMode( |
| 197 bool use_named_interface) { | 197 bool use_named_interface) { |
| 198 if (use_named_interface) | 198 if (use_named_interface) |
| 199 #if defined(OS_POSIX) | 199 #if defined(OS_POSIX) |
| (...skipping 6335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6535 | 6535 |
| 6536 Send(reply_message_); | 6536 Send(reply_message_); |
| 6537 redirect_query_ = 0; | 6537 redirect_query_ = 0; |
| 6538 reply_message_ = NULL; | 6538 reply_message_ = NULL; |
| 6539 } | 6539 } |
| 6540 | 6540 |
| 6541 void TestingAutomationProvider::OnRemoveProvider() { | 6541 void TestingAutomationProvider::OnRemoveProvider() { |
| 6542 if (g_browser_process) | 6542 if (g_browser_process) |
| 6543 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6543 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6544 } | 6544 } |
| OLD | NEW |