OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. | 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "core/dom/PostAttachCallbacks.h" | 31 #include "core/dom/PostAttachCallbacks.h" |
32 #include "core/events/Event.h" | 32 #include "core/events/Event.h" |
33 #include "core/frame/ContentSecurityPolicy.h" | 33 #include "core/frame/ContentSecurityPolicy.h" |
34 #include "core/frame/Frame.h" | 34 #include "core/frame/Frame.h" |
35 #include "core/html/HTMLImageLoader.h" | 35 #include "core/html/HTMLImageLoader.h" |
36 #include "core/html/PluginDocument.h" | 36 #include "core/html/PluginDocument.h" |
37 #include "core/loader/FrameLoaderClient.h" | 37 #include "core/loader/FrameLoaderClient.h" |
38 #include "core/page/EventHandler.h" | 38 #include "core/page/EventHandler.h" |
39 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
40 #include "core/page/Settings.h" | 40 #include "core/page/Settings.h" |
41 #include "core/platform/MIMETypeFromURL.h" | |
42 #include "core/platform/MIMETypeRegistry.h" | |
43 #include "core/plugins/PluginData.h" | |
44 #include "core/plugins/PluginView.h" | 41 #include "core/plugins/PluginView.h" |
45 #include "core/rendering/RenderEmbeddedObject.h" | 42 #include "core/rendering/RenderEmbeddedObject.h" |
46 #include "core/rendering/RenderImage.h" | 43 #include "core/rendering/RenderImage.h" |
47 #include "core/rendering/RenderWidget.h" | 44 #include "core/rendering/RenderWidget.h" |
48 #include "platform/Logging.h" | 45 #include "platform/Logging.h" |
| 46 #include "platform/MIMETypeFromURL.h" |
| 47 #include "platform/MIMETypeRegistry.h" |
49 #include "platform/Widget.h" | 48 #include "platform/Widget.h" |
| 49 #include "platform/plugins/PluginData.h" |
50 #include "wtf/UnusedParam.h" | 50 #include "wtf/UnusedParam.h" |
51 | 51 |
52 | 52 |
53 namespace WebCore { | 53 namespace WebCore { |
54 | 54 |
55 using namespace HTMLNames; | 55 using namespace HTMLNames; |
56 | 56 |
57 HTMLPlugInElement::HTMLPlugInElement(const QualifiedName& tagName, Document& doc
, bool createdByParser, PreferPlugInsForImagesOption preferPlugInsForImagesOptio
n) | 57 HTMLPlugInElement::HTMLPlugInElement(const QualifiedName& tagName, Document& doc
, bool createdByParser, PreferPlugInsForImagesOption preferPlugInsForImagesOptio
n) |
58 : HTMLFrameOwnerElement(tagName, doc) | 58 : HTMLFrameOwnerElement(tagName, doc) |
59 , m_NPObject(0) | 59 , m_NPObject(0) |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 if (!document().contentSecurityPolicy()->allowObjectFromSource(url) | 495 if (!document().contentSecurityPolicy()->allowObjectFromSource(url) |
496 || !document().contentSecurityPolicy()->allowPluginType(mimeType, declar
edMimeType, url)) { | 496 || !document().contentSecurityPolicy()->allowPluginType(mimeType, declar
edMimeType, url)) { |
497 renderEmbeddedObject()->setPluginUnavailabilityReason(RenderEmbeddedObje
ct::PluginBlockedByContentSecurityPolicy); | 497 renderEmbeddedObject()->setPluginUnavailabilityReason(RenderEmbeddedObje
ct::PluginBlockedByContentSecurityPolicy); |
498 return false; | 498 return false; |
499 } | 499 } |
500 | 500 |
501 return frame->loader().mixedContentChecker()->canRunInsecureContent(document
().securityOrigin(), url); | 501 return frame->loader().mixedContentChecker()->canRunInsecureContent(document
().securityOrigin(), url); |
502 } | 502 } |
503 | 503 |
504 } | 504 } |
OLD | NEW |