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

Side by Side Diff: components/sync_driver/sync_api_component_factory.h

Issue 996473005: Revert of [Sync] Refactor AttachmentStore classes. Introduce concept of referrer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "sync/api/syncable_service.h" 10 #include "sync/api/syncable_service.h"
(...skipping 19 matching lines...) Expand all
30 // 30 //
31 // |store_birthday| is the store birthday. Must not be empty. 31 // |store_birthday| is the store birthday. Must not be empty.
32 // 32 //
33 // |model_type| is the model type this AttachmentService will be used with. 33 // |model_type| is the model type this AttachmentService will be used with.
34 // 34 //
35 // |delegate| is optional delegate for AttachmentService to notify about 35 // |delegate| is optional delegate for AttachmentService to notify about
36 // asynchronous events (AttachmentUploaded). Pass NULL if delegate is not 36 // asynchronous events (AttachmentUploaded). Pass NULL if delegate is not
37 // provided. AttachmentService doesn't take ownership of delegate, the pointer 37 // provided. AttachmentService doesn't take ownership of delegate, the pointer
38 // must be valid throughout AttachmentService lifetime. 38 // must be valid throughout AttachmentService lifetime.
39 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( 39 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
40 scoped_ptr<syncer::AttachmentStore> attachment_store, 40 const scoped_refptr<syncer::AttachmentStore>& attachment_store,
41 const syncer::UserShare& user_share, 41 const syncer::UserShare& user_share,
42 const std::string& store_birthday, 42 const std::string& store_birthday,
43 syncer::ModelType model_type, 43 syncer::ModelType model_type,
44 syncer::AttachmentService::Delegate* delegate) = 0; 44 syncer::AttachmentService::Delegate* delegate) = 0;
45 }; 45 };
46 46
47 } // namespace sync_driver 47 } // namespace sync_driver
48 48
49 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 49 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
OLDNEW
« no previous file with comments | « components/sync_driver/shared_change_processor_unittest.cc ('k') | components/sync_driver/ui_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698