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

Unified Diff: chrome/browser/automation/automation_provider_observers.h

Issue 3477001: Add pyauto hook for getting and manipulating the data underneath the NTP.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider_observers.h
===================================================================
--- chrome/browser/automation/automation_provider_observers.h (revision 61074)
+++ chrome/browser/automation/automation_provider_observers.h (working copy)
@@ -10,12 +10,15 @@
#include <map>
#include <set>
+#include "base/scoped_ptr.h"
#include "chrome/browser/automation/testing_automation_provider.h"
#include "chrome/browser/bookmarks/bookmark_model_observer.h"
#include "chrome/browser/browsing_data_remover.h"
+#include "chrome/browser/cancelable_request.h"
#include "chrome/browser/download/download_item.h"
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/history/history.h"
+#include "chrome/browser/history/history_types.h"
#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_data_types.h"
#include "chrome/browser/password_manager/password_store.h"
@@ -36,6 +39,10 @@
class TabContents;
class TranslateInfoBarDelegate;
+namespace history {
+class TopSites;
+}
+
namespace IPC {
class Message;
}
@@ -863,6 +870,25 @@
DISALLOW_COPY_AND_ASSIGN(SavePackageNotificationObserver);
};
+class NTPInfoObserver {
+ public:
+ NTPInfoObserver(AutomationProvider* automation,
+ IPC::Message* reply_message,
+ CancelableRequestConsumer* consumer);
+
+ private:
+ void OnTopSitesRefreshed();
+ void OnTopSitesReceived(history::MostVisitedURLList visited_list);
+
+ AutomationProvider* automation_;
+ IPC::Message* reply_message_;
+ CancelableRequestConsumer* consumer_;
+ scoped_ptr<DictionaryValue> ntp_info_;
+ history::TopSites* top_sites_;
+
+ DISALLOW_COPY_AND_ASSIGN(NTPInfoObserver);
+};
+
// Allows automation provider to wait until the autocomplete edit
// has received focus
class AutocompleteEditFocusedObserver : public NotificationObserver {
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698