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) override; | 50 const blink::WebURLResponse& redir_response) override; |
51 void didSendData(blink::WebURLLoader* loader, | 51 void didSendData(blink::WebURLLoader* loader, |
52 unsigned long long bytes_sent, | 52 unsigned long long bytes_sent, |
53 unsigned long long total_bytes_to_be_sent) override; | 53 unsigned long long total_bytes_to_be_sent) override; |
54 void didReceiveResponse(blink::WebURLLoader* loader, | 54 void didReceiveResponse(blink::WebURLLoader* loader, |
55 const blink::WebURLResponse& response) override; | 55 const blink::WebURLResponse& response) override; |
56 void didDownloadData(blink::WebURLLoader* loader, | 56 void didDownloadData(blink::WebURLLoader* loader, |
57 int data_length, | 57 int data_length, |
58 int encoded_data_length) override; | 58 int encoded_data_length) override; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 bool pending_response_; | 152 bool pending_response_; |
153 | 153 |
154 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; | 154 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; |
155 | 155 |
156 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); | 156 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); |
157 }; | 157 }; |
158 | 158 |
159 } // namespace content | 159 } // namespace content |
160 | 160 |
161 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ | 161 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ |
OLD | NEW |