| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 #include "chrome/browser/ui/omnibox/location_bar.h" | 86 #include "chrome/browser/ui/omnibox/location_bar.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/automation_messages.h" |
| 89 #include "chrome/common/chrome_constants.h" | 89 #include "chrome/common/chrome_constants.h" |
| 90 #include "chrome/common/chrome_paths.h" | 90 #include "chrome/common/chrome_paths.h" |
| 91 #include "chrome/common/chrome_switches.h" | 91 #include "chrome/common/chrome_switches.h" |
| 92 #include "chrome/common/chrome_version_info.h" | 92 #include "chrome/common/chrome_version_info.h" |
| 93 #include "chrome/common/extensions/extension.h" | 93 #include "chrome/common/extensions/extension.h" |
| 94 #include "chrome/common/json_value_serializer.h" | 94 #include "chrome/common/json_value_serializer.h" |
| 95 #include "chrome/common/net/url_request_context_getter.h" | 95 #include "chrome/common/net/url_request_context_getter.h" |
| 96 #include "chrome/common/notification_service.h" | |
| 97 #include "chrome/common/pref_names.h" | 96 #include "chrome/common/pref_names.h" |
| 98 #include "chrome/common/url_constants.h" | 97 #include "chrome/common/url_constants.h" |
| 99 #include "chrome/test/automation/tab_proxy.h" | 98 #include "chrome/test/automation/tab_proxy.h" |
| 100 #include "net/proxy/proxy_service.h" | 99 #include "net/proxy/proxy_service.h" |
| 101 #include "net/proxy/proxy_config_service_fixed.h" | 100 #include "net/proxy/proxy_config_service_fixed.h" |
| 102 #include "net/url_request/url_request_context.h" | 101 #include "net/url_request/url_request_context.h" |
| 103 #include "chrome/browser/automation/ui_controls.h" | 102 #include "chrome/browser/automation/ui_controls.h" |
| 104 #include "views/event.h" | 103 #include "views/event.h" |
| 105 #include "webkit/glue/password_form.h" | 104 #include "webkit/glue/password_form.h" |
| 106 #include "webkit/glue/plugins/plugin_list.h" | 105 #include "webkit/glue/plugins/plugin_list.h" |
| (...skipping 874 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 |