Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: chrome/browser/extensions/api/history/history_api.h

Issue 314293005: Change HistoryService::QueryURL to use CancelableTaskTracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase & fix style errors Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 public: 128 public:
129 DECLARE_EXTENSION_FUNCTION("history.getVisits", HISTORY_GETVISITS) 129 DECLARE_EXTENSION_FUNCTION("history.getVisits", HISTORY_GETVISITS)
130 130
131 protected: 131 protected:
132 virtual ~HistoryGetVisitsFunction() {} 132 virtual ~HistoryGetVisitsFunction() {}
133 133
134 // HistoryFunctionWithCallback: 134 // HistoryFunctionWithCallback:
135 virtual bool RunAsyncImpl() OVERRIDE; 135 virtual bool RunAsyncImpl() OVERRIDE;
136 136
137 // Callback for the history function to provide results. 137 // Callback for the history function to provide results.
138 void QueryComplete(HistoryService::Handle request_service, 138 void QueryComplete(bool success,
139 bool success, 139 const history::URLRow& url_row,
140 const history::URLRow* url_row, 140 const history::VisitVector& visits);
141 history::VisitVector* visits);
142 }; 141 };
143 142
144 class HistorySearchFunction : public HistoryFunctionWithCallback { 143 class HistorySearchFunction : public HistoryFunctionWithCallback {
145 public: 144 public:
146 DECLARE_EXTENSION_FUNCTION("history.search", HISTORY_SEARCH) 145 DECLARE_EXTENSION_FUNCTION("history.search", HISTORY_SEARCH)
147 146
148 protected: 147 protected:
149 virtual ~HistorySearchFunction() {} 148 virtual ~HistorySearchFunction() {}
150 149
151 // HistoryFunctionWithCallback: 150 // HistoryFunctionWithCallback:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // HistoryFunctionWithCallback: 202 // HistoryFunctionWithCallback:
204 virtual bool RunAsyncImpl() OVERRIDE; 203 virtual bool RunAsyncImpl() OVERRIDE;
205 204
206 // Callback for the history service to acknowledge deletion. 205 // Callback for the history service to acknowledge deletion.
207 void DeleteComplete(); 206 void DeleteComplete();
208 }; 207 };
209 208
210 } // namespace extensions 209 } // namespace extensions
211 210
212 #endif // CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 211 #endif // CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698