| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/npapi/webplugin_impl.h" | 5 #include "content/renderer/npapi/webplugin_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/crash_logging.h" | 8 #include "base/debug/crash_logging.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "cc/layers/io_surface_layer.h" | 15 #include "cc/layers/io_surface_layer.h" |
| 16 #include "content/child/npapi/plugin_host.h" | 16 #include "content/child/npapi/plugin_host.h" |
| 17 #include "content/child/npapi/plugin_instance.h" | 17 #include "content/child/npapi/plugin_instance.h" |
| 18 #include "content/child/npapi/webplugin_delegate_impl.h" | 18 #include "content/child/npapi/webplugin_delegate_impl.h" |
| 19 #include "content/common/view_messages.h" | 19 #include "content/common/view_messages.h" |
| 20 #include "content/public/common/content_constants.h" |
| 20 #include "content/public/renderer/content_renderer_client.h" | 21 #include "content/public/renderer/content_renderer_client.h" |
| 21 #include "content/renderer/npapi/webplugin_delegate_proxy.h" | 22 #include "content/renderer/npapi/webplugin_delegate_proxy.h" |
| 22 #include "content/renderer/render_process.h" | 23 #include "content/renderer/render_process.h" |
| 23 #include "content/renderer/render_view_impl.h" | 24 #include "content/renderer/render_view_impl.h" |
| 24 #include "net/base/escape.h" | 25 #include "net/base/escape.h" |
| 25 #include "net/base/net_errors.h" | 26 #include "net/base/net_errors.h" |
| 26 #include "net/http/http_response_headers.h" | 27 #include "net/http/http_response_headers.h" |
| 27 #include "skia/ext/platform_canvas.h" | 28 #include "skia/ext/platform_canvas.h" |
| 28 #include "third_party/WebKit/public/platform/WebCString.h" | 29 #include "third_party/WebKit/public/platform/WebCString.h" |
| 29 #include "third_party/WebKit/public/platform/WebCookieJar.h" | 30 #include "third_party/WebKit/public/platform/WebCookieJar.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 42 #include "third_party/WebKit/public/web/WebInputEvent.h" | 43 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 43 #include "third_party/WebKit/public/web/WebKit.h" | 44 #include "third_party/WebKit/public/web/WebKit.h" |
| 44 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 45 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
| 45 #include "third_party/WebKit/public/web/WebPluginParams.h" | 46 #include "third_party/WebKit/public/web/WebPluginParams.h" |
| 46 #include "third_party/WebKit/public/web/WebURLLoaderOptions.h" | 47 #include "third_party/WebKit/public/web/WebURLLoaderOptions.h" |
| 47 #include "third_party/WebKit/public/web/WebView.h" | 48 #include "third_party/WebKit/public/web/WebView.h" |
| 48 #include "ui/gfx/rect.h" | 49 #include "ui/gfx/rect.h" |
| 49 #include "url/gurl.h" | 50 #include "url/gurl.h" |
| 50 #include "url/url_util.h" | 51 #include "url/url_util.h" |
| 51 #include "webkit/child/multipart_response_delegate.h" | 52 #include "webkit/child/multipart_response_delegate.h" |
| 52 #include "webkit/plugins/plugin_constants.h" | |
| 53 #include "webkit/renderer/appcache/web_application_cache_host_impl.h" | 53 #include "webkit/renderer/appcache/web_application_cache_host_impl.h" |
| 54 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" | 54 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" |
| 55 | 55 |
| 56 using appcache::WebApplicationCacheHostImpl; | 56 using appcache::WebApplicationCacheHostImpl; |
| 57 using WebKit::WebCanvas; | 57 using WebKit::WebCanvas; |
| 58 using WebKit::WebConsoleMessage; | 58 using WebKit::WebConsoleMessage; |
| 59 using WebKit::WebCookieJar; | 59 using WebKit::WebCookieJar; |
| 60 using WebKit::WebCString; | 60 using WebKit::WebCString; |
| 61 using WebKit::WebCursorInfo; | 61 using WebKit::WebCursorInfo; |
| 62 using WebKit::WebData; | 62 using WebKit::WebData; |
| (...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 case PLUGIN_SRC: | 1467 case PLUGIN_SRC: |
| 1468 webframe_->setReferrerForRequest(*request, plugin_url_); | 1468 webframe_->setReferrerForRequest(*request, plugin_url_); |
| 1469 break; | 1469 break; |
| 1470 | 1470 |
| 1471 default: | 1471 default: |
| 1472 break; | 1472 break; |
| 1473 } | 1473 } |
| 1474 } | 1474 } |
| 1475 | 1475 |
| 1476 } // namespace content | 1476 } // namespace content |
| OLD | NEW |