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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #include "chrome/browser/renderer_host/render_process_host.h" | 78 #include "chrome/browser/renderer_host/render_process_host.h" |
79 #include "chrome/browser/renderer_host/render_view_host.h" | 79 #include "chrome/browser/renderer_host/render_view_host.h" |
80 #include "chrome/browser/ssl/ssl_manager.h" | 80 #include "chrome/browser/ssl/ssl_manager.h" |
81 #include "chrome/browser/ssl/ssl_blocking_page.h" | 81 #include "chrome/browser/ssl/ssl_blocking_page.h" |
82 #include "chrome/browser/tab_contents/infobar_delegate.h" | 82 #include "chrome/browser/tab_contents/infobar_delegate.h" |
83 #include "chrome/browser/tab_contents/navigation_entry.h" | 83 #include "chrome/browser/tab_contents/navigation_entry.h" |
84 #include "chrome/browser/tab_contents/tab_contents.h" | 84 #include "chrome/browser/tab_contents/tab_contents.h" |
85 #include "chrome/browser/tab_contents/tab_contents_view.h" | 85 #include "chrome/browser/tab_contents/tab_contents_view.h" |
86 #include "chrome/browser/translate/translate_infobar_delegate.h" | 86 #include "chrome/browser/translate/translate_infobar_delegate.h" |
87 #include "chrome/common/automation_constants.h" | 87 #include "chrome/common/automation_constants.h" |
| 88 #include "chrome/common/automation_messages.h" |
88 #include "chrome/common/chrome_constants.h" | 89 #include "chrome/common/chrome_constants.h" |
89 #include "chrome/common/chrome_paths.h" | 90 #include "chrome/common/chrome_paths.h" |
90 #include "chrome/common/chrome_switches.h" | 91 #include "chrome/common/chrome_switches.h" |
91 #include "chrome/common/chrome_version_info.h" | 92 #include "chrome/common/chrome_version_info.h" |
92 #include "chrome/common/extensions/extension.h" | 93 #include "chrome/common/extensions/extension.h" |
93 #include "chrome/common/json_value_serializer.h" | 94 #include "chrome/common/json_value_serializer.h" |
94 #include "chrome/common/net/url_request_context_getter.h" | 95 #include "chrome/common/net/url_request_context_getter.h" |
95 #include "chrome/common/notification_service.h" | 96 #include "chrome/common/notification_service.h" |
96 #include "chrome/common/pref_names.h" | 97 #include "chrome/common/pref_names.h" |
97 #include "chrome/common/url_constants.h" | 98 #include "chrome/common/url_constants.h" |
98 #include "chrome/test/automation/automation_messages.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" | 106 #include "webkit/glue/plugins/plugin_list.h" |
107 | 107 |
108 #if defined(OS_WIN) | 108 #if defined(OS_WIN) |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 } | 992 } |
993 } | 993 } |
994 } | 994 } |
995 | 995 |
996 void AutomationProvider::SaveAsAsync(int tab_handle) { | 996 void AutomationProvider::SaveAsAsync(int tab_handle) { |
997 NavigationController* tab = NULL; | 997 NavigationController* tab = NULL; |
998 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); | 998 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); |
999 if (tab_contents) | 999 if (tab_contents) |
1000 tab_contents->OnSavePage(); | 1000 tab_contents->OnSavePage(); |
1001 } | 1001 } |
OLD | NEW |