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

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: Fix minor bug Created 7 years, 11 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const history::QueryOptions& options, 82 const history::QueryOptions& options,
83 history::WebHistoryService::Request* request, 83 history::WebHistoryService::Request* request,
84 const DictionaryValue* results_value); 84 const DictionaryValue* results_value);
85 85
86 // Callback from the history system when visits were deleted. 86 // Callback from the history system when visits were deleted.
87 void RemoveComplete(); 87 void RemoveComplete();
88 88
89 bool ExtractIntegerValueAtIndex( 89 bool ExtractIntegerValueAtIndex(
90 const base::ListValue* value, int index, int* out_int); 90 const base::ListValue* value, int index, int* out_int);
91 91
92 // Set the query options for a month-wide query. 92 // Sets the query options for a 7 day query, |offset| weeks ago.
93 void SetQueryTimeInMonths(history::QueryOptions* options); 93 void SetQueryTimeInWeeks(int offset, history::QueryOptions* options);
94 94
95 // Set the query options for a day-wide query. 95 // Sets the query options for a monthly query, |offset| months ago.
96 void SetQueryTimeInWeeks(history::QueryOptions* options); 96 void SetQueryTimeInMonths(int offset, history::QueryOptions* options);
97 97
98 content::NotificationRegistrar registrar_; 98 content::NotificationRegistrar registrar_;
99 99
100 // Consumer for search requests to the history service. 100 // Consumer for search requests to the history service.
101 CancelableRequestConsumerT<int, 0> history_request_consumer_; 101 CancelableRequestConsumerT<int, 0> history_request_consumer_;
102 102
103 // The currently-executing request for synced history results. 103 // The currently-executing request for synced history results.
104 // Deleting the request will cancel it. 104 // Deleting the request will cancel it.
105 scoped_ptr<history::WebHistoryService::Request> web_history_request_; 105 scoped_ptr<history::WebHistoryService::Request> web_history_request_;
106 106
(...skipping 23 matching lines...) Expand all
130 static const GURL GetHistoryURLWithSearchText(const string16& text); 130 static const GURL GetHistoryURLWithSearchText(const string16& text);
131 131
132 static base::RefCountedMemory* GetFaviconResourceBytes( 132 static base::RefCountedMemory* GetFaviconResourceBytes(
133 ui::ScaleFactor scale_factor); 133 ui::ScaleFactor scale_factor);
134 134
135 private: 135 private:
136 DISALLOW_COPY_AND_ASSIGN(HistoryUI); 136 DISALLOW_COPY_AND_ASSIGN(HistoryUI);
137 }; 137 };
138 138
139 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ 139 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698