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/automation/automation_provider.h" | 5 #include "chrome/browser/automation/automation_provider.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "app/message_box_flags.h" | 9 #include "app/message_box_flags.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 #include "chrome/common/net/url_request_context_getter.h" | 95 #include "chrome/common/net/url_request_context_getter.h" |
96 #include "chrome/common/pref_names.h" | 96 #include "chrome/common/pref_names.h" |
97 #include "chrome/common/url_constants.h" | 97 #include "chrome/common/url_constants.h" |
98 #include "chrome/test/automation/tab_proxy.h" | 98 #include "chrome/test/automation/tab_proxy.h" |
99 #include "net/proxy/proxy_service.h" | 99 #include "net/proxy/proxy_service.h" |
100 #include "net/proxy/proxy_config_service_fixed.h" | 100 #include "net/proxy/proxy_config_service_fixed.h" |
101 #include "net/url_request/url_request_context.h" | 101 #include "net/url_request/url_request_context.h" |
102 #include "chrome/browser/automation/ui_controls.h" | 102 #include "chrome/browser/automation/ui_controls.h" |
103 #include "views/event.h" | 103 #include "views/event.h" |
104 #include "webkit/glue/password_form.h" | 104 #include "webkit/glue/password_form.h" |
105 #include "webkit/glue/plugins/plugin_list.h" | |
106 | 105 |
107 #if defined(OS_WIN) | 106 #if defined(OS_WIN) |
108 #include "chrome/browser/external_tab_container_win.h" | 107 #include "chrome/browser/external_tab_container_win.h" |
109 #endif // defined(OS_WIN) | 108 #endif // defined(OS_WIN) |
110 | 109 |
111 using base::Time; | 110 using base::Time; |
112 | 111 |
113 AutomationProvider::AutomationProvider(Profile* profile) | 112 AutomationProvider::AutomationProvider(Profile* profile) |
114 : profile_(profile), | 113 : profile_(profile), |
115 reply_message_(NULL) { | 114 reply_message_(NULL) { |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 } | 979 } |
981 } | 980 } |
982 } | 981 } |
983 | 982 |
984 void AutomationProvider::SaveAsAsync(int tab_handle) { | 983 void AutomationProvider::SaveAsAsync(int tab_handle) { |
985 NavigationController* tab = NULL; | 984 NavigationController* tab = NULL; |
986 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); | 985 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); |
987 if (tab_contents) | 986 if (tab_contents) |
988 tab_contents->OnSavePage(); | 987 tab_contents->OnSavePage(); |
989 } | 988 } |
OLD | NEW |