| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // WebKit::WebURLLoaderClient implementation. | 43 // WebKit::WebURLLoaderClient implementation. |
| 44 virtual void willSendRequest(WebKit::WebURLLoader* loader, | 44 virtual void willSendRequest(WebKit::WebURLLoader* loader, |
| 45 WebKit::WebURLRequest& new_request, | 45 WebKit::WebURLRequest& new_request, |
| 46 const WebKit::WebURLResponse& redir_response); | 46 const WebKit::WebURLResponse& redir_response); |
| 47 virtual void didSendData(WebKit::WebURLLoader* loader, | 47 virtual void didSendData(WebKit::WebURLLoader* loader, |
| 48 unsigned long long bytes_sent, | 48 unsigned long long bytes_sent, |
| 49 unsigned long long total_bytes_to_be_sent); | 49 unsigned long long total_bytes_to_be_sent); |
| 50 virtual void didReceiveResponse(WebKit::WebURLLoader* loader, | 50 virtual void didReceiveResponse(WebKit::WebURLLoader* loader, |
| 51 const WebKit::WebURLResponse& response); | 51 const WebKit::WebURLResponse& response); |
| 52 virtual void didDownloadData(WebKit::WebURLLoader* loader, |
| 53 int data_length); |
| 52 virtual void didReceiveData(WebKit::WebURLLoader* loader, | 54 virtual void didReceiveData(WebKit::WebURLLoader* loader, |
| 53 const char* data, | 55 const char* data, |
| 54 int data_length); | 56 int data_length); |
| 55 virtual void didFinishLoading(WebKit::WebURLLoader* loader); | 57 virtual void didFinishLoading(WebKit::WebURLLoader* loader); |
| 56 virtual void didFail(WebKit::WebURLLoader* loader, | 58 virtual void didFail(WebKit::WebURLLoader* loader, |
| 57 const WebKit::WebURLError& error); | 59 const WebKit::WebURLError& error); |
| 58 | 60 |
| 59 URLResponseInfo* response_info() const { return response_info_; } | 61 URLResponseInfo* response_info() const { return response_info_; } |
| 60 | 62 |
| 61 // Progress counters. | 63 // Progress counters. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 80 int64_t bytes_received_; | 82 int64_t bytes_received_; |
| 81 int64_t total_bytes_to_be_received_; | 83 int64_t total_bytes_to_be_received_; |
| 82 char* user_buffer_; | 84 char* user_buffer_; |
| 83 size_t user_buffer_size_; | 85 size_t user_buffer_size_; |
| 84 bool done_; | 86 bool done_; |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace pepper | 89 } // namespace pepper |
| 88 | 90 |
| 89 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ | 91 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_URL_LOADER_H_ |
| OLD | NEW |