Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/automation/automation_provider.cc

Issue 165353: Merge 21668 - Make AutomationProxyTest.NavigateToURLWithTimeout* tests notfla... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/automation/url_request_mock_http_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:mergeinfo
Merged /trunk/src/chrome/browser/automation/automation_provider.cc:r21668
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/automation_provider.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/message_box_flags.h" 8 #include "app/message_box_flags.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/json_reader.h" 10 #include "base/json_reader.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/stl_util-inl.h" 13 #include "base/stl_util-inl.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/thread.h" 15 #include "base/thread.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/app/chrome_dll_resource.h" 17 #include "chrome/app/chrome_dll_resource.h"
18 #include "chrome/browser/app_modal_dialog.h" 18 #include "chrome/browser/app_modal_dialog.h"
19 #include "chrome/browser/app_modal_dialog_queue.h" 19 #include "chrome/browser/app_modal_dialog_queue.h"
20 #include "chrome/browser/automation/automation_extension_function.h" 20 #include "chrome/browser/automation/automation_extension_function.h"
21 #include "chrome/browser/automation/automation_provider_list.h" 21 #include "chrome/browser/automation/automation_provider_list.h"
22 #include "chrome/browser/automation/extension_automation_constants.h" 22 #include "chrome/browser/automation/extension_automation_constants.h"
23 #include "chrome/browser/automation/extension_port_container.h" 23 #include "chrome/browser/automation/extension_port_container.h"
24 #include "chrome/browser/automation/url_request_failed_dns_job.h" 24 #include "chrome/browser/automation/url_request_failed_dns_job.h"
25 #include "chrome/browser/automation/url_request_mock_http_job.h" 25 #include "chrome/browser/automation/url_request_mock_http_job.h"
26 #include "chrome/browser/automation/url_request_slow_download_job.h" 26 #include "chrome/browser/automation/url_request_slow_download_job.h"
27 #include "chrome/browser/automation/url_request_slow_http_job.h"
27 #include "chrome/browser/blocked_popup_container.h" 28 #include "chrome/browser/blocked_popup_container.h"
28 #include "chrome/browser/browser_process.h" 29 #include "chrome/browser/browser_process.h"
29 #include "chrome/browser/browser_window.h" 30 #include "chrome/browser/browser_window.h"
30 #include "chrome/browser/dom_operation_notification_details.h" 31 #include "chrome/browser/dom_operation_notification_details.h"
31 #include "chrome/browser/debugger/devtools_manager.h" 32 #include "chrome/browser/debugger/devtools_manager.h"
32 #include "chrome/browser/download/download_manager.h" 33 #include "chrome/browser/download/download_manager.h"
33 #include "chrome/browser/download/download_shelf.h" 34 #include "chrome/browser/download/download_shelf.h"
34 #include "chrome/browser/extensions/extension_message_service.h" 35 #include "chrome/browser/extensions/extension_message_service.h"
35 #include "chrome/browser/find_bar.h" 36 #include "chrome/browser/find_bar.h"
36 #include "chrome/browser/find_bar_controller.h" 37 #include "chrome/browser/find_bar_controller.h"
(...skipping 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 virtual void Run() { 2135 virtual void Run() {
2135 if (enabled_) { 2136 if (enabled_) {
2136 URLRequestFilter::GetInstance()->ClearHandlers(); 2137 URLRequestFilter::GetInstance()->ClearHandlers();
2137 2138
2138 URLRequestFailedDnsJob::AddUITestUrls(); 2139 URLRequestFailedDnsJob::AddUITestUrls();
2139 URLRequestSlowDownloadJob::AddUITestUrls(); 2140 URLRequestSlowDownloadJob::AddUITestUrls();
2140 2141
2141 std::wstring root_http; 2142 std::wstring root_http;
2142 PathService::Get(chrome::DIR_TEST_DATA, &root_http); 2143 PathService::Get(chrome::DIR_TEST_DATA, &root_http);
2143 URLRequestMockHTTPJob::AddUITestUrls(root_http); 2144 URLRequestMockHTTPJob::AddUITestUrls(root_http);
2145 URLRequestSlowHTTPJob::AddUITestUrls(root_http);
2144 } else { 2146 } else {
2145 // Revert to the default handlers. 2147 // Revert to the default handlers.
2146 URLRequestFilter::GetInstance()->ClearHandlers(); 2148 URLRequestFilter::GetInstance()->ClearHandlers();
2147 } 2149 }
2148 } 2150 }
2149 private: 2151 private:
2150 bool enabled_; 2152 bool enabled_;
2151 }; 2153 };
2152 2154
2153 void AutomationProvider::SetFilteredInet(const IPC::Message& message, 2155 void AutomationProvider::SetFilteredInet(const IPC::Message& message,
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
3051 if (container) { 3053 if (container) {
3052 *count = static_cast<int>(container->GetBlockedPopupCount()); 3054 *count = static_cast<int>(container->GetBlockedPopupCount());
3053 } else { 3055 } else {
3054 // If we don't have a container, we don't have any blocked popups to 3056 // If we don't have a container, we don't have any blocked popups to
3055 // contain! 3057 // contain!
3056 *count = 0; 3058 *count = 0;
3057 } 3059 }
3058 } 3060 }
3059 } 3061 }
3060 } 3062 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/url_request_mock_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698