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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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
« no previous file with comments | « chrome/browser/ui/webui/flash_ui.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.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_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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // The info value that is returned to the front end with the query results. 200 // The info value that is returned to the front end with the query results.
201 base::DictionaryValue results_info_value_; 201 base::DictionaryValue results_info_value_;
202 202
203 // The list of query results received from the history service. 203 // The list of query results received from the history service.
204 std::vector<HistoryEntry> query_results_; 204 std::vector<HistoryEntry> query_results_;
205 205
206 // The list of query results received from the history server. 206 // The list of query results received from the history server.
207 std::vector<HistoryEntry> web_history_query_results_; 207 std::vector<HistoryEntry> web_history_query_results_;
208 208
209 // Timer used to implement a timeout on a Web History response. 209 // Timer used to implement a timeout on a Web History response.
210 base::OneShotTimer<BrowsingHistoryHandler> web_history_timer_; 210 base::OneShotTimer web_history_timer_;
211 211
212 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> 212 ScopedObserver<history::HistoryService, history::HistoryServiceObserver>
213 history_service_observer_; 213 history_service_observer_;
214 214
215 base::WeakPtrFactory<BrowsingHistoryHandler> weak_factory_; 215 base::WeakPtrFactory<BrowsingHistoryHandler> weak_factory_;
216 216
217 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); 217 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler);
218 }; 218 };
219 219
220 class HistoryUI : public content::WebUIController { 220 class HistoryUI : public content::WebUIController {
221 public: 221 public:
222 explicit HistoryUI(content::WebUI* web_ui); 222 explicit HistoryUI(content::WebUI* web_ui);
223 ~HistoryUI() override; 223 ~HistoryUI() override;
224 224
225 static base::RefCountedMemory* GetFaviconResourceBytes( 225 static base::RefCountedMemory* GetFaviconResourceBytes(
226 ui::ScaleFactor scale_factor); 226 ui::ScaleFactor scale_factor);
227 227
228 private: 228 private:
229 DISALLOW_COPY_AND_ASSIGN(HistoryUI); 229 DISALLOW_COPY_AND_ASSIGN(HistoryUI);
230 }; 230 };
231 231
232 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ 232 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/flash_ui.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698