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

Side by Side Diff: third_party/WebKit/Source/modules/plugins/DOMMimeType.cpp

Issue 2769263004: Remove Frame::host() method (Closed)
Patch Set: Created 3 years, 9 months 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) 2008 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public 5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return builder.toString(); 56 return builder.toString();
57 } 57 }
58 58
59 const String& DOMMimeType::description() const { 59 const String& DOMMimeType::description() const {
60 return mimeClassInfo().desc; 60 return mimeClassInfo().desc;
61 } 61 }
62 62
63 DOMPlugin* DOMMimeType::enabledPlugin() const { 63 DOMPlugin* DOMMimeType::enabledPlugin() const {
64 // FIXME: allowPlugins is just a client call. We should not need 64 // FIXME: allowPlugins is just a client call. We should not need
65 // to bounce through the loader to get there. 65 // to bounce through the loader to get there.
66 // Something like: frame()->host()->client()->allowPlugins(). 66 // Something like: frame()->page()->client()->allowPlugins().
67 if (!frame() || !frame()->loader().allowPlugins(NotAboutToInstantiatePlugin)) 67 if (!frame() || !frame()->loader().allowPlugins(NotAboutToInstantiatePlugin))
68 return nullptr; 68 return nullptr;
69 69
70 return DOMPlugin::create(m_pluginData.get(), frame(), 70 return DOMPlugin::create(m_pluginData.get(), frame(),
71 m_pluginData->mimePluginIndices()[m_index]); 71 m_pluginData->mimePluginIndices()[m_index]);
72 } 72 }
73 73
74 } // namespace blink 74 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698