OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/local_discovery/storage/privet_filesystem_backend.h" | 5 #include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "chrome/browser/local_discovery/storage/privet_filesystem_async_util.h" | 9 #include "chrome/browser/local_discovery/storage/privet_filesystem_async_util.h" |
10 #include "chrome/browser/local_discovery/storage/privet_filesystem_constants.h" | 10 #include "chrome/browser/local_discovery/storage/privet_filesystem_constants.h" |
11 #include "webkit/browser/fileapi/file_system_operation.h" | 11 #include "webkit/browser/fileapi/file_system_operation.h" |
12 | 12 |
13 namespace local_discovery { | 13 namespace local_discovery { |
14 | 14 |
15 PrivetFileSystemBackend::PrivetFileSystemBackend( | 15 PrivetFileSystemBackend::PrivetFileSystemBackend( |
16 fileapi::ExternalMountPoints* mount_points) | 16 fileapi::ExternalMountPoints* mount_points, |
| 17 content::BrowserContext* browser_context) |
17 : mount_points_(mount_points), | 18 : mount_points_(mount_points), |
18 async_util_(new PrivetFileSystemAsyncUtil()) { | 19 async_util_(new PrivetFileSystemAsyncUtil(browser_context)) { |
19 } | 20 } |
20 | 21 |
21 PrivetFileSystemBackend::~PrivetFileSystemBackend() { | 22 PrivetFileSystemBackend::~PrivetFileSystemBackend() { |
22 } | 23 } |
23 | 24 |
24 bool PrivetFileSystemBackend::CanHandleType( | 25 bool PrivetFileSystemBackend::CanHandleType( |
25 fileapi::FileSystemType type) const { | 26 fileapi::FileSystemType type) const { |
26 return (type == fileapi::kFileSystemTypeCloudDevice); | 27 return (type == fileapi::kFileSystemTypeCloudDevice); |
27 } | 28 } |
28 | 29 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 85 |
85 scoped_ptr<fileapi::FileStreamWriter> | 86 scoped_ptr<fileapi::FileStreamWriter> |
86 PrivetFileSystemBackend::CreateFileStreamWriter( | 87 PrivetFileSystemBackend::CreateFileStreamWriter( |
87 const fileapi::FileSystemURL& url, | 88 const fileapi::FileSystemURL& url, |
88 int64 offset, | 89 int64 offset, |
89 fileapi::FileSystemContext* context) const { | 90 fileapi::FileSystemContext* context) const { |
90 return scoped_ptr<fileapi::FileStreamWriter>(); | 91 return scoped_ptr<fileapi::FileStreamWriter>(); |
91 } | 92 } |
92 | 93 |
93 } // namespace local_discovery | 94 } // namespace local_discovery |
OLD | NEW |