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

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

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 #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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const NotificationSource& source, 77 const NotificationSource& source,
78 const NotificationDetails& details); 78 const NotificationDetails& details);
79 79
80 // Caller owns the return value and is responsible for deleting it. 80 // Caller owns the return value and is responsible for deleting it.
81 // Example return value: 81 // Example return value:
82 // {'tabs': [{'start_time_ms': 1, 'stop_time_ms': 2.5}, 82 // {'tabs': [{'start_time_ms': 1, 'stop_time_ms': 2.5},
83 // {'start_time_ms': 0.5, 'stop_time_ms': 3}]} 83 // {'start_time_ms': 0.5, 'stop_time_ms': 3}]}
84 // stop_time_ms values may be null if WaitForInitialLoads has not finished. 84 // stop_time_ms values may be null if WaitForInitialLoads has not finished.
85 // Only includes entries for the |tab_count| tabs we are monitoring. 85 // Only includes entries for the |tab_count| tabs we are monitoring.
86 // There is no defined ordering of the return value. 86 // There is no defined ordering of the return value.
87 DictionaryValue* GetTimingInformation() const; 87 base::DictionaryValue* GetTimingInformation() const;
88 88
89 private: 89 private:
90 class TabTime; 90 class TabTime;
91 typedef std::map<uintptr_t, TabTime> TabTimeMap; 91 typedef std::map<uintptr_t, TabTime> TabTimeMap;
92 typedef std::set<uintptr_t> TabSet; 92 typedef std::set<uintptr_t> TabSet;
93 93
94 void ConditionMet(); 94 void ConditionMet();
95 95
96 NotificationRegistrar registrar_; 96 NotificationRegistrar registrar_;
97 97
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 const NotificationDetails& details); 1243 const NotificationDetails& details);
1244 1244
1245 private: 1245 private:
1246 void OnTopSitesLoaded(); 1246 void OnTopSitesLoaded();
1247 void OnTopSitesReceived(const history::MostVisitedURLList& visited_list); 1247 void OnTopSitesReceived(const history::MostVisitedURLList& visited_list);
1248 1248
1249 base::WeakPtr<AutomationProvider> automation_; 1249 base::WeakPtr<AutomationProvider> automation_;
1250 scoped_ptr<IPC::Message> reply_message_; 1250 scoped_ptr<IPC::Message> reply_message_;
1251 CancelableRequestConsumer* consumer_; 1251 CancelableRequestConsumer* consumer_;
1252 CancelableRequestProvider::Handle request_; 1252 CancelableRequestProvider::Handle request_;
1253 scoped_ptr<DictionaryValue> ntp_info_; 1253 scoped_ptr<base::DictionaryValue> ntp_info_;
1254 history::TopSites* top_sites_; 1254 history::TopSites* top_sites_;
1255 NotificationRegistrar registrar_; 1255 NotificationRegistrar registrar_;
1256 1256
1257 DISALLOW_COPY_AND_ASSIGN(NTPInfoObserver); 1257 DISALLOW_COPY_AND_ASSIGN(NTPInfoObserver);
1258 }; 1258 };
1259 1259
1260 // Observes when an app has been launched, as indicated by a notification that 1260 // Observes when an app has been launched, as indicated by a notification that
1261 // a content load in some tab has stopped. 1261 // a content load in some tab has stopped.
1262 class AppLaunchObserver : public NotificationObserver { 1262 class AppLaunchObserver : public NotificationObserver {
1263 public: 1263 public:
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 1550
1551 private: 1551 private:
1552 NotificationRegistrar registrar_; 1552 NotificationRegistrar registrar_;
1553 base::WeakPtr<AutomationProvider> automation_; 1553 base::WeakPtr<AutomationProvider> automation_;
1554 scoped_ptr<IPC::Message> reply_message_; 1554 scoped_ptr<IPC::Message> reply_message_;
1555 1555
1556 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); 1556 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver);
1557 }; 1557 };
1558 1558
1559 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1559 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_json.h ('k') | chrome/browser/automation/automation_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698