OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SYNC_SESSIONS_NOTIFICATION_SERVICE_SESSIONS_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SESSIONS_NOTIFICATION_SERVICE_SESSIONS_ROUTER_H_ |
6 #define CHROME_BROWSER_SYNC_SESSIONS_NOTIFICATION_SERVICE_SESSIONS_ROUTER_H_ | 6 #define CHROME_BROWSER_SYNC_SESSIONS_NOTIFICATION_SERVICE_SESSIONS_ROUTER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/callback_list.h" | 10 #include "base/callback_list.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // from WebContents. | 52 // from WebContents. |
53 void OnNavigationBlocked(content::WebContents* web_contents); | 53 void OnNavigationBlocked(content::WebContents* web_contents); |
54 | 54 |
55 // Called when the urls of favicon changed. | 55 // Called when the urls of favicon changed. |
56 void OnFaviconChanged(const std::set<GURL>& changed_favicons); | 56 void OnFaviconChanged(const std::set<GURL>& changed_favicons); |
57 | 57 |
58 LocalSessionEventHandler* handler_; | 58 LocalSessionEventHandler* handler_; |
59 content::NotificationRegistrar registrar_; | 59 content::NotificationRegistrar registrar_; |
60 Profile* const profile_; | 60 Profile* const profile_; |
61 syncer::SyncableService::StartSyncFlare flare_; | 61 syncer::SyncableService::StartSyncFlare flare_; |
62 base::WeakPtrFactory<NotificationServiceSessionsRouter> weak_ptr_factory_; | |
63 | 62 |
64 scoped_ptr<base::CallbackList<void(const std::set<GURL>&)>::Subscription> | 63 scoped_ptr<base::CallbackList<void(const std::set<GURL>&)>::Subscription> |
65 favicon_changed_subscription_; | 64 favicon_changed_subscription_; |
66 | 65 |
| 66 base::WeakPtrFactory<NotificationServiceSessionsRouter> weak_ptr_factory_; |
| 67 |
67 DISALLOW_COPY_AND_ASSIGN(NotificationServiceSessionsRouter); | 68 DISALLOW_COPY_AND_ASSIGN(NotificationServiceSessionsRouter); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace browser_sync | 71 } // namespace browser_sync |
71 | 72 |
72 #endif // CHROME_BROWSER_SYNC_SESSIONS_NOTIFICATION_SERVICE_SESSIONS_ROUTER_H_ | 73 #endif // CHROME_BROWSER_SYNC_SESSIONS_NOTIFICATION_SERVICE_SESSIONS_ROUTER_H_ |
OLD | NEW |