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/chromeos/extensions/file_system_provider/file_system_pr
ovider_api.h" | 5 #include "chrome/browser/chromeos/extensions/file_system_provider/file_system_pr
ovider_api.h" |
6 | 6 |
| 7 #include "chrome/browser/chromeos/file_system_provider/file_system_provider_serv
ice.h" |
7 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 8 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
8 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" | 9 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" |
9 #include "chrome/browser/chromeos/file_system_provider/request_value.h" | 10 #include "chrome/browser/chromeos/file_system_provider/request_value.h" |
10 #include "chrome/browser/chromeos/file_system_provider/service.h" | |
11 #include "chrome/common/extensions/api/file_system_provider_internal.h" | 11 #include "chrome/common/extensions/api/file_system_provider_internal.h" |
12 | 12 |
13 using chromeos::file_system_provider::ProvidedFileSystemInterface; | 13 using chromeos::file_system_provider::ProvidedFileSystemInterface; |
14 using chromeos::file_system_provider::RequestManager; | 14 using chromeos::file_system_provider::RequestManager; |
15 using chromeos::file_system_provider::RequestValue; | 15 using chromeos::file_system_provider::RequestValue; |
16 using chromeos::file_system_provider::Service; | 16 using chromeos::file_system_provider::Service; |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Converts a base::File::Error into the IDL error format. | 20 // Converts a base::File::Error into the IDL error format. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 if (!file_system) { | 176 if (!file_system) { |
177 SetError(FileErrorToString(base::File::FILE_ERROR_NOT_FOUND)); | 177 SetError(FileErrorToString(base::File::FILE_ERROR_NOT_FOUND)); |
178 return false; | 178 return false; |
179 } | 179 } |
180 | 180 |
181 request_manager_ = file_system->GetRequestManager(); | 181 request_manager_ = file_system->GetRequestManager(); |
182 return true; | 182 return true; |
183 } | 183 } |
184 | 184 |
185 } // namespace extensions | 185 } // namespace extensions |
OLD | NEW |