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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // WebKit::WebURLLoaderClient implementation. | 45 // WebKit::WebURLLoaderClient implementation. |
46 virtual void willSendRequest(WebKit::WebURLLoader* loader, | 46 virtual void willSendRequest(WebKit::WebURLLoader* loader, |
47 WebKit::WebURLRequest& new_request, | 47 WebKit::WebURLRequest& new_request, |
48 const WebKit::WebURLResponse& redir_response); | 48 const WebKit::WebURLResponse& redir_response); |
49 virtual void didSendData(WebKit::WebURLLoader* loader, | 49 virtual void didSendData(WebKit::WebURLLoader* loader, |
50 unsigned long long bytes_sent, | 50 unsigned long long bytes_sent, |
51 unsigned long long total_bytes_to_be_sent); | 51 unsigned long long total_bytes_to_be_sent); |
52 virtual void didReceiveResponse(WebKit::WebURLLoader* loader, | 52 virtual void didReceiveResponse(WebKit::WebURLLoader* loader, |
53 const WebKit::WebURLResponse& response); | 53 const WebKit::WebURLResponse& response); |
54 virtual void didDownloadData(WebKit::WebURLLoader* loader, | 54 virtual void didDownloadData(WebKit::WebURLLoader* loader, |
55 int data_length); | 55 int data_length, |
| 56 int encoded_data_length); |
56 virtual void didReceiveData(WebKit::WebURLLoader* loader, | 57 virtual void didReceiveData(WebKit::WebURLLoader* loader, |
57 const char* data, | 58 const char* data, |
58 int data_length, | 59 int data_length, |
59 int encoded_data_length); | 60 int encoded_data_length); |
60 virtual void didFinishLoading(WebKit::WebURLLoader* loader, | 61 virtual void didFinishLoading(WebKit::WebURLLoader* loader, |
61 double finish_time); | 62 double finish_time); |
62 virtual void didFail(WebKit::WebURLLoader* loader, | 63 virtual void didFail(WebKit::WebURLLoader* loader, |
63 const WebKit::WebURLError& error); | 64 const WebKit::WebURLError& error); |
64 | 65 |
65 private: | 66 private: |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 bool pending_response_; | 148 bool pending_response_; |
148 | 149 |
149 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; | 150 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; |
150 | 151 |
151 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); | 152 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); |
152 }; | 153 }; |
153 | 154 |
154 } // namespace content | 155 } // namespace content |
155 | 156 |
156 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ | 157 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ |
OLD | NEW |