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

Side by Side Diff: chrome/browser/sync_file_system/local/sync_file_system_backend.cc

Issue 452043003: [ew] Add basic classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 5 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
6 6
7 #include <string>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" 11 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h"
10 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" 12 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h"
11 #include "chrome/browser/sync_file_system/local/syncable_file_system_operation.h " 13 #include "chrome/browser/sync_file_system/local/syncable_file_system_operation.h "
12 #include "chrome/browser/sync_file_system/sync_file_system_service.h" 14 #include "chrome/browser/sync_file_system/sync_file_system_service.h"
13 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" 15 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h"
14 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 16 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
15 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
16 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 mode, 134 mode,
133 callback); 135 callback);
134 InitializeSyncFileSystemService(url.origin(), initialize_callback); 136 InitializeSyncFileSystemService(url.origin(), initialize_callback);
135 } 137 }
136 138
137 fileapi::AsyncFileUtil* SyncFileSystemBackend::GetAsyncFileUtil( 139 fileapi::AsyncFileUtil* SyncFileSystemBackend::GetAsyncFileUtil(
138 fileapi::FileSystemType type) { 140 fileapi::FileSystemType type) {
139 return GetDelegate()->file_util(); 141 return GetDelegate()->file_util();
140 } 142 }
141 143
144 fileapi::WatcherManager* SyncFileSystemBackend::GetWatcherManager(
145 fileapi::FileSystemType type) {
146 return NULL;
147 }
148
142 fileapi::CopyOrMoveFileValidatorFactory* 149 fileapi::CopyOrMoveFileValidatorFactory*
143 SyncFileSystemBackend::GetCopyOrMoveFileValidatorFactory( 150 SyncFileSystemBackend::GetCopyOrMoveFileValidatorFactory(
144 fileapi::FileSystemType type, 151 fileapi::FileSystemType type,
145 base::File::Error* error_code) { 152 base::File::Error* error_code) {
146 DCHECK(error_code); 153 DCHECK(error_code);
147 *error_code = base::File::FILE_OK; 154 *error_code = base::File::FILE_OK;
148 return NULL; 155 return NULL;
149 } 156 }
150 157
151 fileapi::FileSystemOperation* 158 fileapi::FileSystemOperation*
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 SyncStatusCodeToFileError(status)); 297 SyncStatusCodeToFileError(status));
291 return; 298 return;
292 } 299 }
293 300
294 callback.Run(GetSyncableFileSystemRootURI(origin_url), 301 callback.Run(GetSyncableFileSystemRootURI(origin_url),
295 GetFileSystemName(origin_url, type), 302 GetFileSystemName(origin_url, type),
296 base::File::FILE_OK); 303 base::File::FILE_OK);
297 } 304 }
298 305
299 } // namespace sync_file_system 306 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698