| OLD | NEW |
| 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 Loading... |
| 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::Initialize( |
| 152 const fileapi::FileSystemContext* context) { |
| 153 } |
| 154 |
| 151 void TestFileSystemBackend::InitializeFileSystem( | 155 void TestFileSystemBackend::InitializeFileSystem( |
| 152 const GURL& origin_url, | 156 const GURL& origin_url, |
| 153 FileSystemType type, | 157 FileSystemType type, |
| 154 OpenFileSystemMode mode, | 158 OpenFileSystemMode mode, |
| 155 FileSystemContext* context, | 159 FileSystemContext* context, |
| 156 const InitializeFileSystemCallback& callback) { | 160 const InitializeFileSystemCallback& callback) { |
| 157 callback.Run(GetFileSystemRootURI(origin_url, type), | 161 callback.Run(GetFileSystemRootURI(origin_url, type), |
| 158 GetFileSystemName(origin_url, type), | 162 GetFileSystemName(origin_url, type), |
| 159 base::PLATFORM_FILE_OK); | 163 base::PLATFORM_FILE_OK); |
| 160 } | 164 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 return quota_util_->GetUpdateObservers(type); | 238 return quota_util_->GetUpdateObservers(type); |
| 235 } | 239 } |
| 236 | 240 |
| 237 void TestFileSystemBackend::AddFileChangeObserver( | 241 void TestFileSystemBackend::AddFileChangeObserver( |
| 238 FileChangeObserver* observer) { | 242 FileChangeObserver* observer) { |
| 239 quota_util_->AddFileChangeObserver( | 243 quota_util_->AddFileChangeObserver( |
| 240 kFileSystemTypeTest, observer, quota_util_->task_runner()); | 244 kFileSystemTypeTest, observer, quota_util_->task_runner()); |
| 241 } | 245 } |
| 242 | 246 |
| 243 } // namespace fileapi | 247 } // namespace fileapi |
| OLD | NEW |