OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PROXY_URL_LOADER_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_URL_LOADER_RESOURCE_H_ |
6 #define PPAPI_PROXY_URL_LOADER_RESOURCE_H_ | 6 #define PPAPI_PROXY_URL_LOADER_RESOURCE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <deque> | 11 #include <deque> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 15 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
16 #include "ppapi/proxy/plugin_resource.h" | 16 #include "ppapi/proxy/plugin_resource.h" |
17 #include "ppapi/proxy/ppapi_proxy_export.h" | 17 #include "ppapi/proxy/ppapi_proxy_export.h" |
18 #include "ppapi/shared_impl/url_request_info_data.h" | 18 #include "ppapi/shared_impl/url_request_info_data.h" |
19 #include "ppapi/thunk/ppb_url_loader_api.h" | 19 #include "ppapi/thunk/ppb_url_loader_api.h" |
20 | 20 |
21 namespace ppapi { | 21 namespace ppapi { |
| 22 |
| 23 struct URLResponseInfoData; |
| 24 |
22 namespace proxy { | 25 namespace proxy { |
23 | 26 |
24 class URLResponseInfoResource; | 27 class URLResponseInfoResource; |
25 | 28 |
26 class PPAPI_PROXY_EXPORT URLLoaderResource | 29 class PPAPI_PROXY_EXPORT URLLoaderResource |
27 : public PluginResource, | 30 : public PluginResource, |
28 public NON_EXPORTED_BASE(thunk::PPB_URLLoader_API) { | 31 public NON_EXPORTED_BASE(thunk::PPB_URLLoader_API) { |
29 public: | 32 public: |
30 // Constructor for plugin-initiated loads. | 33 // Constructor for plugin-initiated loads. |
31 URLLoaderResource(Connection connection, | 34 URLLoaderResource(Connection connection, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // The response info if we've received it. | 142 // The response info if we've received it. |
140 scoped_refptr<URLResponseInfoResource> response_info_; | 143 scoped_refptr<URLResponseInfoResource> response_info_; |
141 | 144 |
142 DISALLOW_COPY_AND_ASSIGN(URLLoaderResource); | 145 DISALLOW_COPY_AND_ASSIGN(URLLoaderResource); |
143 }; | 146 }; |
144 | 147 |
145 } // namespace proxy | 148 } // namespace proxy |
146 } // namespace ppapi | 149 } // namespace ppapi |
147 | 150 |
148 #endif // PPAPI_PROXY_URL_LOADER_RESOURCE_H_ | 151 #endif // PPAPI_PROXY_URL_LOADER_RESOURCE_H_ |
OLD | NEW |