Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: Source/core/html/HTMLPlugInElement.cpp

Issue 55143009: Move MIMEType classes to Source/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLObjectElement.cpp ('k') | Source/core/inspector/InspectorFileSystemAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698