Chromium Code Reviews| 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 29 matching lines...) Expand all Loading... | |
| 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 void willFollowRedirect(blink::WebURLLoader* loader, |
| 49 blink::WebURLRequest& new_request, | 49 blink::WebURLRequest& new_request, |
| 50 const blink::WebURLResponse& redir_response) override; | 50 const blink::WebURLResponse& redir_response, |
| 51 int64_t encodedDataLength) override; | |
|
kinuko
2016/06/28 15:35:07
encoded_data_length
Adam Rice
2016/06/29 09:52:15
Fixed, thanks.
| |
| 51 void didSendData(blink::WebURLLoader* loader, | 52 void didSendData(blink::WebURLLoader* loader, |
| 52 unsigned long long bytes_sent, | 53 unsigned long long bytes_sent, |
| 53 unsigned long long total_bytes_to_be_sent) override; | 54 unsigned long long total_bytes_to_be_sent) override; |
| 54 void didReceiveResponse(blink::WebURLLoader* loader, | 55 void didReceiveResponse(blink::WebURLLoader* loader, |
| 55 const blink::WebURLResponse& response) override; | 56 const blink::WebURLResponse& response) override; |
| 56 void didDownloadData(blink::WebURLLoader* loader, | 57 void didDownloadData(blink::WebURLLoader* loader, |
| 57 int data_length, | 58 int data_length, |
| 58 int encoded_data_length) override; | 59 int encoded_data_length) override; |
| 59 void didReceiveData(blink::WebURLLoader* loader, | 60 void didReceiveData(blink::WebURLLoader* loader, |
| 60 const char* data, | 61 const char* data, |
| 61 int data_length, | 62 int data_length, |
| 62 int encoded_data_length) override; | 63 int encoded_data_length, |
| 64 int encoded_body_length) override; | |
| 63 void didFinishLoading(blink::WebURLLoader* loader, | 65 void didFinishLoading(blink::WebURLLoader* loader, |
| 64 double finish_time, | 66 double finish_time, |
| 65 int64_t total_encoded_data_length) override; | 67 int64_t total_encoded_data_length) override; |
| 66 void didFail(blink::WebURLLoader* loader, | 68 void didFail(blink::WebURLLoader* loader, |
| 67 const blink::WebURLError& error) override; | 69 const blink::WebURLError& error) override; |
| 68 | 70 |
| 69 private: | 71 private: |
| 70 // ResourceHost protected overrides. | 72 // ResourceHost protected overrides. |
| 71 void DidConnectPendingHostToResource() override; | 73 void DidConnectPendingHostToResource() override; |
| 72 | 74 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 bool pending_response_; | 153 bool pending_response_; |
| 152 | 154 |
| 153 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; | 155 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; |
| 154 | 156 |
| 155 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); | 157 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); |
| 156 }; | 158 }; |
| 157 | 159 |
| 158 } // namespace content | 160 } // namespace content |
| 159 | 161 |
| 160 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ | 162 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ |
| OLD | NEW |