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

Side by Side Diff: chrome/browser/dom_ui/history_ui.h

Issue 131094: Add GetMessageHandlers to HtmlDialogUIDelegate to allow... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/dom_ui/downloads_ui.cc ('k') | chrome/browser/dom_ui/history_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_DOM_UI_HISTORY_UI_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_HISTORY_UI_H_
6 #define CHROME_BROWSER_DOM_UI_HISTORY_UI_H_ 6 #define CHROME_BROWSER_DOM_UI_HISTORY_UI_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "chrome/browser/browsing_data_remover.h" 9 #include "chrome/browser/browsing_data_remover.h"
10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
(...skipping 17 matching lines...) Expand all
28 28
29 private: 29 private:
30 DISALLOW_COPY_AND_ASSIGN(HistoryUIHTMLSource); 30 DISALLOW_COPY_AND_ASSIGN(HistoryUIHTMLSource);
31 }; 31 };
32 32
33 // The handler for Javascript messages related to the "history" view. 33 // The handler for Javascript messages related to the "history" view.
34 class BrowsingHistoryHandler : public DOMMessageHandler, 34 class BrowsingHistoryHandler : public DOMMessageHandler,
35 public NotificationObserver, 35 public NotificationObserver,
36 public BrowsingDataRemover::Observer { 36 public BrowsingDataRemover::Observer {
37 public: 37 public:
38 explicit BrowsingHistoryHandler(DOMUI* dom_ui_); 38 BrowsingHistoryHandler();
39 virtual ~BrowsingHistoryHandler(); 39 virtual ~BrowsingHistoryHandler();
40 40
41 // DOMMessageHandler implementation.
42 virtual void RegisterMessages();
43
41 // Callback for the "getHistory" message. 44 // Callback for the "getHistory" message.
42 void HandleGetHistory(const Value* value); 45 void HandleGetHistory(const Value* value);
43 46
44 // Callback for the "searchHistory" message. 47 // Callback for the "searchHistory" message.
45 void HandleSearchHistory(const Value* value); 48 void HandleSearchHistory(const Value* value);
46 49
47 // Callback for the "deleteDay" message. 50 // Callback for the "deleteDay" message.
48 void HandleDeleteDay(const Value* value); 51 void HandleDeleteDay(const Value* value);
49 52
50 // NotificationObserver implementation. 53 // NotificationObserver implementation.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 explicit HistoryUI(TabContents* contents); 90 explicit HistoryUI(TabContents* contents);
88 91
89 // Return the URL for a given search term. 92 // Return the URL for a given search term.
90 static const GURL GetHistoryURLWithSearchText(const std::wstring& text); 93 static const GURL GetHistoryURLWithSearchText(const std::wstring& text);
91 94
92 private: 95 private:
93 DISALLOW_COPY_AND_ASSIGN(HistoryUI); 96 DISALLOW_COPY_AND_ASSIGN(HistoryUI);
94 }; 97 };
95 98
96 #endif // CHROME_BROWSER_DOM_UI_HISTORY_UI_H_ 99 #endif // CHROME_BROWSER_DOM_UI_HISTORY_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/downloads_ui.cc ('k') | chrome/browser/dom_ui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698