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

Side by Side Diff: components/sync_sessions/sync_sessions_client.h

Issue 2753753005: [sync] WebContentsObserver based sessions notifications (Closed)
Patch Set: use base:MakeUnique, alphabetize Created 3 years, 9 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 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 COMPONENTS_SYNC_SESSIONS_SYNC_SESSIONS_CLIENT_H_ 5 #ifndef COMPONENTS_SYNC_SESSIONS_SYNC_SESSIONS_CLIENT_H_
6 #define COMPONENTS_SYNC_SESSIONS_SYNC_SESSIONS_CLIENT_H_ 6 #define COMPONENTS_SYNC_SESSIONS_SYNC_SESSIONS_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // files, and chrome internal pages. 45 // files, and chrome internal pages.
46 // TODO(zea): make this a standalone function if the url constants are 46 // TODO(zea): make this a standalone function if the url constants are
47 // componentized. 47 // componentized.
48 virtual bool ShouldSyncURL(const GURL& url) const = 0; 48 virtual bool ShouldSyncURL(const GURL& url) const = 0;
49 49
50 // Returns the SyncedWindowDelegatesGetter for this client. 50 // Returns the SyncedWindowDelegatesGetter for this client.
51 virtual SyncedWindowDelegatesGetter* GetSyncedWindowDelegatesGetter() = 0; 51 virtual SyncedWindowDelegatesGetter* GetSyncedWindowDelegatesGetter() = 0;
52 52
53 // Returns a LocalSessionEventRouter instance that is customized for the 53 // Returns a LocalSessionEventRouter instance that is customized for the
54 // embedder's context. 54 // embedder's context.
55 virtual std::unique_ptr<LocalSessionEventRouter> 55 virtual LocalSessionEventRouter* GetLocalSessionEventRouter() = 0;
56 GetLocalSessionEventRouter() = 0;
57 56
58 // TODO(zea): add getters for the history and favicon services for the favicon 57 // TODO(zea): add getters for the history and favicon services for the favicon
59 // cache to consume once it's componentized. 58 // cache to consume once it's componentized.
60 59
61 private: 60 private:
62 DISALLOW_COPY_AND_ASSIGN(SyncSessionsClient); 61 DISALLOW_COPY_AND_ASSIGN(SyncSessionsClient);
63 }; 62 };
64 63
65 } // namespace sync_sessions 64 } // namespace sync_sessions
66 65
67 #endif // COMPONENTS_SYNC_SESSIONS_SYNC_SESSIONS_CLIENT_H_ 66 #endif // COMPONENTS_SYNC_SESSIONS_SYNC_SESSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « components/sync_sessions/sessions_sync_manager_unittest.cc ('k') | components/sync_sessions/synced_session_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698