| 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 #include "base/gfx/rect.h" | 5 #include "base/gfx/rect.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "net/base/escape.h" | 10 #include "net/base/escape.h" |
| 11 #include "skia/ext/platform_canvas.h" | 11 #include "skia/ext/platform_canvas.h" |
| 12 #include "webkit/api/public/WebConsoleMessage.h" | 12 #include "webkit/api/public/WebConsoleMessage.h" |
| 13 #include "webkit/api/public/WebCString.h" | 13 #include "webkit/api/public/WebCString.h" |
| 14 #include "webkit/api/public/WebCursorInfo.h" | 14 #include "webkit/api/public/WebCursorInfo.h" |
| 15 #include "webkit/api/public/WebData.h" | 15 #include "webkit/api/public/WebData.h" |
| 16 #include "webkit/api/public/WebFrame.h" | 16 #include "webkit/api/public/WebFrame.h" |
| 17 #include "webkit/api/public/WebHTTPBody.h" | 17 #include "webkit/api/public/WebHTTPBody.h" |
| 18 #include "webkit/api/public/WebHTTPHeaderVisitor.h" | 18 #include "webkit/api/public/WebHTTPHeaderVisitor.h" |
| 19 #include "webkit/api/public/WebInputEvent.h" | 19 #include "webkit/api/public/WebInputEvent.h" |
| 20 #include "webkit/api/public/WebKit.h" | 20 #include "webkit/api/public/WebKit.h" |
| 21 #include "webkit/api/public/WebKitClient.h" | 21 #include "webkit/api/public/WebKitClient.h" |
| 22 #include "webkit/api/public/WebPluginContainer.h" | 22 #include "webkit/api/public/WebPluginContainer.h" |
| 23 #include "webkit/api/public/WebPluginParams.h" | 23 #include "webkit/api/public/WebPluginParams.h" |
| 24 #include "webkit/api/public/WebRect.h" | 24 #include "webkit/api/public/WebRect.h" |
| 25 #include "webkit/api/public/WebURL.h" | 25 #include "webkit/api/public/WebURL.h" |
| 26 #include "webkit/api/public/WebURLLoader.h" | 26 #include "webkit/api/public/WebURLLoader.h" |
| 27 #include "webkit/api/public/WebURLLoaderClient.h" | 27 #include "webkit/api/public/WebURLLoaderClient.h" |
| 28 #include "webkit/api/public/WebURLResponse.h" | 28 #include "webkit/api/public/WebURLResponse.h" |
| 29 #include "webkit/api/public/WebView.h" |
| 29 #include "webkit/glue/multipart_response_delegate.h" | 30 #include "webkit/glue/multipart_response_delegate.h" |
| 30 #include "webkit/glue/webplugin_impl.h" | 31 #include "webkit/glue/webplugin_impl.h" |
| 31 #include "webkit/glue/plugins/plugin_host.h" | 32 #include "webkit/glue/plugins/plugin_host.h" |
| 32 #include "webkit/glue/plugins/plugin_instance.h" | 33 #include "webkit/glue/plugins/plugin_instance.h" |
| 33 #include "webkit/glue/webplugin_delegate.h" | 34 #include "webkit/glue/webplugin_delegate.h" |
| 34 #include "webkit/glue/webplugin_page_delegate.h" | 35 #include "webkit/glue/webplugin_page_delegate.h" |
| 35 #include "webkit/glue/webview.h" | |
| 36 #include "googleurl/src/gurl.h" | 36 #include "googleurl/src/gurl.h" |
| 37 | 37 |
| 38 using WebKit::WebCanvas; | 38 using WebKit::WebCanvas; |
| 39 using WebKit::WebConsoleMessage; | 39 using WebKit::WebConsoleMessage; |
| 40 using WebKit::WebCString; | 40 using WebKit::WebCString; |
| 41 using WebKit::WebCursorInfo; | 41 using WebKit::WebCursorInfo; |
| 42 using WebKit::WebData; | 42 using WebKit::WebData; |
| 43 using WebKit::WebDataSource; | 43 using WebKit::WebDataSource; |
| 44 using WebKit::WebFrame; | 44 using WebKit::WebFrame; |
| 45 using WebKit::WebHTTPBody; | 45 using WebKit::WebHTTPBody; |
| 46 using WebKit::WebHTTPHeaderVisitor; | 46 using WebKit::WebHTTPHeaderVisitor; |
| 47 using WebKit::WebInputEvent; | 47 using WebKit::WebInputEvent; |
| 48 using WebKit::WebKeyboardEvent; | 48 using WebKit::WebKeyboardEvent; |
| 49 using WebKit::WebMouseEvent; | 49 using WebKit::WebMouseEvent; |
| 50 using WebKit::WebPluginContainer; | 50 using WebKit::WebPluginContainer; |
| 51 using WebKit::WebPluginParams; | 51 using WebKit::WebPluginParams; |
| 52 using WebKit::WebRect; | 52 using WebKit::WebRect; |
| 53 using WebKit::WebString; | 53 using WebKit::WebString; |
| 54 using WebKit::WebURL; | 54 using WebKit::WebURL; |
| 55 using WebKit::WebURLError; | 55 using WebKit::WebURLError; |
| 56 using WebKit::WebURLLoader; | 56 using WebKit::WebURLLoader; |
| 57 using WebKit::WebURLLoaderClient; | 57 using WebKit::WebURLLoaderClient; |
| 58 using WebKit::WebURLRequest; | 58 using WebKit::WebURLRequest; |
| 59 using WebKit::WebURLResponse; | 59 using WebKit::WebURLResponse; |
| 60 using WebKit::WebVector; | 60 using WebKit::WebVector; |
| 61 using WebKit::WebView; |
| 61 using webkit_glue::MultipartResponseDelegate; | 62 using webkit_glue::MultipartResponseDelegate; |
| 62 | 63 |
| 63 namespace webkit_glue { | 64 namespace webkit_glue { |
| 64 namespace { | 65 namespace { |
| 65 | 66 |
| 66 // This class handles individual multipart responses. It is instantiated when | 67 // This class handles individual multipart responses. It is instantiated when |
| 67 // we receive HTTP status code 206 in the HTTP response. This indicates | 68 // we receive HTTP status code 206 in the HTTP response. This indicates |
| 68 // that the response could have multiple parts each separated by a boundary | 69 // that the response could have multiple parts each separated by a boundary |
| 69 // specified in the response header. | 70 // specified in the response header. |
| 70 class MultiPartResponseClient : public WebURLLoaderClient { | 71 class MultiPartResponseClient : public WebURLLoaderClient { |
| (...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 client_index = clients_.erase(client_index); | 1054 client_index = clients_.erase(client_index); |
| 1054 } | 1055 } |
| 1055 | 1056 |
| 1056 // This needs to be called now and not in the destructor since the | 1057 // This needs to be called now and not in the destructor since the |
| 1057 // webframe_ might not be valid anymore. | 1058 // webframe_ might not be valid anymore. |
| 1058 webframe_ = NULL; | 1059 webframe_ = NULL; |
| 1059 method_factory_.RevokeAll(); | 1060 method_factory_.RevokeAll(); |
| 1060 } | 1061 } |
| 1061 | 1062 |
| 1062 } // namespace webkit_glue | 1063 } // namespace webkit_glue |
| OLD | NEW |