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

Unified Diff: Source/web/PluginPlaceholderImpl.h

Issue 1313763002: Blink Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge origin/master Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/PluginPlaceholderImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/PluginPlaceholderImpl.h
diff --git a/Source/web/PluginPlaceholderImpl.h b/Source/web/PluginPlaceholderImpl.h
deleted file mode 100644
index f2b6b1551ed8495d868a71b6ef3b5395f1eddae1..0000000000000000000000000000000000000000
--- a/Source/web/PluginPlaceholderImpl.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PluginPlaceholderImpl_h
-#define PluginPlaceholderImpl_h
-
-#include "core/plugins/PluginPlaceholder.h"
-#include "platform/heap/Handle.h"
-#include "platform/heap/Visitor.h"
-#include "wtf/Assertions.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
-
-namespace blink {
-
-class Document;
-class PluginPlaceholderElement;
-class WebPluginPlaceholder;
-
-// Populates a plugin placeholder element with content supplied by the embedder.
-// Intended to be loaded into a user agent shadow root, but will accept any
-// container. Owns a WebPluginPlaceholder instance.
-class PluginPlaceholderImpl : public NoBaseWillBeGarbageCollectedFinalized<PluginPlaceholderImpl>, public PluginPlaceholder {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PluginPlaceholderImpl);
-public:
- static PassOwnPtrWillBeRawPtr<PluginPlaceholderImpl> create(PassOwnPtr<WebPluginPlaceholder> webPluginPlaceholder, Document& document)
- {
- ASSERT(webPluginPlaceholder);
- return adoptPtrWillBeNoop(new PluginPlaceholderImpl(webPluginPlaceholder, document));
- }
-
-#if ENABLE(OILPAN)
- ~PluginPlaceholderImpl();
-#else
- ~PluginPlaceholderImpl() override;
-#endif
-
- DECLARE_VIRTUAL_TRACE();
-
- // PluginPlaceholder methods
- void loadIntoContainer(ContainerNode&) override;
-
- // Visible for testing.
- WebPluginPlaceholder* webPluginPlaceholder() const { return m_webPluginPlaceholder.get(); }
-
-private:
- PluginPlaceholderImpl(PassOwnPtr<WebPluginPlaceholder>, Document&);
-
- // Update the placeholder element with fresh content.
- void update();
-
- OwnPtr<WebPluginPlaceholder> m_webPluginPlaceholder;
- RefPtrWillBeMember<PluginPlaceholderElement> m_placeholderElement;
-};
-
-} // namespace blink
-
-#endif // PluginPlaceholderImpl_h
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/PluginPlaceholderImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698