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

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

Issue 19632004: FileAPI: Add Initialize() function to FileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove const qualifier Created 7 years, 5 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 | « webkit/browser/fileapi/test_file_system_backend.h ('k') | no next file » | 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 #include "webkit/browser/fileapi/test_file_system_backend.h" 5 #include "webkit/browser/fileapi/test_file_system_backend.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 require_copy_or_move_validator_(false) { 141 require_copy_or_move_validator_(false) {
142 } 142 }
143 143
144 TestFileSystemBackend::~TestFileSystemBackend() { 144 TestFileSystemBackend::~TestFileSystemBackend() {
145 } 145 }
146 146
147 bool TestFileSystemBackend::CanHandleType(FileSystemType type) const { 147 bool TestFileSystemBackend::CanHandleType(FileSystemType type) const {
148 return (type == kFileSystemTypeTest); 148 return (type == kFileSystemTypeTest);
149 } 149 }
150 150
151 void TestFileSystemBackend::InitializeFileSystem( 151 void TestFileSystemBackend::Initialize(FileSystemContext* context) {
152 }
153
154 void TestFileSystemBackend::OpenFileSystem(
152 const GURL& origin_url, 155 const GURL& origin_url,
153 FileSystemType type, 156 FileSystemType type,
154 OpenFileSystemMode mode, 157 OpenFileSystemMode mode,
155 FileSystemContext* context, 158 const OpenFileSystemCallback& callback) {
156 const InitializeFileSystemCallback& callback) {
157 callback.Run(GetFileSystemRootURI(origin_url, type), 159 callback.Run(GetFileSystemRootURI(origin_url, type),
158 GetFileSystemName(origin_url, type), 160 GetFileSystemName(origin_url, type),
159 base::PLATFORM_FILE_OK); 161 base::PLATFORM_FILE_OK);
160 } 162 }
161 163
162 FileSystemFileUtil* TestFileSystemBackend::GetFileUtil(FileSystemType type) { 164 FileSystemFileUtil* TestFileSystemBackend::GetFileUtil(FileSystemType type) {
163 DCHECK(local_file_util_.get()); 165 DCHECK(local_file_util_.get());
164 return local_file_util_->sync_file_util(); 166 return local_file_util_->sync_file_util();
165 } 167 }
166 168
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 return quota_util_->GetUpdateObservers(type); 237 return quota_util_->GetUpdateObservers(type);
236 } 238 }
237 239
238 void TestFileSystemBackend::AddFileChangeObserver( 240 void TestFileSystemBackend::AddFileChangeObserver(
239 FileChangeObserver* observer) { 241 FileChangeObserver* observer) {
240 quota_util_->AddFileChangeObserver( 242 quota_util_->AddFileChangeObserver(
241 kFileSystemTypeTest, observer, quota_util_->task_runner()); 243 kFileSystemTypeTest, observer, quota_util_->task_runner());
242 } 244 }
243 245
244 } // namespace fileapi 246 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/test_file_system_backend.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698