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...) 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" |
105 | 106 |
106 #if defined(OS_WIN) | 107 #if defined(OS_WIN) |
107 #include "chrome/browser/external_tab_container_win.h" | 108 #include "chrome/browser/external_tab_container_win.h" |
108 #endif // defined(OS_WIN) | 109 #endif // defined(OS_WIN) |
109 | 110 |
110 using base::Time; | 111 using base::Time; |
111 | 112 |
112 AutomationProvider::AutomationProvider(Profile* profile) | 113 AutomationProvider::AutomationProvider(Profile* profile) |
113 : profile_(profile), | 114 : profile_(profile), |
114 reply_message_(NULL) { | 115 reply_message_(NULL) { |
(...skipping 864 matching lines...) Loading... |
979 } | 980 } |
980 } | 981 } |
981 } | 982 } |
982 | 983 |
983 void AutomationProvider::SaveAsAsync(int tab_handle) { | 984 void AutomationProvider::SaveAsAsync(int tab_handle) { |
984 NavigationController* tab = NULL; | 985 NavigationController* tab = NULL; |
985 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); | 986 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); |
986 if (tab_contents) | 987 if (tab_contents) |
987 tab_contents->OnSavePage(); | 988 tab_contents->OnSavePage(); |
988 } | 989 } |
OLD | NEW |