Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: chrome/browser/chromeos/file_system_provider/request_value.cc

Issue 287673004: [fsp] First part of support for reading files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/file_system_provider/request_value.h" 5 #include "chrome/browser/chromeos/file_system_provider/request_value.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace file_system_provider { 8 namespace file_system_provider {
9 9
10 RequestValue::RequestValue() { 10 RequestValue::RequestValue() {
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 scoped_ptr<RequestValue> RequestValue::CreateForReadDirectorySuccess( 32 scoped_ptr<RequestValue> RequestValue::CreateForReadDirectorySuccess(
33 scoped_ptr<extensions::api::file_system_provider_internal:: 33 scoped_ptr<extensions::api::file_system_provider_internal::
34 ReadDirectoryRequestedSuccess::Params> params) { 34 ReadDirectoryRequestedSuccess::Params> params) {
35 scoped_ptr<RequestValue> result(new RequestValue); 35 scoped_ptr<RequestValue> result(new RequestValue);
36 result->read_directory_success_params_ = params.Pass(); 36 result->read_directory_success_params_ = params.Pass();
37 return result.Pass(); 37 return result.Pass();
38 } 38 }
39 39
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();
46 }
47
40 scoped_ptr<RequestValue> RequestValue::CreateForTesting( 48 scoped_ptr<RequestValue> RequestValue::CreateForTesting(
41 const std::string& params) { 49 const std::string& params) {
42 scoped_ptr<RequestValue> result(new RequestValue); 50 scoped_ptr<RequestValue> result(new RequestValue);
43 result->testing_params_.reset(new std::string(params)); 51 result->testing_params_.reset(new std::string(params));
44 return result.Pass(); 52 return result.Pass();
45 } 53 }
46 54
47 } // namespace file_system_provider 55 } // namespace file_system_provider
48 } // namespace chromeos 56 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/request_value.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698