| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/renderer/webplugin_delegate_proxy.h" | 5 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 | 12 |
| 13 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
| 14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/ref_counted.h" | 19 #include "base/ref_counted.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
| 22 #include "chrome/common/child_process_logging.h" | 22 #include "chrome/common/child_process_logging.h" |
| 23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 24 #include "chrome/common/plugin_messages.h" | 24 #include "chrome/common/plugin_messages.h" |
| 25 #include "chrome/common/render_messages.h" | 25 #include "chrome/common/render_messages.h" |
| 26 #include "chrome/plugin/npobject_proxy.h" | 26 #include "chrome/plugin/npobject_proxy.h" |
| 27 #include "chrome/plugin/npobject_stub.h" | 27 #include "chrome/plugin/npobject_stub.h" |
| 28 #include "chrome/plugin/npobject_util.h" | 28 #include "chrome/plugin/npobject_util.h" |
| 29 #include "chrome/renderer/command_buffer_proxy.h" | 29 #include "chrome/renderer/command_buffer_proxy.h" |
| 30 #include "chrome/renderer/plugin_channel_host.h" |
| 30 #include "chrome/renderer/render_thread.h" | 31 #include "chrome/renderer/render_thread.h" |
| 31 #include "chrome/renderer/render_view.h" | 32 #include "chrome/renderer/render_view.h" |
| 32 #include "gfx/blit.h" | 33 #include "gfx/blit.h" |
| 33 #include "gfx/canvas_skia.h" | 34 #include "gfx/canvas_skia.h" |
| 34 #include "gfx/native_widget_types.h" | 35 #include "gfx/native_widget_types.h" |
| 35 #include "gfx/size.h" | 36 #include "gfx/size.h" |
| 36 #include "grit/generated_resources.h" | 37 #include "grit/generated_resources.h" |
| 37 #include "grit/renderer_resources.h" | 38 #include "grit/renderer_resources.h" |
| 38 #include "net/base/mime_util.h" | 39 #include "net/base/mime_util.h" |
| 39 #include "printing/native_metafile.h" | 40 #include "printing/native_metafile.h" |
| 41 #include "skia/ext/platform_canvas.h" |
| 40 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" | 42 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" |
| 41 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" | 43 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" |
| 42 #include "third_party/WebKit/WebKit/chromium/public/WebDragData.h" | 44 #include "third_party/WebKit/WebKit/chromium/public/WebDragData.h" |
| 43 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 45 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 44 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 46 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
| 45 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" | 47 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" |
| 46 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" | 48 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
| 47 #include "webkit/glue/plugins/webplugin.h" | 49 #include "webkit/glue/plugins/webplugin.h" |
| 48 #include "webkit/glue/webkit_glue.h" | 50 #include "webkit/glue/webkit_glue.h" |
| 49 | 51 |
| (...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1555 if (index->mime_type == "application/x-vnd.moveplayer.qm" || | 1557 if (index->mime_type == "application/x-vnd.moveplayer.qm" || |
| 1556 index->mime_type == "application/x-vnd.moveplay2.qm" || | 1558 index->mime_type == "application/x-vnd.moveplay2.qm" || |
| 1557 index->mime_type == "application/x-vnd.movenetworks.qm" || | 1559 index->mime_type == "application/x-vnd.movenetworks.qm" || |
| 1558 index->mime_type == "application/x-vnd.mnplayer.qm") { | 1560 index->mime_type == "application/x-vnd.mnplayer.qm") { |
| 1559 return true; | 1561 return true; |
| 1560 } | 1562 } |
| 1561 } | 1563 } |
| 1562 return false; | 1564 return false; |
| 1563 } | 1565 } |
| 1564 #endif | 1566 #endif |
| OLD | NEW |