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_frame/chrome_frame_automation.h" | 5 #include "chrome_frame/chrome_frame_automation.h" |
6 | 6 |
7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/app/client_util.h" | 23 #include "chrome/app/client_util.h" |
24 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/test/automation/tab_proxy.h" | 26 #include "chrome/test/automation/tab_proxy.h" |
27 #include "chrome_frame/chrome_launcher_utils.h" | 27 #include "chrome_frame/chrome_launcher_utils.h" |
28 #include "chrome_frame/crash_reporting/crash_metrics.h" | 28 #include "chrome_frame/crash_reporting/crash_metrics.h" |
29 #include "chrome_frame/custom_sync_call_context.h" | 29 #include "chrome_frame/custom_sync_call_context.h" |
30 #include "chrome_frame/navigation_constraints.h" | 30 #include "chrome_frame/navigation_constraints.h" |
31 #include "chrome_frame/simple_resource_loader.h" | 31 #include "chrome_frame/simple_resource_loader.h" |
32 #include "chrome_frame/utils.h" | 32 #include "chrome_frame/utils.h" |
| 33 #include "ui/base/ui_base_switches.h" |
33 | 34 |
34 #ifdef NDEBUG | 35 #ifdef NDEBUG |
35 int64 kAutomationServerReasonableLaunchDelay = 1000; // in milliseconds | 36 int64 kAutomationServerReasonableLaunchDelay = 1000; // in milliseconds |
36 #else | 37 #else |
37 int64 kAutomationServerReasonableLaunchDelay = 1000 * 10; | 38 int64 kAutomationServerReasonableLaunchDelay = 1000 * 10; |
38 #endif | 39 #endif |
39 | 40 |
40 int kDefaultSendUMADataInterval = 20000; // in milliseconds. | 41 int kDefaultSendUMADataInterval = 20000; // in milliseconds. |
41 | 42 |
42 static const wchar_t kUmaSendIntervalValue[] = L"UmaSendInterval"; | 43 static const wchar_t kUmaSendIntervalValue[] = L"UmaSendInterval"; |
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 const net::URLRequestStatus& status) { | 1462 const net::URLRequestStatus& status) { |
1462 automation_server_->Send(new AutomationMsg_RequestEnd( | 1463 automation_server_->Send(new AutomationMsg_RequestEnd( |
1463 tab_->handle(), request_id, status)); | 1464 tab_->handle(), request_id, status)); |
1464 } | 1465 } |
1465 | 1466 |
1466 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1467 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
1467 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1468 const GURL& url, const std::string& cookie_string, int cookie_id) { |
1468 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( | 1469 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( |
1469 tab_->handle(), success, url, cookie_string, cookie_id)); | 1470 tab_->handle(), success, url, cookie_string, cookie_id)); |
1470 } | 1471 } |
OLD | NEW |