| 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 #include "chrome/renderer/plugins/webview_plugin.h" | 5 #include "chrome/renderer/plugins/webview_plugin.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "skia/ext/platform_canvas.h" | 9 #include "skia/ext/platform_canvas.h" |
| 10 #include "third_party/WebKit/public/platform/WebSize.h" | 10 #include "third_party/WebKit/public/platform/WebSize.h" |
| 11 #include "third_party/WebKit/public/platform/WebURL.h" | 11 #include "third_party/WebKit/public/platform/WebURL.h" |
| 12 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 12 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 13 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 13 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 21 #include "webkit/glue/webpreferences.h" | 21 #include "webkit/common/webpreferences.h" |
| 22 #include "webkit/renderer/webpreferences_renderer.h" |
| 22 | 23 |
| 23 using WebKit::WebCanvas; | 24 using WebKit::WebCanvas; |
| 24 using WebKit::WebCursorInfo; | 25 using WebKit::WebCursorInfo; |
| 25 using WebKit::WebDragData; | 26 using WebKit::WebDragData; |
| 26 using WebKit::WebDragOperationsMask; | 27 using WebKit::WebDragOperationsMask; |
| 27 using WebKit::WebFrame; | 28 using WebKit::WebFrame; |
| 28 using WebKit::WebImage; | 29 using WebKit::WebImage; |
| 29 using WebKit::WebInputEvent; | 30 using WebKit::WebInputEvent; |
| 30 using WebKit::WebMouseEvent; | 31 using WebKit::WebMouseEvent; |
| 31 using WebKit::WebPlugin; | 32 using WebKit::WebPlugin; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 error.reason = -1; | 241 error.reason = -1; |
| 241 error.unreachableURL = request.url(); | 242 error.unreachableURL = request.url(); |
| 242 return error; | 243 return error; |
| 243 } | 244 } |
| 244 | 245 |
| 245 void WebViewPlugin::didReceiveResponse(WebFrame* frame, | 246 void WebViewPlugin::didReceiveResponse(WebFrame* frame, |
| 246 unsigned identifier, | 247 unsigned identifier, |
| 247 const WebURLResponse& response) { | 248 const WebURLResponse& response) { |
| 248 WebFrameClient::didReceiveResponse(frame, identifier, response); | 249 WebFrameClient::didReceiveResponse(frame, identifier, response); |
| 249 } | 250 } |
| OLD | NEW |