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