| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |