OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |