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

Side by Side Diff: chrome/browser/ui/webui/history_ui.h

Issue 11886104: History: Add range navigation control for grouped visits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replies to comments. Created 7 years, 10 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) 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_UI_WEBUI_HISTORY_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Callback from the history system when visits were deleted. 85 // Callback from the history system when visits were deleted.
86 void RemoveComplete(); 86 void RemoveComplete();
87 87
88 // Callback from history server when visits were deleted. 88 // Callback from history server when visits were deleted.
89 void RemoveWebHistoryComplete(history::WebHistoryService::Request* request, 89 void RemoveWebHistoryComplete(history::WebHistoryService::Request* request,
90 bool success); 90 bool success);
91 91
92 bool ExtractIntegerValueAtIndex( 92 bool ExtractIntegerValueAtIndex(
93 const base::ListValue* value, int index, int* out_int); 93 const base::ListValue* value, int index, int* out_int);
94 94
95 // Set the query options for a month-wide query. 95 // Set the query options for a week-wide query, |offset| weeks ago.
96 void SetQueryTimeInMonths(history::QueryOptions* options); 96 void SetQueryTimeInWeeks(int offset, history::QueryOptions* options);
97 97
98 // Set the query options for a week-wide query. 98 // Sets the query options for a monthly query, |offset| months ago.
99 void SetQueryTimeInWeeks(history::QueryOptions* options); 99 void SetQueryTimeInMonths(int offset, history::QueryOptions* options);
100 100
101 content::NotificationRegistrar registrar_; 101 content::NotificationRegistrar registrar_;
102 102
103 // Consumer for search requests to the history service. 103 // Consumer for search requests to the history service.
104 CancelableRequestConsumerT<int, 0> history_request_consumer_; 104 CancelableRequestConsumerT<int, 0> history_request_consumer_;
105 105
106 // The currently-executing request for synced history results. 106 // The currently-executing request for synced history results.
107 // Deleting the request will cancel it. 107 // Deleting the request will cancel it.
108 scoped_ptr<history::WebHistoryService::Request> web_history_request_; 108 scoped_ptr<history::WebHistoryService::Request> web_history_request_;
109 109
(...skipping 27 matching lines...) Expand all
137 static const GURL GetHistoryURLWithSearchText(const string16& text); 137 static const GURL GetHistoryURLWithSearchText(const string16& text);
138 138
139 static base::RefCountedMemory* GetFaviconResourceBytes( 139 static base::RefCountedMemory* GetFaviconResourceBytes(
140 ui::ScaleFactor scale_factor); 140 ui::ScaleFactor scale_factor);
141 141
142 private: 142 private:
143 DISALLOW_COPY_AND_ASSIGN(HistoryUI); 143 DISALLOW_COPY_AND_ASSIGN(HistoryUI);
144 }; 144 };
145 145
146 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ 146 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698