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 "chrome/browser/browsing_data_remover.h" | 8 #include "chrome/browser/browsing_data_remover.h" |
9 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 9 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
10 #include "chrome/browser/dom_ui/dom_ui.h" | 10 #include "chrome/browser/dom_ui/dom_ui.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); | 78 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); |
79 }; | 79 }; |
80 | 80 |
81 class HistoryUI : public DOMUI { | 81 class HistoryUI : public DOMUI { |
82 public: | 82 public: |
83 explicit HistoryUI(DOMUIContents* contents); | 83 explicit HistoryUI(DOMUIContents* contents); |
84 | 84 |
85 // Return the URL for the front page of this UI. | 85 // Return the URL for the front page of this UI. |
86 static GURL GetBaseURL(); | 86 static GURL GetBaseURL(); |
87 | 87 |
| 88 // Return the URL for a given search term. |
| 89 static const GURL GetHistoryURLWithSearchText(const std::wstring& text); |
| 90 |
88 // DOMUI Implementation | 91 // DOMUI Implementation |
89 virtual void Init(); | 92 virtual void Init(); |
90 | 93 |
91 private: | 94 private: |
92 DOMUIContents* contents_; | 95 DOMUIContents* contents_; |
93 | 96 |
94 DISALLOW_COPY_AND_ASSIGN(HistoryUI); | 97 DISALLOW_COPY_AND_ASSIGN(HistoryUI); |
95 }; | 98 }; |
96 | 99 |
97 #endif // CHROME_BROWSER_DOM_UI_HISTORY_UI_H__ | 100 #endif // CHROME_BROWSER_DOM_UI_HISTORY_UI_H__ |
OLD | NEW |