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

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

Issue 2887513002: [sync] Scope BrowserListRouterHelper to browsers with a matching profile (Closed)
Patch Set: Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_H_ 5 #ifndef CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_H_
6 #define CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_H_ 6 #define CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_H_
7 7
8 #include "base/callback_list.h" 8 #include "base/callback_list.h"
9 9
10 // Android has no BrowserList or TabStripModel, so we exclude code that refers 10 // Android has no BrowserList or TabStripModel, so we exclude code that refers
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 private: 55 private:
56 void OnFaviconsChanged(const std::set<GURL>& page_urls, const GURL& icon_url); 56 void OnFaviconsChanged(const std::set<GURL>& page_urls, const GURL& icon_url);
57 57
58 std::unique_ptr<base::CallbackList<void(const std::set<GURL>&, 58 std::unique_ptr<base::CallbackList<void(const std::set<GURL>&,
59 const GURL&)>::Subscription> 59 const GURL&)>::Subscription>
60 favicon_changed_subscription_; 60 favicon_changed_subscription_;
61 syncer::SyncableService::StartSyncFlare flare_; 61 syncer::SyncableService::StartSyncFlare flare_;
62 LocalSessionEventHandler* handler_ = nullptr; 62 LocalSessionEventHandler* handler_ = nullptr;
63 63
64 #if !defined(OS_ANDROID) 64 #if !defined(OS_ANDROID)
65 friend class BrowserListRouterHelperTest;
skym 2017/05/15 20:58:01 I'd prefer to not use friending for tests, when po
Patrick Noland 2017/05/15 21:56:51 Done.
65 std::unique_ptr<BrowserListRouterHelper> browser_list_helper_; 66 std::unique_ptr<BrowserListRouterHelper> browser_list_helper_;
66 #endif // !defined(OS_ANDROID) 67 #endif // !defined(OS_ANDROID)
67 68
68 DISALLOW_COPY_AND_ASSIGN(SyncSessionsWebContentsRouter); 69 DISALLOW_COPY_AND_ASSIGN(SyncSessionsWebContentsRouter);
69 }; 70 };
70 71
71 } // namespace sync_sessions 72 } // namespace sync_sessions
72 73
73 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_H_ 74 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSIONS_WEB_CONTENTS_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698