| 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> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 PP_Instance instance, | 38 PP_Instance instance, |
| 39 PP_Resource resource); | 39 PP_Resource resource); |
| 40 ~PepperURLLoaderHost() override; | 40 ~PepperURLLoaderHost() override; |
| 41 | 41 |
| 42 // ResourceHost implementation. | 42 // ResourceHost implementation. |
| 43 int32_t OnResourceMessageReceived( | 43 int32_t OnResourceMessageReceived( |
| 44 const IPC::Message& msg, | 44 const IPC::Message& msg, |
| 45 ppapi::host::HostMessageContext* context) override; | 45 ppapi::host::HostMessageContext* context) override; |
| 46 | 46 |
| 47 // blink::WebURLLoaderClient implementation. | 47 // blink::WebURLLoaderClient implementation. |
| 48 void willFollowRedirect(blink::WebURLLoader* loader, | 48 bool willFollowRedirect(blink::WebURLLoader* loader, |
| 49 blink::WebURLRequest& new_request, | 49 blink::WebURLRequest& new_request, |
| 50 const blink::WebURLResponse& redir_response, | 50 const blink::WebURLResponse& redir_response, |
| 51 int64_t encoded_data_length) override; | 51 int64_t encoded_data_length) override; |
| 52 void didSendData(blink::WebURLLoader* loader, | 52 void didSendData(blink::WebURLLoader* loader, |
| 53 unsigned long long bytes_sent, | 53 unsigned long long bytes_sent, |
| 54 unsigned long long total_bytes_to_be_sent) override; | 54 unsigned long long total_bytes_to_be_sent) override; |
| 55 void didReceiveResponse(blink::WebURLLoader* loader, | 55 void didReceiveResponse(blink::WebURLLoader* loader, |
| 56 const blink::WebURLResponse& response) override; | 56 const blink::WebURLResponse& response) override; |
| 57 void didDownloadData(blink::WebURLLoader* loader, | 57 void didDownloadData(blink::WebURLLoader* loader, |
| 58 int data_length, | 58 int data_length, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 bool pending_response_; | 153 bool pending_response_; |
| 154 | 154 |
| 155 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; | 155 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; |
| 156 | 156 |
| 157 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); | 157 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace content | 160 } // namespace content |
| 161 | 161 |
| 162 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ | 162 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ |
| OLD | NEW |