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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 10866013: Convert the browsing_data pyauto tests to chrome tests. Remove the ClearBrowsingData automation cod… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix hang on mac Created 8 years, 4 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) 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 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/sequenced_task_runner_helpers.h" 18 #include "base/sequenced_task_runner_helpers.h"
19 #include "base/synchronization/waitable_event.h" 19 #include "base/synchronization/waitable_event.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "chrome/browser/autofill/personal_data_manager.h" 21 #include "chrome/browser/autofill/personal_data_manager.h"
22 #include "chrome/browser/autofill/personal_data_manager_observer.h" 22 #include "chrome/browser/autofill/personal_data_manager_observer.h"
23 #include "chrome/browser/automation/automation_provider_json.h" 23 #include "chrome/browser/automation/automation_provider_json.h"
24 #include "chrome/browser/automation/automation_tab_helper.h" 24 #include "chrome/browser/automation/automation_tab_helper.h"
25 #include "chrome/browser/bookmarks/bookmark_model_observer.h" 25 #include "chrome/browser/bookmarks/bookmark_model_observer.h"
26 #include "chrome/browser/browsing_data/browsing_data_remover.h"
27 #if defined(OS_CHROMEOS) 26 #if defined(OS_CHROMEOS)
28 #include "chrome/browser/chromeos/cros/network_library.h" 27 #include "chrome/browser/chromeos/cros/network_library.h"
29 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen. h" 28 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen. h"
30 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_ actor.h" 29 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_ actor.h"
31 #include "chrome/browser/chromeos/login/login_status_consumer.h" 30 #include "chrome/browser/chromeos/login/login_status_consumer.h"
32 #include "chrome/browser/chromeos/login/user_manager.h" 31 #include "chrome/browser/chromeos/login/user_manager.h"
33 #include "chrome/browser/chromeos/login/wizard_controller.h" 32 #include "chrome/browser/chromeos/login/wizard_controller.h"
34 #include "chrome/browser/chromeos/options/take_photo_dialog.h" 33 #include "chrome/browser/chromeos/options/take_photo_dialog.h"
35 #endif // defined(OS_CHROMEOS) 34 #endif // defined(OS_CHROMEOS)
36 #include "chrome/browser/cancelable_request.h" 35 #include "chrome/browser/cancelable_request.h"
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 PasswordStoreChange::Type expected_type_; 1281 PasswordStoreChange::Type expected_type_;
1283 std::string result_key_; 1282 std::string result_key_;
1284 1283
1285 // Used to ensure that the UI thread waits for the DB thread to finish 1284 // Used to ensure that the UI thread waits for the DB thread to finish
1286 // registering observers before proceeding. 1285 // registering observers before proceeding.
1287 base::WaitableEvent done_event_; 1286 base::WaitableEvent done_event_;
1288 1287
1289 DISALLOW_COPY_AND_ASSIGN(PasswordStoreLoginsChangedObserver); 1288 DISALLOW_COPY_AND_ASSIGN(PasswordStoreLoginsChangedObserver);
1290 }; 1289 };
1291 1290
1292 // Allows the automation provider to wait for clearing browser data to finish.
1293 class AutomationProviderBrowsingDataObserver
1294 : public BrowsingDataRemover::Observer {
1295 public:
1296 AutomationProviderBrowsingDataObserver(
1297 AutomationProvider* provider,
1298 IPC::Message* reply_message);
1299 virtual ~AutomationProviderBrowsingDataObserver();
1300
1301 virtual void OnBrowsingDataRemoverDone();
1302
1303 private:
1304 base::WeakPtr<AutomationProvider> provider_;
1305 scoped_ptr<IPC::Message> reply_message_;
1306 };
1307
1308 // Allows automation provider to wait until page load after selecting an item 1291 // Allows automation provider to wait until page load after selecting an item
1309 // in the omnibox popup. 1292 // in the omnibox popup.
1310 class OmniboxAcceptNotificationObserver : public content::NotificationObserver { 1293 class OmniboxAcceptNotificationObserver : public content::NotificationObserver {
1311 public: 1294 public:
1312 OmniboxAcceptNotificationObserver(content::NavigationController* controller, 1295 OmniboxAcceptNotificationObserver(content::NavigationController* controller,
1313 AutomationProvider* automation, 1296 AutomationProvider* automation,
1314 IPC::Message* reply_message); 1297 IPC::Message* reply_message);
1315 virtual ~OmniboxAcceptNotificationObserver(); 1298 virtual ~OmniboxAcceptNotificationObserver();
1316 1299
1317 // Overridden from content::NotificationObserver: 1300 // Overridden from content::NotificationObserver:
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 base::WeakPtr<AutomationProvider> automation_; 1870 base::WeakPtr<AutomationProvider> automation_;
1888 scoped_ptr<IPC::Message> reply_message_; 1871 scoped_ptr<IPC::Message> reply_message_;
1889 int new_window_id_; 1872 int new_window_id_;
1890 int num_loads_; 1873 int num_loads_;
1891 1874
1892 DISALLOW_COPY_AND_ASSIGN( 1875 DISALLOW_COPY_AND_ASSIGN(
1893 BrowserOpenedWithExistingProfileNotificationObserver); 1876 BrowserOpenedWithExistingProfileNotificationObserver);
1894 }; 1877 };
1895 1878
1896 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1879 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager.h ('k') | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698