OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/linked_ptr.h" | |
13 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
14 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
15 #include "base/values.h" | 14 #include "base/values.h" |
16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
17 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
18 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" | 17 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" |
19 #include "chrome/browser/chromeos/file_system_provider/request_value.h" | 18 #include "chrome/browser/chromeos/file_system_provider/request_value.h" |
20 #include "chrome/browser/chromeos/file_system_provider/service.h" | 19 #include "chrome/browser/chromeos/file_system_provider/service.h" |
21 #include "chrome/common/extensions/api/file_system_provider.h" | 20 #include "chrome/common/extensions/api/file_system_provider.h" |
22 #include "chrome/common/extensions/api/file_system_provider_internal.h" | 21 #include "chrome/common/extensions/api/file_system_provider_internal.h" |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 using api::file_system_provider_internal::OperationRequestedError::Params; | 347 using api::file_system_provider_internal::OperationRequestedError::Params; |
349 std::unique_ptr<Params> params(Params::Create(*args_)); | 348 std::unique_ptr<Params> params(Params::Create(*args_)); |
350 EXTENSION_FUNCTION_VALIDATE(params); | 349 EXTENSION_FUNCTION_VALIDATE(params); |
351 | 350 |
352 const base::File::Error error = ProviderErrorToFileError(params->error); | 351 const base::File::Error error = ProviderErrorToFileError(params->error); |
353 return RejectRequest(RequestValue::CreateForOperationError(std::move(params)), | 352 return RejectRequest(RequestValue::CreateForOperationError(std::move(params)), |
354 error); | 353 error); |
355 } | 354 } |
356 | 355 |
357 } // namespace extensions | 356 } // namespace extensions |
OLD | NEW |