| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // to relay the callbacks to the plugin. | 162 // to relay the callbacks to the plugin. |
| 163 virtual void willSendRequest(WebKit::WebURLLoader* loader, | 163 virtual void willSendRequest(WebKit::WebURLLoader* loader, |
| 164 WebKit::WebURLRequest& request, | 164 WebKit::WebURLRequest& request, |
| 165 const WebKit::WebURLResponse&); | 165 const WebKit::WebURLResponse&); |
| 166 virtual void didSendData(WebKit::WebURLLoader* loader, | 166 virtual void didSendData(WebKit::WebURLLoader* loader, |
| 167 unsigned long long bytes_sent, | 167 unsigned long long bytes_sent, |
| 168 unsigned long long total_bytes_to_be_sent); | 168 unsigned long long total_bytes_to_be_sent); |
| 169 virtual void didReceiveResponse(WebKit::WebURLLoader* loader, | 169 virtual void didReceiveResponse(WebKit::WebURLLoader* loader, |
| 170 const WebKit::WebURLResponse& response); | 170 const WebKit::WebURLResponse& response); |
| 171 virtual void didReceiveData(WebKit::WebURLLoader* loader, const char *buffer, | 171 virtual void didReceiveData(WebKit::WebURLLoader* loader, const char *buffer, |
| 172 int length, long long total_length); | 172 int length); |
| 173 virtual void didFinishLoading(WebKit::WebURLLoader* loader); | 173 virtual void didFinishLoading(WebKit::WebURLLoader* loader); |
| 174 virtual void didFail(WebKit::WebURLLoader* loader, const WebKit::WebURLError&)
; | 174 virtual void didFail(WebKit::WebURLLoader* loader, const WebKit::WebURLError&)
; |
| 175 | 175 |
| 176 // Helper function to remove the stored information about a resource | 176 // Helper function to remove the stored information about a resource |
| 177 // request given its index in m_clients. | 177 // request given its index in m_clients. |
| 178 void RemoveClient(size_t i); | 178 void RemoveClient(size_t i); |
| 179 | 179 |
| 180 // Helper function to remove the stored information about a resource | 180 // Helper function to remove the stored information about a resource |
| 181 // request given a handle. | 181 // request given a handle. |
| 182 void RemoveClient(WebKit::WebURLLoader* loader); | 182 void RemoveClient(WebKit::WebURLLoader* loader); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 std::vector<std::string> arg_values_; | 274 std::vector<std::string> arg_values_; |
| 275 | 275 |
| 276 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 276 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
| 277 | 277 |
| 278 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 278 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 } // namespace webkit_glue | 281 } // namespace webkit_glue |
| 282 | 282 |
| 283 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 283 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |