Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: chrome/browser/automation/automation_provider.cc

Issue 7104029: Automation: fix chrome/browser dependency on chrome/test headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 #include "chrome/common/automation_constants.h" 76 #include "chrome/common/automation_constants.h"
77 #include "chrome/common/automation_messages.h" 77 #include "chrome/common/automation_messages.h"
78 #include "chrome/common/chrome_constants.h" 78 #include "chrome/common/chrome_constants.h"
79 #include "chrome/common/chrome_paths.h" 79 #include "chrome/common/chrome_paths.h"
80 #include "chrome/common/chrome_switches.h" 80 #include "chrome/common/chrome_switches.h"
81 #include "chrome/common/chrome_version_info.h" 81 #include "chrome/common/chrome_version_info.h"
82 #include "chrome/common/extensions/extension.h" 82 #include "chrome/common/extensions/extension.h"
83 #include "chrome/common/pref_names.h" 83 #include "chrome/common/pref_names.h"
84 #include "chrome/common/render_messages.h" 84 #include "chrome/common/render_messages.h"
85 #include "chrome/common/url_constants.h" 85 #include "chrome/common/url_constants.h"
86 #include "chrome/test/automation/tab_proxy.h"
87 #include "content/browser/browser_thread.h" 86 #include "content/browser/browser_thread.h"
88 #include "content/browser/renderer_host/render_process_host.h" 87 #include "content/browser/renderer_host/render_process_host.h"
89 #include "content/browser/renderer_host/render_view_host.h" 88 #include "content/browser/renderer_host/render_view_host.h"
90 #include "content/browser/tab_contents/navigation_entry.h" 89 #include "content/browser/tab_contents/navigation_entry.h"
91 #include "content/browser/tab_contents/tab_contents.h" 90 #include "content/browser/tab_contents/tab_contents.h"
92 #include "content/browser/tab_contents/tab_contents_view.h" 91 #include "content/browser/tab_contents/tab_contents_view.h"
93 #include "content/common/json_value_serializer.h" 92 #include "content/common/json_value_serializer.h"
94 #include "content/common/view_messages.h" 93 #include "content/common/view_messages.h"
95 #include "net/proxy/proxy_config_service_fixed.h" 94 #include "net/proxy/proxy_config_service_fixed.h"
96 #include "net/proxy/proxy_service.h" 95 #include "net/proxy/proxy_service.h"
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 974
976 void AutomationProvider::SaveAsAsync(int tab_handle) { 975 void AutomationProvider::SaveAsAsync(int tab_handle) {
977 NavigationController* tab = NULL; 976 NavigationController* tab = NULL;
978 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); 977 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab);
979 if (tab_contents) { 978 if (tab_contents) {
980 TabContentsWrapper* wrapper = 979 TabContentsWrapper* wrapper =
981 TabContentsWrapper::GetCurrentWrapperForContents(tab_contents); 980 TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
982 wrapper->download_tab_helper()->OnSavePage(); 981 wrapper->download_tab_helper()->OnSavePage();
983 } 982 }
984 } 983 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698