OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_SYNC_SESSIONS_IOS_CHROME_LOCAL_EVENT_SESSION_ROUTER_H
_ | 5 #ifndef IOS_CHROME_BROWSER_SYNC_SESSIONS_IOS_CHROME_LOCAL_EVENT_SESSION_ROUTER_H
_ |
6 #define IOS_CHROME_BROWSER_SYNC_SESSIONS_IOS_CHROME_LOCAL_EVENT_SESSION_ROUTER_H
_ | 6 #define IOS_CHROME_BROWSER_SYNC_SESSIONS_IOS_CHROME_LOCAL_EVENT_SESSION_ROUTER_H
_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <set> | 11 #include <set> |
11 | 12 |
12 #include "base/callback_list.h" | 13 #include "base/callback_list.h" |
13 #include "base/macros.h" | 14 #include "base/macros.h" |
14 #include "components/sync_sessions/local_session_event_router.h" | 15 #include "components/sync_sessions/local_session_event_router.h" |
15 #include "ios/web/public/web_state/global_web_state_observer.h" | 16 #include "ios/web/public/web_state/global_web_state_observer.h" |
16 #include "sync/api/syncable_service.h" | 17 #include "sync/api/syncable_service.h" |
17 | 18 |
18 class GURL; | 19 class GURL; |
19 | 20 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // http://www.google.com/favicon.ico) have changed. It is valid to call | 66 // http://www.google.com/favicon.ico) have changed. It is valid to call |
66 // OnFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| | 67 // OnFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| |
67 // and vice versa. | 68 // and vice versa. |
68 void OnFaviconsChanged(const std::set<GURL>& page_urls, const GURL& icon_url); | 69 void OnFaviconsChanged(const std::set<GURL>& page_urls, const GURL& icon_url); |
69 | 70 |
70 browser_sync::LocalSessionEventHandler* handler_; | 71 browser_sync::LocalSessionEventHandler* handler_; |
71 ios::ChromeBrowserState* const browser_state_; | 72 ios::ChromeBrowserState* const browser_state_; |
72 sync_sessions::SyncSessionsClient* const sessions_client_; | 73 sync_sessions::SyncSessionsClient* const sessions_client_; |
73 syncer::SyncableService::StartSyncFlare flare_; | 74 syncer::SyncableService::StartSyncFlare flare_; |
74 | 75 |
75 scoped_ptr<base::CallbackList<void(const std::set<GURL>&, | 76 std::unique_ptr<base::CallbackList<void(const std::set<GURL>&, |
76 const GURL&)>::Subscription> | 77 const GURL&)>::Subscription> |
77 favicon_changed_subscription_; | 78 favicon_changed_subscription_; |
78 | 79 |
79 scoped_ptr<base::CallbackList<void(web::WebState*)>::Subscription> | 80 std::unique_ptr<base::CallbackList<void(web::WebState*)>::Subscription> |
80 tab_parented_subscription_; | 81 tab_parented_subscription_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(IOSChromeLocalSessionEventRouter); | 83 DISALLOW_COPY_AND_ASSIGN(IOSChromeLocalSessionEventRouter); |
83 }; | 84 }; |
84 | 85 |
85 #endif // IOS_CHROME_BROWSER_SYNC_SESSIONS_IOS_CHROME_LOCAL_EVENT_SESSION_ROUTE
R_H_ | 86 #endif // IOS_CHROME_BROWSER_SYNC_SESSIONS_IOS_CHROME_LOCAL_EVENT_SESSION_ROUTE
R_H_ |
OLD | NEW |