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"
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();
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();
32 scoped_ptr
<RequestValue
> RequestValue::CreateForTesting(
33 const std::string
& params
) {
34 scoped_ptr
<RequestValue
> result(new RequestValue
);
35 result
->testing_params_
.reset(new std::string(params
));
39 } // namespace file_system_provider
40 } // namespace chromeos