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

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

Issue 1151763007: Add the boilerplate for actions to File System Provider API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 6 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
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 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 virtual ~RequestValue(); 25 virtual ~RequestValue();
26 26
27 static scoped_ptr<RequestValue> CreateForUnmountSuccess( 27 static scoped_ptr<RequestValue> CreateForUnmountSuccess(
28 scoped_ptr<extensions::api::file_system_provider_internal:: 28 scoped_ptr<extensions::api::file_system_provider_internal::
29 UnmountRequestedSuccess::Params> params); 29 UnmountRequestedSuccess::Params> params);
30 30
31 static scoped_ptr<RequestValue> CreateForGetMetadataSuccess( 31 static scoped_ptr<RequestValue> CreateForGetMetadataSuccess(
32 scoped_ptr<extensions::api::file_system_provider_internal:: 32 scoped_ptr<extensions::api::file_system_provider_internal::
33 GetMetadataRequestedSuccess::Params> params); 33 GetMetadataRequestedSuccess::Params> params);
34 34
35 static scoped_ptr<RequestValue> CreateForGetActionsSuccess(
36 scoped_ptr<extensions::api::file_system_provider_internal::
37 GetActionsRequestedSuccess::Params> params);
38
35 static scoped_ptr<RequestValue> CreateForReadDirectorySuccess( 39 static scoped_ptr<RequestValue> CreateForReadDirectorySuccess(
36 scoped_ptr<extensions::api::file_system_provider_internal:: 40 scoped_ptr<extensions::api::file_system_provider_internal::
37 ReadDirectoryRequestedSuccess::Params> params); 41 ReadDirectoryRequestedSuccess::Params> params);
38 42
39 static scoped_ptr<RequestValue> CreateForReadFileSuccess( 43 static scoped_ptr<RequestValue> CreateForReadFileSuccess(
40 scoped_ptr<extensions::api::file_system_provider_internal:: 44 scoped_ptr<extensions::api::file_system_provider_internal::
41 ReadFileRequestedSuccess::Params> params); 45 ReadFileRequestedSuccess::Params> params);
42 46
43 static scoped_ptr<RequestValue> CreateForOperationSuccess( 47 static scoped_ptr<RequestValue> CreateForOperationSuccess(
44 scoped_ptr<extensions::api::file_system_provider_internal:: 48 scoped_ptr<extensions::api::file_system_provider_internal::
(...skipping 11 matching lines...) Expand all
56 return unmount_success_params_.get(); 60 return unmount_success_params_.get();
57 } 61 }
58 62
59 const extensions::api::file_system_provider_internal:: 63 const extensions::api::file_system_provider_internal::
60 GetMetadataRequestedSuccess::Params* 64 GetMetadataRequestedSuccess::Params*
61 get_metadata_success_params() const { 65 get_metadata_success_params() const {
62 return get_metadata_success_params_.get(); 66 return get_metadata_success_params_.get();
63 } 67 }
64 68
65 const extensions::api::file_system_provider_internal:: 69 const extensions::api::file_system_provider_internal::
70 GetActionsRequestedSuccess::Params*
71 get_actions_success_params() const {
72 return get_actions_success_params_.get();
73 }
74
75 const extensions::api::file_system_provider_internal::
66 ReadDirectoryRequestedSuccess::Params* 76 ReadDirectoryRequestedSuccess::Params*
67 read_directory_success_params() const { 77 read_directory_success_params() const {
68 return read_directory_success_params_.get(); 78 return read_directory_success_params_.get();
69 } 79 }
70 80
71 const extensions::api::file_system_provider_internal:: 81 const extensions::api::file_system_provider_internal::
72 ReadFileRequestedSuccess::Params* 82 ReadFileRequestedSuccess::Params*
73 read_file_success_params() const { 83 read_file_success_params() const {
74 return read_file_success_params_.get(); 84 return read_file_success_params_.get();
75 } 85 }
(...skipping 12 matching lines...) Expand all
88 98
89 const std::string* testing_params() const { return testing_params_.get(); } 99 const std::string* testing_params() const { return testing_params_.get(); }
90 100
91 private: 101 private:
92 scoped_ptr<extensions::api::file_system_provider_internal:: 102 scoped_ptr<extensions::api::file_system_provider_internal::
93 UnmountRequestedSuccess::Params> unmount_success_params_; 103 UnmountRequestedSuccess::Params> unmount_success_params_;
94 scoped_ptr<extensions::api::file_system_provider_internal:: 104 scoped_ptr<extensions::api::file_system_provider_internal::
95 GetMetadataRequestedSuccess::Params> 105 GetMetadataRequestedSuccess::Params>
96 get_metadata_success_params_; 106 get_metadata_success_params_;
97 scoped_ptr<extensions::api::file_system_provider_internal:: 107 scoped_ptr<extensions::api::file_system_provider_internal::
108 GetActionsRequestedSuccess::Params>
109 get_actions_success_params_;
110 scoped_ptr<extensions::api::file_system_provider_internal::
98 ReadDirectoryRequestedSuccess::Params> 111 ReadDirectoryRequestedSuccess::Params>
99 read_directory_success_params_; 112 read_directory_success_params_;
100 scoped_ptr<extensions::api::file_system_provider_internal:: 113 scoped_ptr<extensions::api::file_system_provider_internal::
101 ReadFileRequestedSuccess::Params> read_file_success_params_; 114 ReadFileRequestedSuccess::Params> read_file_success_params_;
102 scoped_ptr<extensions::api::file_system_provider_internal:: 115 scoped_ptr<extensions::api::file_system_provider_internal::
103 OperationRequestedSuccess::Params> operation_success_params_; 116 OperationRequestedSuccess::Params> operation_success_params_;
104 scoped_ptr<extensions::api::file_system_provider_internal:: 117 scoped_ptr<extensions::api::file_system_provider_internal::
105 OperationRequestedError::Params> operation_error_params_; 118 OperationRequestedError::Params> operation_error_params_;
106 scoped_ptr<std::string> testing_params_; 119 scoped_ptr<std::string> testing_params_;
107 120
108 DISALLOW_COPY_AND_ASSIGN(RequestValue); 121 DISALLOW_COPY_AND_ASSIGN(RequestValue);
109 }; 122 };
110 123
111 } // namespace file_system_provider 124 } // namespace file_system_provider
112 } // namespace chromeos 125 } // namespace chromeos
113 126
114 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_ 127 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698