| 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 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 Loading... |
| 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_ |
| OLD | NEW |