Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: chrome/browser/sync/sessions/notification_service_sessions_router.h

Issue 1882243004: Convert //chrome/browser/sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.cc ('k') | chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698