| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Figure out the query options for a month-wide query. | 67 // Figure out the query options for a month-wide query. |
| 68 history::QueryOptions CreateMonthQueryOptions(int month); | 68 history::QueryOptions CreateMonthQueryOptions(int month); |
| 69 | 69 |
| 70 // Current search text. | 70 // Current search text. |
| 71 std::wstring search_text_; | 71 std::wstring search_text_; |
| 72 | 72 |
| 73 // Browsing history remover | 73 // Browsing history remover |
| 74 scoped_ptr<BrowsingDataRemover> remover_; | 74 scoped_ptr<BrowsingDataRemover> remover_; |
| 75 | 75 |
| 76 // Our consumer for the history service. | 76 // Our consumer for the history service. |
| 77 CancelableRequestConsumerTSimple<PageUsageData*> cancelable_consumer_; | 77 CancelableRequestConsumerT<int, 0> cancelable_consumer_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); | 79 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 class HistoryUI : public DOMUI { | 82 class HistoryUI : public DOMUI { |
| 83 public: | 83 public: |
| 84 explicit HistoryUI(DOMUIContents* contents); | 84 explicit HistoryUI(DOMUIContents* contents); |
| 85 | 85 |
| 86 // Return the URL for the front page of this UI. | 86 // Return the URL for the front page of this UI. |
| 87 static GURL GetBaseURL(); | 87 static GURL GetBaseURL(); |
| 88 | 88 |
| 89 // Return the URL for a given search term. | 89 // Return the URL for a given search term. |
| 90 static const GURL GetHistoryURLWithSearchText(const std::wstring& text); | 90 static const GURL GetHistoryURLWithSearchText(const std::wstring& text); |
| 91 | 91 |
| 92 // DOMUI Implementation | 92 // DOMUI Implementation |
| 93 virtual void Init(); | 93 virtual void Init(); |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(HistoryUI); | 97 DISALLOW_COPY_AND_ASSIGN(HistoryUI); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 #endif // CHROME_BROWSER_DOM_UI_HISTORY_UI_H__ | 100 #endif // CHROME_BROWSER_DOM_UI_HISTORY_UI_H__ |
| OLD | NEW |