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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/debug/trace_event.h" | |
11 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/trace_event/trace_event.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
15 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" | 15 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" |
16 #include "chrome/browser/chromeos/file_system_provider/request_value.h" | 16 #include "chrome/browser/chromeos/file_system_provider/request_value.h" |
17 #include "chrome/browser/chromeos/file_system_provider/service.h" | 17 #include "chrome/browser/chromeos/file_system_provider/service.h" |
18 #include "chrome/common/extensions/api/file_system_provider.h" | 18 #include "chrome/common/extensions/api/file_system_provider.h" |
19 #include "chrome/common/extensions/api/file_system_provider_internal.h" | 19 #include "chrome/common/extensions/api/file_system_provider_internal.h" |
20 #include "storage/browser/fileapi/watcher_manager.h" | 20 #include "storage/browser/fileapi/watcher_manager.h" |
21 | 21 |
22 using chromeos::file_system_provider::MountOptions; | 22 using chromeos::file_system_provider::MountOptions; |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 using api::file_system_provider_internal::OperationRequestedError::Params; | 338 using api::file_system_provider_internal::OperationRequestedError::Params; |
339 scoped_ptr<Params> params(Params::Create(*args_)); | 339 scoped_ptr<Params> params(Params::Create(*args_)); |
340 EXTENSION_FUNCTION_VALIDATE(params); | 340 EXTENSION_FUNCTION_VALIDATE(params); |
341 | 341 |
342 const base::File::Error error = ProviderErrorToFileError(params->error); | 342 const base::File::Error error = ProviderErrorToFileError(params->error); |
343 return RejectRequest(RequestValue::CreateForOperationError(params.Pass()), | 343 return RejectRequest(RequestValue::CreateForOperationError(params.Pass()), |
344 error); | 344 error); |
345 } | 345 } |
346 | 346 |
347 } // namespace extensions | 347 } // namespace extensions |
OLD | NEW |