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

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

Issue 369503007: Remove dead code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows compilation Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/history/history_backend.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // ExtensionFunction: 107 // ExtensionFunction:
108 virtual bool RunAsync() OVERRIDE; 108 virtual bool RunAsync() OVERRIDE;
109 109
110 // Return true if the async call was completed, false otherwise. 110 // Return true if the async call was completed, false otherwise.
111 virtual bool RunAsyncImpl() = 0; 111 virtual bool RunAsyncImpl() = 0;
112 112
113 // Call this method to report the results of the async method to the caller. 113 // Call this method to report the results of the async method to the caller.
114 // This method calls Release(). 114 // This method calls Release().
115 virtual void SendAsyncResponse(); 115 virtual void SendAsyncResponse();
116 116
117 // The consumer for the HistoryService callbacks. 117 // The task tracker for the HistoryService callbacks.
118 CancelableRequestConsumer cancelable_consumer_;
119 base::CancelableTaskTracker task_tracker_; 118 base::CancelableTaskTracker task_tracker_;
120 119
121 private: 120 private:
122 // The actual call to SendResponse. This is required since the semantics for 121 // The actual call to SendResponse. This is required since the semantics for
123 // CancelableRequestConsumerT require it to be accessed after the call. 122 // CancelableRequestConsumerT require it to be accessed after the call.
124 void SendResponseToCallback(); 123 void SendResponseToCallback();
125 }; 124 };
126 125
127 class HistoryGetVisitsFunction : public HistoryFunctionWithCallback { 126 class HistoryGetVisitsFunction : public HistoryFunctionWithCallback {
128 public: 127 public:
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // HistoryFunctionWithCallback: 200 // HistoryFunctionWithCallback:
202 virtual bool RunAsyncImpl() OVERRIDE; 201 virtual bool RunAsyncImpl() OVERRIDE;
203 202
204 // Callback for the history service to acknowledge deletion. 203 // Callback for the history service to acknowledge deletion.
205 void DeleteComplete(); 204 void DeleteComplete();
206 }; 205 };
207 206
208 } // namespace extensions 207 } // namespace extensions
209 208
210 #endif // CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 209 #endif // CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698