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_mount_point_provider.h" | 5 #include "webkit/browser/fileapi/test_mount_point_provider.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 TestMountPointProvider::TestMountPointProvider( | 74 TestMountPointProvider::TestMountPointProvider( |
75 base::SequencedTaskRunner* task_runner, | 75 base::SequencedTaskRunner* task_runner, |
76 const base::FilePath& base_path) | 76 const base::FilePath& base_path) |
77 : base_path_(base_path), | 77 : base_path_(base_path), |
78 task_runner_(task_runner), | 78 task_runner_(task_runner), |
79 local_file_util_(new AsyncFileUtilAdapter(new LocalFileUtil())), | 79 local_file_util_(new AsyncFileUtilAdapter(new LocalFileUtil())), |
80 quota_util_(new QuotaUtil), | 80 quota_util_(new QuotaUtil), |
81 require_copy_or_move_validator_(false) { | 81 require_copy_or_move_validator_(false) { |
82 UpdateObserverList::Source source; | 82 UpdateObserverList::Source source; |
83 source.AddObserver(quota_util_.get(), task_runner_); | 83 source.AddObserver(quota_util_.get(), task_runner_.get()); |
84 observers_ = UpdateObserverList(source); | 84 observers_ = UpdateObserverList(source); |
85 } | 85 } |
86 | 86 |
87 TestMountPointProvider::~TestMountPointProvider() { | 87 TestMountPointProvider::~TestMountPointProvider() { |
88 } | 88 } |
89 | 89 |
90 bool TestMountPointProvider::CanHandleType(FileSystemType type) const { | 90 bool TestMountPointProvider::CanHandleType(FileSystemType type) const { |
91 return (type == kFileSystemTypeTest); | 91 return (type == kFileSystemTypeTest); |
92 } | 92 } |
93 | 93 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 NOTREACHED(); | 181 NOTREACHED(); |
182 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); | 182 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); |
183 } | 183 } |
184 | 184 |
185 const UpdateObserverList* TestMountPointProvider::GetUpdateObservers( | 185 const UpdateObserverList* TestMountPointProvider::GetUpdateObservers( |
186 FileSystemType type) const { | 186 FileSystemType type) const { |
187 return &observers_; | 187 return &observers_; |
188 } | 188 } |
189 | 189 |
190 } // namespace fileapi | 190 } // namespace fileapi |
OLD | NEW |