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 CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "ppapi/host/resource_host.h" | 16 #include "ppapi/host/resource_host.h" |
17 #include "ppapi/proxy/resource_message_params.h" | 17 #include "ppapi/proxy/resource_message_params.h" |
18 #include "ppapi/shared_impl/url_request_info_data.h" | 18 #include "ppapi/shared_impl/url_request_info_data.h" |
19 #include "ppapi/shared_impl/url_response_info_data.h" | 19 #include "ppapi/shared_impl/url_response_info_data.h" |
20 #include "third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h" | 20 #include "third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h" |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 class WebAssociatedURLLoader; | 23 class WebAssociatedURLLoader; |
24 class WebLocalFrame; | 24 class WebLocalFrame; |
25 class WebURLLoader; | |
26 } // namespace blink | 25 } // namespace blink |
27 | 26 |
28 namespace content { | 27 namespace content { |
29 | 28 |
30 class RendererPpapiHostImpl; | 29 class RendererPpapiHostImpl; |
31 | 30 |
32 class PepperURLLoaderHost : public ppapi::host::ResourceHost, | 31 class PepperURLLoaderHost : public ppapi::host::ResourceHost, |
33 public blink::WebAssociatedURLLoaderClient { | 32 public blink::WebAssociatedURLLoaderClient { |
34 public: | 33 public: |
35 // If main_document_loader is true, PP_Resource must be 0 since it will be | 34 // If main_document_loader is true, PP_Resource must be 0 since it will be |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool pending_response_; | 140 bool pending_response_; |
142 | 141 |
143 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; | 142 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; |
144 | 143 |
145 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); | 144 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); |
146 }; | 145 }; |
147 | 146 |
148 } // namespace content | 147 } // namespace content |
149 | 148 |
150 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ | 149 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ |
OLD | NEW |