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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 118 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
119 | 119 |
120 browser_tracker_.reset(new AutomationBrowserTracker(this)); | 120 browser_tracker_.reset(new AutomationBrowserTracker(this)); |
121 extension_tracker_.reset(new AutomationExtensionTracker(this)); | 121 extension_tracker_.reset(new AutomationExtensionTracker(this)); |
122 tab_tracker_.reset(new AutomationTabTracker(this)); | 122 tab_tracker_.reset(new AutomationTabTracker(this)); |
123 window_tracker_.reset(new AutomationWindowTracker(this)); | 123 window_tracker_.reset(new AutomationWindowTracker(this)); |
124 autocomplete_edit_tracker_.reset( | 124 autocomplete_edit_tracker_.reset( |
125 new AutomationAutocompleteEditTracker(this)); | 125 new AutomationAutocompleteEditTracker(this)); |
126 new_tab_ui_load_observer_.reset(new NewTabUILoadObserver(this)); | 126 new_tab_ui_load_observer_.reset(new NewTabUILoadObserver(this)); |
127 dom_operation_observer_.reset(new DomOperationMessageSender(this)); | |
128 metric_event_duration_observer_.reset(new MetricEventDurationObserver()); | 127 metric_event_duration_observer_.reset(new MetricEventDurationObserver()); |
129 extension_test_result_observer_.reset( | 128 extension_test_result_observer_.reset( |
130 new ExtensionTestResultNotificationObserver(this)); | 129 new ExtensionTestResultNotificationObserver(this)); |
131 g_browser_process->AddRefModule(); | 130 g_browser_process->AddRefModule(); |
132 | 131 |
133 TRACE_EVENT_END("AutomationProvider::AutomationProvider", 0, ""); | 132 TRACE_EVENT_END("AutomationProvider::AutomationProvider", 0, ""); |
134 } | 133 } |
135 | 134 |
136 AutomationProvider::~AutomationProvider() { | 135 AutomationProvider::~AutomationProvider() { |
137 STLDeleteContainerPairSecondPointers(port_containers_.begin(), | 136 STLDeleteContainerPairSecondPointers(port_containers_.begin(), |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 } | 1009 } |
1011 } | 1010 } |
1012 } | 1011 } |
1013 | 1012 |
1014 void AutomationProvider::SaveAsAsync(int tab_handle) { | 1013 void AutomationProvider::SaveAsAsync(int tab_handle) { |
1015 NavigationController* tab = NULL; | 1014 NavigationController* tab = NULL; |
1016 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); | 1015 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); |
1017 if (tab_contents) | 1016 if (tab_contents) |
1018 tab_contents->OnSavePage(); | 1017 tab_contents->OnSavePage(); |
1019 } | 1018 } |
OLD | NEW |