| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #include "net/proxy/proxy_service.h" | 73 #include "net/proxy/proxy_service.h" |
| 74 #include "net/url_request/url_request_context.h" | 74 #include "net/url_request/url_request_context.h" |
| 75 #include "net/url_request/url_request_context_getter.h" | 75 #include "net/url_request/url_request_context_getter.h" |
| 76 #include "third_party/WebKit/public/web/WebFindOptions.h" | 76 #include "third_party/WebKit/public/web/WebFindOptions.h" |
| 77 | 77 |
| 78 #if defined(OS_CHROMEOS) | 78 #if defined(OS_CHROMEOS) |
| 79 #include "chromeos/chromeos_switches.h" | 79 #include "chromeos/chromeos_switches.h" |
| 80 #include "chromeos/login/login_state.h" | 80 #include "chromeos/login/login_state.h" |
| 81 #endif // defined(OS_CHROMEOS) | 81 #endif // defined(OS_CHROMEOS) |
| 82 | 82 |
| 83 using WebKit::WebFindOptions; | 83 using blink::WebFindOptions; |
| 84 using base::Time; | 84 using base::Time; |
| 85 using content::BrowserThread; | 85 using content::BrowserThread; |
| 86 using content::DownloadItem; | 86 using content::DownloadItem; |
| 87 using content::NavigationController; | 87 using content::NavigationController; |
| 88 using content::RenderViewHost; | 88 using content::RenderViewHost; |
| 89 using content::TraceController; | 89 using content::TraceController; |
| 90 using content::WebContents; | 90 using content::WebContents; |
| 91 | 91 |
| 92 namespace { | 92 namespace { |
| 93 | 93 |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 | 778 |
| 779 return NULL; | 779 return NULL; |
| 780 } | 780 } |
| 781 | 781 |
| 782 void AutomationProvider::SaveAsAsync(int tab_handle) { | 782 void AutomationProvider::SaveAsAsync(int tab_handle) { |
| 783 NavigationController* tab = NULL; | 783 NavigationController* tab = NULL; |
| 784 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); | 784 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); |
| 785 if (web_contents) | 785 if (web_contents) |
| 786 web_contents->OnSavePage(); | 786 web_contents->OnSavePage(); |
| 787 } | 787 } |
| OLD | NEW |