| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 #include "content/public/browser/trace_controller.h" | 82 #include "content/public/browser/trace_controller.h" |
| 83 #include "content/public/browser/web_contents.h" | 83 #include "content/public/browser/web_contents.h" |
| 84 #include "content/public/browser/web_contents_view.h" | 84 #include "content/public/browser/web_contents_view.h" |
| 85 #include "net/proxy/proxy_config_service_fixed.h" | 85 #include "net/proxy/proxy_config_service_fixed.h" |
| 86 #include "net/proxy/proxy_service.h" | 86 #include "net/proxy/proxy_service.h" |
| 87 #include "net/url_request/url_request_context.h" | 87 #include "net/url_request/url_request_context.h" |
| 88 #include "net/url_request/url_request_context_getter.h" | 88 #include "net/url_request/url_request_context_getter.h" |
| 89 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 89 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 90 | 90 |
| 91 #if defined(OS_WIN) && !defined(USE_AURA) | 91 #if defined(OS_WIN) && !defined(USE_AURA) |
| 92 #include "chrome/browser/external_tab_container_win.h" | 92 #include "chrome/browser/external_tab/external_tab_container_win.h" |
| 93 #endif // defined(OS_WIN) | 93 #endif // defined(OS_WIN) |
| 94 | 94 |
| 95 #if defined(OS_CHROMEOS) | 95 #if defined(OS_CHROMEOS) |
| 96 #include "chrome/browser/chromeos/login/user_manager.h" | 96 #include "chrome/browser/chromeos/login/user_manager.h" |
| 97 #endif // defined(OS_CHROMEOS) | 97 #endif // defined(OS_CHROMEOS) |
| 98 | 98 |
| 99 using WebKit::WebFindOptions; | 99 using WebKit::WebFindOptions; |
| 100 using base::Time; | 100 using base::Time; |
| 101 using content::BrowserThread; | 101 using content::BrowserThread; |
| 102 using content::DownloadItem; | 102 using content::DownloadItem; |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 } | 1014 } |
| 1015 } | 1015 } |
| 1016 } | 1016 } |
| 1017 | 1017 |
| 1018 void AutomationProvider::SaveAsAsync(int tab_handle) { | 1018 void AutomationProvider::SaveAsAsync(int tab_handle) { |
| 1019 NavigationController* tab = NULL; | 1019 NavigationController* tab = NULL; |
| 1020 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); | 1020 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); |
| 1021 if (web_contents) | 1021 if (web_contents) |
| 1022 web_contents->OnSavePage(); | 1022 web_contents->OnSavePage(); |
| 1023 } | 1023 } |
| OLD | NEW |