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

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 10 matching lines...) Expand all
21 #include "base/synchronization/waitable_event.h" 21 #include "base/synchronization/waitable_event.h"
22 #include "base/task.h" 22 #include "base/task.h"
23 #include "base/threading/thread.h" 23 #include "base/threading/thread.h"
24 #include "base/utf_string_conversions.h" 24 #include "base/utf_string_conversions.h"
25 #include "base/values.h" 25 #include "base/values.h"
26 #include "chrome/app/chrome_command_ids.h" 26 #include "chrome/app/chrome_command_ids.h"
27 #include "chrome/browser/autocomplete/autocomplete_edit.h" 27 #include "chrome/browser/autocomplete/autocomplete_edit.h"
28 #include "chrome/browser/autofill/autofill_manager.h" 28 #include "chrome/browser/autofill/autofill_manager.h"
29 #include "chrome/browser/automation/automation_browser_tracker.h" 29 #include "chrome/browser/automation/automation_browser_tracker.h"
30 #include "chrome/browser/automation/automation_extension_tracker.h" 30 #include "chrome/browser/automation/automation_extension_tracker.h"
31 #include "chrome/browser/automation/automation_omnibox_tracker.h"
32 #include "chrome/browser/automation/automation_provider_list.h" 31 #include "chrome/browser/automation/automation_provider_list.h"
33 #include "chrome/browser/automation/automation_provider_observers.h" 32 #include "chrome/browser/automation/automation_provider_observers.h"
34 #include "chrome/browser/automation/automation_resource_message_filter.h" 33 #include "chrome/browser/automation/automation_resource_message_filter.h"
35 #include "chrome/browser/automation/automation_tab_tracker.h" 34 #include "chrome/browser/automation/automation_tab_tracker.h"
36 #include "chrome/browser/automation/automation_window_tracker.h" 35 #include "chrome/browser/automation/automation_window_tracker.h"
37 #include "chrome/browser/automation/ui_controls.h" 36 #include "chrome/browser/automation/ui_controls.h"
38 #include "chrome/browser/bookmarks/bookmark_model.h" 37 #include "chrome/browser/bookmarks/bookmark_model.h"
39 #include "chrome/browser/bookmarks/bookmark_storage.h" 38 #include "chrome/browser/bookmarks/bookmark_storage.h"
40 #include "chrome/browser/browser_process.h" 39 #include "chrome/browser/browser_process.h"
41 #include "chrome/browser/browsing_data_remover.h" 40 #include "chrome/browser/browsing_data_remover.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 #include "chrome/common/automation_constants.h" 75 #include "chrome/common/automation_constants.h"
77 #include "chrome/common/automation_messages.h" 76 #include "chrome/common/automation_messages.h"
78 #include "chrome/common/chrome_constants.h" 77 #include "chrome/common/chrome_constants.h"
79 #include "chrome/common/chrome_paths.h" 78 #include "chrome/common/chrome_paths.h"
80 #include "chrome/common/chrome_switches.h" 79 #include "chrome/common/chrome_switches.h"
81 #include "chrome/common/chrome_version_info.h" 80 #include "chrome/common/chrome_version_info.h"
82 #include "chrome/common/extensions/extension.h" 81 #include "chrome/common/extensions/extension.h"
83 #include "chrome/common/pref_names.h" 82 #include "chrome/common/pref_names.h"
84 #include "chrome/common/render_messages.h" 83 #include "chrome/common/render_messages.h"
85 #include "chrome/common/url_constants.h" 84 #include "chrome/common/url_constants.h"
86 #include "chrome/test/automation/tab_proxy.h"
87 #include "content/browser/browser_thread.h" 85 #include "content/browser/browser_thread.h"
88 #include "content/browser/renderer_host/render_process_host.h" 86 #include "content/browser/renderer_host/render_process_host.h"
89 #include "content/browser/renderer_host/render_view_host.h" 87 #include "content/browser/renderer_host/render_view_host.h"
90 #include "content/browser/tab_contents/navigation_entry.h" 88 #include "content/browser/tab_contents/navigation_entry.h"
91 #include "content/browser/tab_contents/tab_contents.h" 89 #include "content/browser/tab_contents/tab_contents.h"
92 #include "content/browser/tab_contents/tab_contents_view.h" 90 #include "content/browser/tab_contents/tab_contents_view.h"
93 #include "content/common/json_value_serializer.h" 91 #include "content/common/json_value_serializer.h"
94 #include "content/common/view_messages.h" 92 #include "content/common/view_messages.h"
95 #include "net/proxy/proxy_config_service_fixed.h" 93 #include "net/proxy/proxy_config_service_fixed.h"
96 #include "net/proxy/proxy_service.h" 94 #include "net/proxy/proxy_service.h"
(...skipping 17 matching lines...) Expand all
114 initial_tab_loads_complete_(false), 112 initial_tab_loads_complete_(false),
115 network_library_initialized_(true) { 113 network_library_initialized_(true) {
116 TRACE_EVENT_BEGIN_ETW("AutomationProvider::AutomationProvider", 0, ""); 114 TRACE_EVENT_BEGIN_ETW("AutomationProvider::AutomationProvider", 0, "");
117 115
118 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 116 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
119 117
120 browser_tracker_.reset(new AutomationBrowserTracker(this)); 118 browser_tracker_.reset(new AutomationBrowserTracker(this));
121 extension_tracker_.reset(new AutomationExtensionTracker(this)); 119 extension_tracker_.reset(new AutomationExtensionTracker(this));
122 tab_tracker_.reset(new AutomationTabTracker(this)); 120 tab_tracker_.reset(new AutomationTabTracker(this));
123 window_tracker_.reset(new AutomationWindowTracker(this)); 121 window_tracker_.reset(new AutomationWindowTracker(this));
124 automation_omnibox_tracker_.reset(new AutomationOmniboxTracker(this));
125 new_tab_ui_load_observer_.reset(new NewTabUILoadObserver(this)); 122 new_tab_ui_load_observer_.reset(new NewTabUILoadObserver(this));
126 metric_event_duration_observer_.reset(new MetricEventDurationObserver()); 123 metric_event_duration_observer_.reset(new MetricEventDurationObserver());
127 extension_test_result_observer_.reset( 124 extension_test_result_observer_.reset(
128 new ExtensionTestResultNotificationObserver(this)); 125 new ExtensionTestResultNotificationObserver(this));
129 g_browser_process->AddRefModule(); 126 g_browser_process->AddRefModule();
130 127
131 TRACE_EVENT_END_ETW("AutomationProvider::AutomationProvider", 0, ""); 128 TRACE_EVENT_END_ETW("AutomationProvider::AutomationProvider", 0, "");
132 } 129 }
133 130
134 AutomationProvider::~AutomationProvider() { 131 AutomationProvider::~AutomationProvider() {
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 972
976 void AutomationProvider::SaveAsAsync(int tab_handle) { 973 void AutomationProvider::SaveAsAsync(int tab_handle) {
977 NavigationController* tab = NULL; 974 NavigationController* tab = NULL;
978 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); 975 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab);
979 if (tab_contents) { 976 if (tab_contents) {
980 TabContentsWrapper* wrapper = 977 TabContentsWrapper* wrapper =
981 TabContentsWrapper::GetCurrentWrapperForContents(tab_contents); 978 TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
982 wrapper->download_tab_helper()->OnSavePage(); 979 wrapper->download_tab_helper()->OnSavePage();
983 } 980 }
984 } 981 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.h ('k') | chrome/browser/automation/automation_provider_observers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698