OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/plugins/renderer/webview_plugin.h" | 5 #include "components/plugins/renderer/webview_plugin.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
10 #include "content/public/common/web_preferences.h" | 10 #include "content/public/common/web_preferences.h" |
11 #include "content/public/renderer/render_view.h" | 11 #include "content/public/renderer/render_view.h" |
12 #include "gin/converter.h" | 12 #include "gin/converter.h" |
13 #include "skia/ext/platform_canvas.h" | 13 #include "skia/ext/platform_canvas.h" |
14 #include "third_party/WebKit/public/platform/WebSize.h" | 14 #include "third_party/WebKit/public/platform/WebSize.h" |
15 #include "third_party/WebKit/public/platform/WebURL.h" | 15 #include "third_party/WebKit/public/platform/WebURL.h" |
16 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 16 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
17 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 17 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
18 #include "third_party/WebKit/public/web/WebDocument.h" | 18 #include "third_party/WebKit/public/web/WebDocument.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 279 |
280 global->Set(gin::StringToV8(isolate, "plugin"), | 280 global->Set(gin::StringToV8(isolate, "plugin"), |
281 delegate_->GetV8Handle(isolate)); | 281 delegate_->GetV8Handle(isolate)); |
282 } | 282 } |
283 | 283 |
284 void WebViewPlugin::didReceiveResponse(WebLocalFrame* frame, | 284 void WebViewPlugin::didReceiveResponse(WebLocalFrame* frame, |
285 unsigned identifier, | 285 unsigned identifier, |
286 const WebURLResponse& response) { | 286 const WebURLResponse& response) { |
287 WebFrameClient::didReceiveResponse(frame, identifier, response); | 287 WebFrameClient::didReceiveResponse(frame, identifier, response); |
288 } | 288 } |
OLD | NEW |