OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 PPAPI_SHARED_IMPL_URL_REQUEST_INFO_IMPL_H_ | 5 #ifndef PPAPI_SHARED_IMPL_URL_REQUEST_INFO_IMPL_H_ |
6 #define PPAPI_SHARED_IMPL_URL_REQUEST_INFO_IMPL_H_ | 6 #define PPAPI_SHARED_IMPL_URL_REQUEST_INFO_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "ppapi/shared_impl/resource.h" | 12 #include "ppapi/shared_impl/resource.h" |
13 #include "ppapi/thunk/ppb_url_request_info_api.h" | 13 #include "ppapi/thunk/ppb_url_request_info_api.h" |
14 | 14 |
15 namespace ppapi { | 15 namespace ppapi { |
16 | 16 |
17 namespace thunk { | |
18 class PPB_FileRef_API; | |
19 } | |
20 | |
21 struct PPAPI_SHARED_EXPORT PPB_URLRequestInfo_Data { | 17 struct PPAPI_SHARED_EXPORT PPB_URLRequestInfo_Data { |
22 struct PPAPI_SHARED_EXPORT BodyItem { | 18 struct PPAPI_SHARED_EXPORT BodyItem { |
23 BodyItem(); | 19 BodyItem(); |
24 explicit BodyItem(const std::string& data); | 20 explicit BodyItem(const std::string& data); |
25 BodyItem(Resource* file_ref, | 21 BodyItem(Resource* file_ref, |
26 int64_t start_offset, | 22 int64_t start_offset, |
27 int64_t number_of_bytes, | 23 int64_t number_of_bytes, |
28 PP_Time expected_last_modified_time); | 24 PP_Time expected_last_modified_time); |
29 | 25 |
30 // Set if the input is a file, false means the |data| is valid. | 26 // Set if the input is a file, false means the |data| is valid. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 127 |
132 private: | 128 private: |
133 PPB_URLRequestInfo_Data data_; | 129 PPB_URLRequestInfo_Data data_; |
134 | 130 |
135 DISALLOW_IMPLICIT_CONSTRUCTORS(URLRequestInfoImpl); | 131 DISALLOW_IMPLICIT_CONSTRUCTORS(URLRequestInfoImpl); |
136 }; | 132 }; |
137 | 133 |
138 } // namespace ppapi | 134 } // namespace ppapi |
139 | 135 |
140 #endif // PPAPI_SHARED_IMPL_URL_REQUEST_INFO_IMPL_H_ | 136 #endif // PPAPI_SHARED_IMPL_URL_REQUEST_INFO_IMPL_H_ |
OLD | NEW |