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

Side by Side Diff: chrome/browser/history/history_extension_api.h

Issue 9358073: First version of the time slicing on the urls. Not ready for review yet. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added relative time to time slicing Created 8 years, 9 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
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 protected: 76 protected:
77 // The consumer for the HistoryService callbacks. 77 // The consumer for the HistoryService callbacks.
78 CancelableRequestConsumer cancelable_consumer_; 78 CancelableRequestConsumer cancelable_consumer_;
79 79
80 private: 80 private:
81 // The actual call to SendResponse. This is required since the semantics for 81 // The actual call to SendResponse. This is required since the semantics for
82 // CancelableRequestConsumerT require it to be accessed after the call. 82 // CancelableRequestConsumerT require it to be accessed after the call.
83 void SendResponseToCallback(); 83 void SendResponseToCallback();
84 }; 84 };
85 85
86 class GetMostVisitedHistoryFunction : public HistoryFunctionWithCallback {
87 public:
88 virtual bool RunAsyncImpl() OVERRIDE;
89 DECLARE_EXTENSION_FUNCTION_NAME("history.getMostVisited");
90
91 // Callback for the history function to provide results.
92 void QueryComplete(CancelableRequestProvider::Handle handle,
93 history::MostVisitedURLList data);
94 };
95
86 class GetVisitsHistoryFunction : public HistoryFunctionWithCallback { 96 class GetVisitsHistoryFunction : public HistoryFunctionWithCallback {
87 public: 97 public:
88 // Override HistoryFunction. 98 // Override HistoryFunction.
89 virtual bool RunAsyncImpl() OVERRIDE; 99 virtual bool RunAsyncImpl() OVERRIDE;
90 DECLARE_EXTENSION_FUNCTION_NAME("history.getVisits"); 100 DECLARE_EXTENSION_FUNCTION_NAME("history.getVisits");
91 101
92 // Callback for the history function to provide results. 102 // Callback for the history function to provide results.
93 void QueryComplete(HistoryService::Handle request_service, 103 void QueryComplete(HistoryService::Handle request_service,
94 bool success, 104 bool success,
95 const history::URLRow* url_row, 105 const history::URLRow* url_row,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 class DeleteRangeHistoryFunction : public HistoryFunctionWithCallback { 141 class DeleteRangeHistoryFunction : public HistoryFunctionWithCallback {
132 public: 142 public:
133 virtual bool RunAsyncImpl() OVERRIDE; 143 virtual bool RunAsyncImpl() OVERRIDE;
134 DECLARE_EXTENSION_FUNCTION_NAME("history.deleteRange"); 144 DECLARE_EXTENSION_FUNCTION_NAME("history.deleteRange");
135 145
136 // Callback for the history service to acknowledge deletion. 146 // Callback for the history service to acknowledge deletion.
137 void DeleteComplete(); 147 void DeleteComplete();
138 }; 148 };
139 149
140 #endif // CHROME_BROWSER_HISTORY_HISTORY_EXTENSION_API_H_ 150 #endif // CHROME_BROWSER_HISTORY_HISTORY_EXTENSION_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698