OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSING_HISTORY_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_BROWSING_HISTORY_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_BROWSING_HISTORY_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_BROWSING_HISTORY_HANDLER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "base/time/clock.h" | 17 #include "base/time/clock.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/browser/history/browsing_history_service_handler.h" | 19 #include "chrome/browser/history/browsing_history_service_handler.h" |
20 #include "content/public/browser/web_ui_message_handler.h" | 20 #include "content/public/browser/web_ui_message_handler.h" |
21 | 21 |
22 class SupervisedUserService; | |
23 | |
24 namespace bookmarks { | |
25 class BookmarkModel; | |
26 } // namespace bookmarks | |
27 | |
28 namespace history { | 22 namespace history { |
29 struct QueryOptions; | 23 struct QueryOptions; |
30 } // namespace history | 24 } // namespace history |
31 | 25 |
32 // The handler for Javascript messages related to the "history" view. | 26 // The handler for Javascript messages related to the "history" view. |
33 class BrowsingHistoryHandler : | 27 class BrowsingHistoryHandler : |
34 public content::WebUIMessageHandler, | 28 public content::WebUIMessageHandler, |
35 public BrowsingHistoryServiceHandler { | 29 public BrowsingHistoryServiceHandler { |
36 public: | 30 public: |
37 BrowsingHistoryHandler(); | 31 BrowsingHistoryHandler(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 89 |
96 // The clock used to vend times. | 90 // The clock used to vend times. |
97 std::unique_ptr<base::Clock> clock_; | 91 std::unique_ptr<base::Clock> clock_; |
98 | 92 |
99 std::unique_ptr<BrowsingHistoryService> browsing_history_service_; | 93 std::unique_ptr<BrowsingHistoryService> browsing_history_service_; |
100 | 94 |
101 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); | 95 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); |
102 }; | 96 }; |
103 | 97 |
104 #endif // CHROME_BROWSER_UI_WEBUI_BROWSING_HISTORY_HANDLER_H_ | 98 #endif // CHROME_BROWSER_UI_WEBUI_BROWSING_HISTORY_HANDLER_H_ |
OLD | NEW |