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