ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chrome / browser / chromeos / file_system_provider / request_value.cc
blob6cb77d4d97314c2b665fdfdc4c877423862efede
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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/file_system_provider/request_value.h"
7 namespace chromeos {
8 namespace file_system_provider {
10 RequestValue::RequestValue() {
13 RequestValue::~RequestValue() {
16 scoped_ptr<RequestValue> RequestValue::CreateForUnmountSuccess(
17 scoped_ptr<extensions::api::file_system_provider_internal::
18 UnmountRequestedSuccess::Params> params) {
19 scoped_ptr<RequestValue> result(new RequestValue);
20 result->unmount_success_params_ = params.Pass();
21 return result.Pass();
24 scoped_ptr<RequestValue> RequestValue::CreateForGetMetadataSuccess(
25 scoped_ptr<extensions::api::file_system_provider_internal::
26 GetMetadataRequestedSuccess::Params> params) {
27 scoped_ptr<RequestValue> result(new RequestValue);
28 result->get_metadata_success_params_ = params.Pass();
29 return result.Pass();
32 scoped_ptr<RequestValue> RequestValue::CreateForReadDirectorySuccess(
33 scoped_ptr<extensions::api::file_system_provider_internal::
34 ReadDirectoryRequestedSuccess::Params> params) {
35 scoped_ptr<RequestValue> result(new RequestValue);
36 result->read_directory_success_params_ = params.Pass();
37 return result.Pass();
40 scoped_ptr<RequestValue> RequestValue::CreateForReadFileSuccess(
41 scoped_ptr<extensions::api::file_system_provider_internal::
42 ReadFileRequestedSuccess::Params> params) {
43 scoped_ptr<RequestValue> result(new RequestValue);
44 result->read_file_success_params_ = params.Pass();
45 return result.Pass();
48 scoped_ptr<RequestValue> RequestValue::CreateForOperationSuccess(
49 scoped_ptr<extensions::api::file_system_provider_internal::
50 OperationRequestedSuccess::Params> params) {
51 scoped_ptr<RequestValue> result(new RequestValue);
52 result->operation_success_params_ = params.Pass();
53 return result.Pass();
56 scoped_ptr<RequestValue> RequestValue::CreateForOperationError(
57 scoped_ptr<extensions::api::file_system_provider_internal::
58 OperationRequestedError::Params> params) {
59 scoped_ptr<RequestValue> result(new RequestValue);
60 result->operation_error_params_ = params.Pass();
61 return result.Pass();
64 scoped_ptr<RequestValue> RequestValue::CreateForTesting(
65 const std::string& params) {
66 scoped_ptr<RequestValue> result(new RequestValue);
67 result->testing_params_.reset(new std::string(params));
68 return result.Pass();
71 } // namespace file_system_provider
72 } // namespace chromeos