OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 #include "chrome/common/render_messages.h" | 79 #include "chrome/common/render_messages.h" |
80 #include "chrome/common/url_constants.h" | 80 #include "chrome/common/url_constants.h" |
81 #include "content/browser/debugger/devtools_manager.h" | 81 #include "content/browser/debugger/devtools_manager.h" |
82 #include "content/browser/download/download_item.h" | 82 #include "content/browser/download/download_item.h" |
83 #include "content/browser/download/save_package.h" | 83 #include "content/browser/download/save_package.h" |
84 #include "content/browser/renderer_host/render_view_host.h" | 84 #include "content/browser/renderer_host/render_view_host.h" |
85 #include "content/browser/ssl/ssl_manager.h" | 85 #include "content/browser/ssl/ssl_manager.h" |
86 #include "content/browser/tab_contents/navigation_entry.h" | 86 #include "content/browser/tab_contents/navigation_entry.h" |
87 #include "content/browser/tab_contents/tab_contents.h" | 87 #include "content/browser/tab_contents/tab_contents.h" |
88 #include "content/browser/tab_contents/tab_contents_view.h" | 88 #include "content/browser/tab_contents/tab_contents_view.h" |
89 #include "content/common/view_messages.h" | |
90 #include "content/public/browser/browser_thread.h" | 89 #include "content/public/browser/browser_thread.h" |
91 #include "net/proxy/proxy_config_service_fixed.h" | 90 #include "net/proxy/proxy_config_service_fixed.h" |
92 #include "net/proxy/proxy_service.h" | 91 #include "net/proxy/proxy_service.h" |
93 #include "net/url_request/url_request_context.h" | 92 #include "net/url_request/url_request_context.h" |
94 #include "net/url_request/url_request_context_getter.h" | 93 #include "net/url_request/url_request_context_getter.h" |
95 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 94 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
96 #include "webkit/glue/password_form.h" | 95 #include "webkit/glue/password_form.h" |
97 | 96 |
98 #if defined(OS_WIN) && !defined(USE_AURA) | 97 #if defined(OS_WIN) && !defined(USE_AURA) |
99 #include "chrome/browser/external_tab_container_win.h" | 98 #include "chrome/browser/external_tab_container_win.h" |
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 } | 1019 } |
1021 } | 1020 } |
1022 } | 1021 } |
1023 | 1022 |
1024 void AutomationProvider::SaveAsAsync(int tab_handle) { | 1023 void AutomationProvider::SaveAsAsync(int tab_handle) { |
1025 NavigationController* tab = NULL; | 1024 NavigationController* tab = NULL; |
1026 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); | 1025 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); |
1027 if (tab_contents) | 1026 if (tab_contents) |
1028 tab_contents->OnSavePage(); | 1027 tab_contents->OnSavePage(); |
1029 } | 1028 } |
OLD | NEW |