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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 351523003: sync: Mass rename of non-blocking sync classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref some smart pointers Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 // Called by a component that supports non-blocking sync when it is ready to 338 // Called by a component that supports non-blocking sync when it is ready to
339 // initialize its connection to the sync backend. 339 // initialize its connection to the sync backend.
340 // 340 //
341 // If policy allows for syncing this type (ie. it is "preferred"), then this 341 // If policy allows for syncing this type (ie. it is "preferred"), then this
342 // should result in a message to enable syncing for this type when the sync 342 // should result in a message to enable syncing for this type when the sync
343 // backend is available. If the type is not to be synced, this should result 343 // backend is available. If the type is not to be synced, this should result
344 // in a message that allows the component to delete its local sync state. 344 // in a message that allows the component to delete its local sync state.
345 void InitializeNonBlockingType( 345 void InitializeNonBlockingType(
346 syncer::ModelType type, 346 syncer::ModelType type,
347 scoped_refptr<base::SequencedTaskRunner> task_runner, 347 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
348 base::WeakPtr<syncer::NonBlockingTypeProcessor> processor); 348 const base::WeakPtr<syncer::ModelTypeSyncProxyImpl>& proxy);
349 349
350 // Return the active OpenTabsUIDelegate. If sessions is not enabled or not 350 // Return the active OpenTabsUIDelegate. If sessions is not enabled or not
351 // currently syncing, returns NULL. 351 // currently syncing, returns NULL.
352 virtual browser_sync::OpenTabsUIDelegate* GetOpenTabsUIDelegate(); 352 virtual browser_sync::OpenTabsUIDelegate* GetOpenTabsUIDelegate();
353 353
354 // Returns the SyncableService for syncer::SESSIONS. 354 // Returns the SyncableService for syncer::SESSIONS.
355 virtual syncer::SyncableService* GetSessionsSyncableService(); 355 virtual syncer::SyncableService* GetSessionsSyncableService();
356 356
357 // SyncInternalApiDelegate implementation. 357 // SyncInternalApiDelegate implementation.
358 // 358 //
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 base::Callback<void(Profile*, base::Time, base::Time)> clear_browsing_data_; 1123 base::Callback<void(Profile*, base::Time, base::Time)> clear_browsing_data_;
1124 1124
1125 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1125 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1126 }; 1126 };
1127 1127
1128 bool ShouldShowActionOnUI( 1128 bool ShouldShowActionOnUI(
1129 const syncer::SyncProtocolError& error); 1129 const syncer::SyncProtocolError& error);
1130 1130
1131 1131
1132 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1132 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698