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

Unified Diff: chrome/browser/ui/webui/history2_ui.h

Issue 7086030: Refresh the history page if history entries get deleted, except for when currently editing entries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/history2.html ('k') | chrome/browser/ui/webui/history2_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/history2_ui.h
diff --git a/chrome/browser/ui/webui/history2_ui.h b/chrome/browser/ui/webui/history2_ui.h
index aed4882ce54de7c2f29adad420bb563d188e9158..26d12b0b6eedae3c2302857baab4ae88e7c841f5 100644
--- a/chrome/browser/ui/webui/history2_ui.h
+++ b/chrome/browser/ui/webui/history2_ui.h
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/chrome_web_ui.h"
#include "content/browser/cancelable_request.h"
+#include "content/common/notification_registrar.h"
class GURL;
@@ -38,7 +39,8 @@ class HistoryUIHTMLSource2 : public ChromeURLDataManager::DataSource {
};
// The handler for Javascript messages related to the "history" view.
-class BrowsingHistoryHandler2 : public WebUIMessageHandler {
+class BrowsingHistoryHandler2 : public WebUIMessageHandler,
+ public NotificationObserver {
public:
BrowsingHistoryHandler2();
virtual ~BrowsingHistoryHandler2();
@@ -59,6 +61,11 @@ class BrowsingHistoryHandler2 : public WebUIMessageHandler {
// Handle for "clearBrowsingData" message.
void HandleClearBrowsingData(const ListValue* args);
+ // NotificationObserver implementation.
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
private:
// Callback from the history system when the history list is available.
void QueryComplete(HistoryService::Handle request_handle,
@@ -75,6 +82,8 @@ class BrowsingHistoryHandler2 : public WebUIMessageHandler {
// Figure out the query options for a month-wide query.
history::QueryOptions CreateMonthQueryOptions(int month);
+ NotificationRegistrar registrar_;
+
// Current search text.
string16 search_text_;
« no previous file with comments | « chrome/browser/resources/history2.html ('k') | chrome/browser/ui/webui/history2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698