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

Side by Side Diff: sync/api/syncable_service.h

Issue 10662035: [Sync] Put everything in sync/api into csync namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 8 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
« no previous file with comments | « sync/api/sync_error_unittest.cc ('k') | sync/api/syncable_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SYNC_API_SYNCABLE_SERVICE_H_ 5 #ifndef SYNC_API_SYNCABLE_SERVICE_H_
6 #define SYNC_API_SYNCABLE_SERVICE_H_ 6 #define SYNC_API_SYNCABLE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "sync/api/sync_change_processor.h" 14 #include "sync/api/sync_change_processor.h"
15 #include "sync/api/sync_data.h" 15 #include "sync/api/sync_data.h"
16 #include "sync/api/sync_error.h" 16 #include "sync/api/sync_error.h"
17 #include "sync/internal_api/public/syncable/model_type.h" 17 #include "sync/internal_api/public/syncable/model_type.h"
18 18
19 namespace csync {
20
19 class SyncErrorFactory; 21 class SyncErrorFactory;
20 22
21 typedef std::vector<SyncData> SyncDataList; 23 typedef std::vector<SyncData> SyncDataList;
22 24
23 // TODO(zea): remove SupportsWeakPtr in favor of having all SyncableService 25 // TODO(zea): remove SupportsWeakPtr in favor of having all SyncableService
24 // implementers provide a way of getting a weak pointer to themselves. 26 // implementers provide a way of getting a weak pointer to themselves.
25 // See crbug.com/100114. 27 // See crbug.com/100114.
26 class SyncableService : public SyncChangeProcessor, 28 class SyncableService : public SyncChangeProcessor,
27 public base::SupportsWeakPtr<SyncableService> { 29 public base::SupportsWeakPtr<SyncableService> {
28 public: 30 public:
(...skipping 26 matching lines...) Expand all
55 // encountered, and a filled SyncError (IsSet() == true) 57 // encountered, and a filled SyncError (IsSet() == true)
56 // otherwise. 58 // otherwise.
57 virtual SyncError ProcessSyncChanges( 59 virtual SyncError ProcessSyncChanges(
58 const tracked_objects::Location& from_here, 60 const tracked_objects::Location& from_here,
59 const SyncChangeList& change_list) OVERRIDE = 0; 61 const SyncChangeList& change_list) OVERRIDE = 0;
60 62
61 protected: 63 protected:
62 virtual ~SyncableService(); 64 virtual ~SyncableService();
63 }; 65 };
64 66
67 } // namespace csync
68
65 #endif // SYNC_API_SYNCABLE_SERVICE_H_ 69 #endif // SYNC_API_SYNCABLE_SERVICE_H_
OLDNEW
« no previous file with comments | « sync/api/sync_error_unittest.cc ('k') | sync/api/syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698