OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PROFILE_SYNC_FACTORY_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 ProfileSyncService* profile_sync_service, | 102 ProfileSyncService* profile_sync_service, |
103 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 103 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
104 | 104 |
105 // Instantiates both a model associator and change processor for the | 105 // Instantiates both a model associator and change processor for the |
106 // typed_url data type. The pointers in the return struct are owned | 106 // typed_url data type. The pointers in the return struct are owned |
107 // by the caller. | 107 // by the caller. |
108 virtual SyncComponents CreateTypedUrlSyncComponents( | 108 virtual SyncComponents CreateTypedUrlSyncComponents( |
109 ProfileSyncService* profile_sync_service, | 109 ProfileSyncService* profile_sync_service, |
110 history::HistoryBackend* history_backend, | 110 history::HistoryBackend* history_backend, |
111 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; | 111 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
| 112 |
| 113 // Instantiates both a model associator and change processor for the |
| 114 // session data type. The pointers in the return struct are |
| 115 // owned by the caller. |
| 116 virtual SyncComponents CreateSessionSyncComponents( |
| 117 ProfileSyncService* profile_sync_service, |
| 118 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; |
112 }; | 119 }; |
113 | 120 |
114 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ | 121 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ |
OLD | NEW |