OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 GetMetadataRequestedSuccess::Params> params); | 33 GetMetadataRequestedSuccess::Params> params); |
34 | 34 |
35 static scoped_ptr<RequestValue> CreateForReadDirectorySuccess( | 35 static scoped_ptr<RequestValue> CreateForReadDirectorySuccess( |
36 scoped_ptr<extensions::api::file_system_provider_internal:: | 36 scoped_ptr<extensions::api::file_system_provider_internal:: |
37 ReadDirectoryRequestedSuccess::Params> params); | 37 ReadDirectoryRequestedSuccess::Params> params); |
38 | 38 |
39 static scoped_ptr<RequestValue> CreateForReadFileSuccess( | 39 static scoped_ptr<RequestValue> CreateForReadFileSuccess( |
40 scoped_ptr<extensions::api::file_system_provider_internal:: | 40 scoped_ptr<extensions::api::file_system_provider_internal:: |
41 ReadFileRequestedSuccess::Params> params); | 41 ReadFileRequestedSuccess::Params> params); |
42 | 42 |
| 43 static scoped_ptr<RequestValue> CreateForOperationError( |
| 44 scoped_ptr<extensions::api::file_system_provider_internal:: |
| 45 OperationRequestedError::Params> params); |
| 46 |
43 static scoped_ptr<RequestValue> CreateForTesting(const std::string& params); | 47 static scoped_ptr<RequestValue> CreateForTesting(const std::string& params); |
44 | 48 |
45 const extensions::api::file_system_provider_internal:: | 49 const extensions::api::file_system_provider_internal:: |
46 UnmountRequestedSuccess::Params* | 50 UnmountRequestedSuccess::Params* |
47 unmount_success_params() const { | 51 unmount_success_params() const { |
48 return unmount_success_params_.get(); | 52 return unmount_success_params_.get(); |
49 } | 53 } |
50 | 54 |
51 const extensions::api::file_system_provider_internal:: | 55 const extensions::api::file_system_provider_internal:: |
52 GetMetadataRequestedSuccess::Params* | 56 GetMetadataRequestedSuccess::Params* |
53 get_metadata_success_params() const { | 57 get_metadata_success_params() const { |
54 return get_metadata_success_params_.get(); | 58 return get_metadata_success_params_.get(); |
55 } | 59 } |
56 | 60 |
57 const extensions::api::file_system_provider_internal:: | 61 const extensions::api::file_system_provider_internal:: |
58 ReadDirectoryRequestedSuccess::Params* | 62 ReadDirectoryRequestedSuccess::Params* |
59 read_directory_success_params() const { | 63 read_directory_success_params() const { |
60 return read_directory_success_params_.get(); | 64 return read_directory_success_params_.get(); |
61 } | 65 } |
62 | 66 |
63 const extensions::api::file_system_provider_internal:: | 67 const extensions::api::file_system_provider_internal:: |
64 ReadFileRequestedSuccess::Params* | 68 ReadFileRequestedSuccess::Params* |
65 read_file_success_params() const { | 69 read_file_success_params() const { |
66 return read_file_success_params_.get(); | 70 return read_file_success_params_.get(); |
67 } | 71 } |
68 | 72 |
| 73 const extensions::api::file_system_provider_internal:: |
| 74 OperationRequestedError::Params* |
| 75 operation_error_params() const { |
| 76 return operation_error_params_.get(); |
| 77 } |
| 78 |
69 const std::string* testing_params() const { return testing_params_.get(); } | 79 const std::string* testing_params() const { return testing_params_.get(); } |
70 | 80 |
71 private: | 81 private: |
72 scoped_ptr<extensions::api::file_system_provider_internal:: | 82 scoped_ptr<extensions::api::file_system_provider_internal:: |
73 UnmountRequestedSuccess::Params> unmount_success_params_; | 83 UnmountRequestedSuccess::Params> unmount_success_params_; |
74 scoped_ptr<extensions::api::file_system_provider_internal:: | 84 scoped_ptr<extensions::api::file_system_provider_internal:: |
75 GetMetadataRequestedSuccess::Params> | 85 GetMetadataRequestedSuccess::Params> |
76 get_metadata_success_params_; | 86 get_metadata_success_params_; |
77 scoped_ptr<extensions::api::file_system_provider_internal:: | 87 scoped_ptr<extensions::api::file_system_provider_internal:: |
78 ReadDirectoryRequestedSuccess::Params> | 88 ReadDirectoryRequestedSuccess::Params> |
79 read_directory_success_params_; | 89 read_directory_success_params_; |
80 scoped_ptr<extensions::api::file_system_provider_internal:: | 90 scoped_ptr<extensions::api::file_system_provider_internal:: |
81 ReadFileRequestedSuccess::Params> read_file_success_params_; | 91 ReadFileRequestedSuccess::Params> read_file_success_params_; |
| 92 scoped_ptr<extensions::api::file_system_provider_internal:: |
| 93 OperationRequestedError::Params> operation_error_params_; |
82 scoped_ptr<std::string> testing_params_; | 94 scoped_ptr<std::string> testing_params_; |
83 | 95 |
84 DISALLOW_COPY_AND_ASSIGN(RequestValue); | 96 DISALLOW_COPY_AND_ASSIGN(RequestValue); |
85 }; | 97 }; |
86 | 98 |
87 } // namespace file_system_provider | 99 } // namespace file_system_provider |
88 } // namespace chromeos | 100 } // namespace chromeos |
89 | 101 |
90 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_ |
OLD | NEW |