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

Side by Side Diff: chrome/browser/sync_file_system/sync_file_system_service.h

Issue 11149006: Extend scoped_ptr to be closer to unique_ptr. Support custom deleters, and deleting arrays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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 | « chrome/browser/autofill/personal_data_manager.h ('k') | chrome_frame/chrome_launcher_utils.h » ('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 CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // process when it detects changes in remote/local filesystem for 70 // process when it detects changes in remote/local filesystem for
71 // registered origins. 71 // registered origins.
72 // It is enabled by default but can be disabled for testing (or maybe 72 // It is enabled by default but can be disabled for testing (or maybe
73 // via an explicit API call). 73 // via an explicit API call).
74 void set_auto_sync_enabled(bool flag) { auto_sync_enabled_ = flag; } 74 void set_auto_sync_enabled(bool flag) { auto_sync_enabled_ = flag; }
75 bool auto_sync_enabled() const { return auto_sync_enabled_; } 75 bool auto_sync_enabled() const { return auto_sync_enabled_; }
76 76
77 private: 77 private:
78 friend class SyncFileSystemServiceFactory; 78 friend class SyncFileSystemServiceFactory;
79 friend class SyncFileSystemServiceTest; 79 friend class SyncFileSystemServiceTest;
80 friend class scoped_ptr<SyncFileSystemService>; 80 friend struct base::DefaultDeleter<SyncFileSystemService>;
81 81
82 explicit SyncFileSystemService(Profile* profile); 82 explicit SyncFileSystemService(Profile* profile);
83 virtual ~SyncFileSystemService(); 83 virtual ~SyncFileSystemService();
84 84
85 void Initialize(scoped_ptr<LocalFileSyncService> local_file_service, 85 void Initialize(scoped_ptr<LocalFileSyncService> local_file_service,
86 scoped_ptr<RemoteFileSyncService> remote_file_service); 86 scoped_ptr<RemoteFileSyncService> remote_file_service);
87 87
88 void DidGetConflictFileInfo(const fileapi::ConflictFileInfoCallback& callback, 88 void DidGetConflictFileInfo(const fileapi::ConflictFileInfoCallback& callback,
89 const fileapi::FileSystemURL& url, 89 const fileapi::FileSystemURL& url,
90 const fileapi::SyncFileMetadata* local_metadata, 90 const fileapi::SyncFileMetadata* local_metadata,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // ProfileKeyedServiceFactory overrides. 178 // ProfileKeyedServiceFactory overrides.
179 virtual ProfileKeyedService* BuildServiceInstanceFor( 179 virtual ProfileKeyedService* BuildServiceInstanceFor(
180 Profile* profile) const OVERRIDE; 180 Profile* profile) const OVERRIDE;
181 181
182 mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_; 182 mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_;
183 }; 183 };
184 184
185 } // namespace sync_file_system 185 } // namespace sync_file_system
186 186
187 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ 187 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager.h ('k') | chrome_frame/chrome_launcher_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698