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_HISTORY_HISTORY_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_EXTENSION_API_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_EXTENSION_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 class DeleteRangeHistoryFunction : public HistoryFunctionWithCallback { | 131 class DeleteRangeHistoryFunction : public HistoryFunctionWithCallback { |
132 public: | 132 public: |
133 virtual bool RunAsyncImpl() OVERRIDE; | 133 virtual bool RunAsyncImpl() OVERRIDE; |
134 DECLARE_EXTENSION_FUNCTION_NAME("history.deleteRange"); | 134 DECLARE_EXTENSION_FUNCTION_NAME("history.deleteRange"); |
135 | 135 |
136 // Callback for the history service to acknowledge deletion. | 136 // Callback for the history service to acknowledge deletion. |
137 void DeleteComplete(); | 137 void DeleteComplete(); |
138 }; | 138 }; |
139 | 139 |
| 140 class GetMostVisitedHistoryFunction : public HistoryFunctionWithCallback { |
| 141 public: |
| 142 virtual bool RunAsyncImpl() OVERRIDE; |
| 143 DECLARE_EXTENSION_FUNCTION_NAME("history.getMostVisited"); |
| 144 |
| 145 // Callback for QueryMostVisitedURLs. |
| 146 void QueryComplete(CancelableRequestProvider::Handle handle, |
| 147 history::MostVisitedURLList pages); |
| 148 |
| 149 // We need a consumer for QueryMostVisitedURLs. |
| 150 CancelableRequestConsumer history_consumer_; |
| 151 }; |
| 152 |
140 #endif // CHROME_BROWSER_HISTORY_HISTORY_EXTENSION_API_H_ | 153 #endif // CHROME_BROWSER_HISTORY_HISTORY_EXTENSION_API_H_ |
OLD | NEW |