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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // and vice versa. | 64 // and vice versa. |
65 void OnFaviconsChanged(const std::set<GURL>& page_urls, | 65 void OnFaviconsChanged(const std::set<GURL>& page_urls, |
66 const GURL& icon_url); | 66 const GURL& icon_url); |
67 | 67 |
68 LocalSessionEventHandler* handler_; | 68 LocalSessionEventHandler* handler_; |
69 content::NotificationRegistrar registrar_; | 69 content::NotificationRegistrar registrar_; |
70 Profile* const profile_; | 70 Profile* const profile_; |
71 sync_sessions::SyncSessionsClient* const sessions_client_; | 71 sync_sessions::SyncSessionsClient* const sessions_client_; |
72 syncer::SyncableService::StartSyncFlare flare_; | 72 syncer::SyncableService::StartSyncFlare flare_; |
73 | 73 |
74 scoped_ptr<base::CallbackList<void(const std::set<GURL>&, | 74 std::unique_ptr<base::CallbackList<void(const std::set<GURL>&, |
75 const GURL&)>::Subscription> | 75 const GURL&)>::Subscription> |
76 favicon_changed_subscription_; | 76 favicon_changed_subscription_; |
77 | 77 |
78 base::WeakPtrFactory<NotificationServiceSessionsRouter> weak_ptr_factory_; | 78 base::WeakPtrFactory<NotificationServiceSessionsRouter> weak_ptr_factory_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(NotificationServiceSessionsRouter); | 80 DISALLOW_COPY_AND_ASSIGN(NotificationServiceSessionsRouter); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace browser_sync | 83 } // namespace browser_sync |
84 | 84 |
85 #endif // CHROME_BROWSER_SYNC_SESSIONS_NOTIFICATION_SERVICE_SESSIONS_ROUTER_H_ | 85 #endif // CHROME_BROWSER_SYNC_SESSIONS_NOTIFICATION_SERVICE_SESSIONS_ROUTER_H_ |
OLD | NEW |