| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_WEBUI_HISTORY_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 // Current search text. | 66 // Current search text. |
| 67 string16 search_text_; | 67 string16 search_text_; |
| 68 | 68 |
| 69 // Our consumer for search requests to the history service. | 69 // Our consumer for search requests to the history service. |
| 70 CancelableRequestConsumerT<int, 0> cancelable_search_consumer_; | 70 CancelableRequestConsumerT<int, 0> cancelable_search_consumer_; |
| 71 | 71 |
| 72 // Our consumer for delete requests to the history service. | 72 // Our consumer for delete requests to the history service. |
| 73 CancelableRequestConsumerT<int, 0> cancelable_delete_consumer_; | 73 CancelableRequestConsumerT<int, 0> cancelable_delete_consumer_; |
| 74 | 74 |
| 75 // The list of URLs that are in the process of being deleted. |
| 76 std::set<GURL> urls_to_be_deleted_; |
| 77 |
| 75 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); | 78 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 class HistoryUI : public ChromeWebUI { | 81 class HistoryUI : public ChromeWebUI { |
| 79 public: | 82 public: |
| 80 explicit HistoryUI(TabContents* contents); | 83 explicit HistoryUI(TabContents* contents); |
| 81 | 84 |
| 82 // Return the URL for a given search term. | 85 // Return the URL for a given search term. |
| 83 static const GURL GetHistoryURLWithSearchText(const string16& text); | 86 static const GURL GetHistoryURLWithSearchText(const string16& text); |
| 84 | 87 |
| 85 static RefCountedMemory* GetFaviconResourceBytes(); | 88 static RefCountedMemory* GetFaviconResourceBytes(); |
| 86 | 89 |
| 87 private: | 90 private: |
| 88 DISALLOW_COPY_AND_ASSIGN(HistoryUI); | 91 DISALLOW_COPY_AND_ASSIGN(HistoryUI); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ | 94 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ |
| OLD | NEW |