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_NTP_MOST_VISITED_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
13 #include "components/history/core/browser/history_types.h" | 13 #include "components/history/core/browser/history_types.h" |
14 #include "components/history/core/browser/top_sites_observer.h" | 14 #include "components/history/core/browser/top_sites_observer.h" |
15 #include "content/public/browser/web_ui_message_handler.h" | 15 #include "content/public/browser/web_ui_message_handler.h" |
16 | 16 |
17 class GURL; | 17 class GURL; |
18 class PageUsageData; | |
19 | 18 |
20 namespace base { | 19 namespace base { |
21 class ListValue; | 20 class ListValue; |
22 class Value; | 21 class Value; |
23 } | 22 } |
24 | 23 |
25 namespace user_prefs { | 24 namespace user_prefs { |
26 class PrefRegistrySyncable; | 25 class PrefRegistrySyncable; |
27 } | 26 } |
28 | 27 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Whether the user has performed a "tracked" action to leave the page or not. | 111 // Whether the user has performed a "tracked" action to leave the page or not. |
113 bool user_action_logged_; | 112 bool user_action_logged_; |
114 | 113 |
115 // For callbacks which may be run after destruction. | 114 // For callbacks which may be run after destruction. |
116 base::WeakPtrFactory<MostVisitedHandler> weak_ptr_factory_; | 115 base::WeakPtrFactory<MostVisitedHandler> weak_ptr_factory_; |
117 | 116 |
118 DISALLOW_COPY_AND_ASSIGN(MostVisitedHandler); | 117 DISALLOW_COPY_AND_ASSIGN(MostVisitedHandler); |
119 }; | 118 }; |
120 | 119 |
121 #endif // CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_ | 120 #endif // CHROME_BROWSER_UI_WEBUI_NTP_MOST_VISITED_HANDLER_H_ |
OLD | NEW |