OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 private: | 42 private: |
43 void Close(); | 43 void Close(); |
44 | 44 |
45 // WebURLLoaderClient implementation. | 45 // WebURLLoaderClient implementation. |
46 void didReceiveResponse(blink::WebURLLoader* loader, | 46 void didReceiveResponse(blink::WebURLLoader* loader, |
47 const blink::WebURLResponse& response) override; | 47 const blink::WebURLResponse& response) override; |
48 void didReceiveData(blink::WebURLLoader* loader, | 48 void didReceiveData(blink::WebURLLoader* loader, |
49 const char* data, | 49 const char* data, |
50 int data_length, | 50 int data_length, |
51 int encoded_data_length) override; | 51 int encoded_data_length, |
| 52 int encoded_body_length) override; |
52 void didFinishLoading(blink::WebURLLoader* loader, | 53 void didFinishLoading(blink::WebURLLoader* loader, |
53 double finish_time, | 54 double finish_time, |
54 int64_t total_encoded_data_length) override; | 55 int64_t total_encoded_data_length) override; |
55 void didFail(blink::WebURLLoader* loader, | 56 void didFail(blink::WebURLLoader* loader, |
56 const blink::WebURLError& error) override; | 57 const blink::WebURLError& error) override; |
57 | 58 |
58 std::unique_ptr<blink::WebURLLoader> url_loader_; | 59 std::unique_ptr<blink::WebURLLoader> url_loader_; |
59 bool is_installed_; | 60 bool is_installed_; |
60 Callback cb_; | 61 Callback cb_; |
61 std::string buffer_; | 62 std::string buffer_; |
62 int status_code_; | 63 int status_code_; |
63 PP_NaClError pp_nacl_error_; | 64 PP_NaClError pp_nacl_error_; |
64 }; | 65 }; |
65 | 66 |
66 } // namespace nacl | 67 } // namespace nacl |
OLD | NEW |