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

Side by Side Diff: webkit/browser/fileapi/sandbox_file_system_backend.cc

Issue 452043003: [ew] Add basic classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added more tests + 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 (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 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" 5 #include "webkit/browser/fileapi/sandbox_file_system_backend.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 callback, 80 callback,
81 GetFileSystemRootURI(url.origin(), url.type())); 81 GetFileSystemRootURI(url.origin(), url.type()));
82 } 82 }
83 83
84 AsyncFileUtil* SandboxFileSystemBackend::GetAsyncFileUtil( 84 AsyncFileUtil* SandboxFileSystemBackend::GetAsyncFileUtil(
85 FileSystemType type) { 85 FileSystemType type) {
86 DCHECK(delegate_); 86 DCHECK(delegate_);
87 return delegate_->file_util(); 87 return delegate_->file_util();
88 } 88 }
89 89
90 WatcherManager* SandboxFileSystemBackend::GetWatcherManager(
91 FileSystemType type) {
92 return NULL;
93 }
94
90 CopyOrMoveFileValidatorFactory* 95 CopyOrMoveFileValidatorFactory*
91 SandboxFileSystemBackend::GetCopyOrMoveFileValidatorFactory( 96 SandboxFileSystemBackend::GetCopyOrMoveFileValidatorFactory(
92 FileSystemType type, 97 FileSystemType type,
93 base::File::Error* error_code) { 98 base::File::Error* error_code) {
94 DCHECK(error_code); 99 DCHECK(error_code);
95 *error_code = base::File::FILE_OK; 100 *error_code = base::File::FILE_OK;
96 return NULL; 101 return NULL;
97 } 102 }
98 103
99 FileSystemOperation* SandboxFileSystemBackend::CreateFileSystemOperation( 104 FileSystemOperation* SandboxFileSystemBackend::CreateFileSystemOperation(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return delegate_; 154 return delegate_;
150 } 155 }
151 156
152 SandboxFileSystemBackendDelegate::OriginEnumerator* 157 SandboxFileSystemBackendDelegate::OriginEnumerator*
153 SandboxFileSystemBackend::CreateOriginEnumerator() { 158 SandboxFileSystemBackend::CreateOriginEnumerator() {
154 DCHECK(delegate_); 159 DCHECK(delegate_);
155 return delegate_->CreateOriginEnumerator(); 160 return delegate_->CreateOriginEnumerator();
156 } 161 }
157 162
158 } // namespace fileapi 163 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698