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/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
12 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
13 #include "base/task/cancelable_task_tracker.h" | 14 #include "base/task/cancelable_task_tracker.h" |
14 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
15 #include "base/values.h" | 16 #include "base/values.h" |
16 #include "components/history/core/browser/history_service_observer.h" | 17 #include "components/history/core/browser/history_service_observer.h" |
17 #include "components/history/core/browser/web_history_service.h" | 18 #include "components/history/core/browser/web_history_service.h" |
18 #include "content/public/browser/web_ui_controller.h" | 19 #include "content/public/browser/web_ui_controller.h" |
19 #include "content/public/browser/web_ui_message_handler.h" | 20 #include "content/public/browser/web_ui_message_handler.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 history_service_observer_; | 213 history_service_observer_; |
213 | 214 |
214 base::WeakPtrFactory<BrowsingHistoryHandler> weak_factory_; | 215 base::WeakPtrFactory<BrowsingHistoryHandler> weak_factory_; |
215 | 216 |
216 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); | 217 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryHandler); |
217 }; | 218 }; |
218 | 219 |
219 class HistoryUI : public content::WebUIController { | 220 class HistoryUI : public content::WebUIController { |
220 public: | 221 public: |
221 explicit HistoryUI(content::WebUI* web_ui); | 222 explicit HistoryUI(content::WebUI* web_ui); |
| 223 ~HistoryUI() override; |
222 | 224 |
223 static base::RefCountedMemory* GetFaviconResourceBytes( | 225 static base::RefCountedMemory* GetFaviconResourceBytes( |
224 ui::ScaleFactor scale_factor); | 226 ui::ScaleFactor scale_factor); |
225 | 227 |
226 private: | 228 private: |
227 DISALLOW_COPY_AND_ASSIGN(HistoryUI); | 229 DISALLOW_COPY_AND_ASSIGN(HistoryUI); |
228 }; | 230 }; |
229 | 231 |
230 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ | 232 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_UI_H_ |
OLD | NEW |