| 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 WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 13 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
| 14 #include "ppapi/shared_impl/resource.h" | 14 #include "ppapi/shared_impl/resource.h" |
| 15 #include "ppapi/shared_impl/url_request_info_impl.h" | 15 #include "ppapi/shared_impl/url_request_info_impl.h" |
| 16 #include "ppapi/thunk/ppb_url_loader_api.h" | 16 #include "ppapi/thunk/ppb_url_loader_api.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h" |
| 18 #include "webkit/plugins/ppapi/callbacks.h" | 18 #include "webkit/plugins/ppapi/callbacks.h" |
| 19 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 19 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 20 | 20 |
| 21 namespace WebKit { | 21 namespace WebKit { |
| 22 class WebFrame; | |
| 23 class WebURL; | 22 class WebURL; |
| 24 } | 23 } |
| 25 | 24 |
| 26 namespace webkit { | 25 namespace webkit { |
| 27 namespace ppapi { | 26 namespace ppapi { |
| 28 | 27 |
| 29 class PPB_URLRequestInfo_Impl; | |
| 30 class PPB_URLResponseInfo_Impl; | 28 class PPB_URLResponseInfo_Impl; |
| 31 | 29 |
| 32 class PPB_URLLoader_Impl : public ::ppapi::Resource, | 30 class PPB_URLLoader_Impl : public ::ppapi::Resource, |
| 33 public ::ppapi::thunk::PPB_URLLoader_API, | 31 public ::ppapi::thunk::PPB_URLLoader_API, |
| 34 public WebKit::WebURLLoaderClient { | 32 public WebKit::WebURLLoaderClient { |
| 35 public: | 33 public: |
| 36 PPB_URLLoader_Impl(PP_Instance instance, bool main_document_loader); | 34 PPB_URLLoader_Impl(PP_Instance instance, bool main_document_loader); |
| 37 virtual ~PPB_URLLoader_Impl(); | 35 virtual ~PPB_URLLoader_Impl(); |
| 38 | 36 |
| 39 // Resource overrides. | 37 // Resource overrides. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 156 |
| 159 PP_URLLoaderTrusted_StatusCallback status_callback_; | 157 PP_URLLoaderTrusted_StatusCallback status_callback_; |
| 160 | 158 |
| 161 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); | 159 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); |
| 162 }; | 160 }; |
| 163 | 161 |
| 164 } // namespace ppapi | 162 } // namespace ppapi |
| 165 } // namespace webkit | 163 } // namespace webkit |
| 166 | 164 |
| 167 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ | 165 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ |
| OLD | NEW |