OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 class HTMLObjectElement; | 43 class HTMLObjectElement; |
44 } // namespace WebCore | 44 } // namespace WebCore |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class WebFrameImpl; | 48 class WebLocalFrameImpl; |
49 class WebPluginContainerImpl; | 49 class WebPluginContainerImpl; |
50 | 50 |
51 // Utility class to host helper plugins for media. Internally, it creates a deta
ched | 51 // Utility class to host helper plugins for media. Internally, it creates a deta
ched |
52 // HTMLPluginElement to host the plugin and uses FrameLoaderClient::createPlugin
() to instantiate | 52 // HTMLPluginElement to host the plugin and uses FrameLoaderClient::createPlugin
() to instantiate |
53 // the requested plugin. | 53 // the requested plugin. |
54 class WebHelperPluginImpl FINAL : public WebHelperPlugin { | 54 class WebHelperPluginImpl FINAL : public WebHelperPlugin { |
55 WTF_MAKE_NONCOPYABLE(WebHelperPluginImpl); | 55 WTF_MAKE_NONCOPYABLE(WebHelperPluginImpl); |
56 WTF_MAKE_FAST_ALLOCATED; | 56 WTF_MAKE_FAST_ALLOCATED; |
57 public: | 57 public: |
58 // WebHelperPlugin methods: | 58 // WebHelperPlugin methods: |
59 virtual WebPlugin* getPlugin() OVERRIDE; | 59 virtual WebPlugin* getPlugin() OVERRIDE; |
60 virtual void destroy() OVERRIDE; | 60 virtual void destroy() OVERRIDE; |
61 | 61 |
62 private: | 62 private: |
63 friend class WebHelperPlugin; | 63 friend class WebHelperPlugin; |
64 | 64 |
65 WebHelperPluginImpl(); | 65 WebHelperPluginImpl(); |
66 virtual ~WebHelperPluginImpl(); | 66 virtual ~WebHelperPluginImpl(); |
67 | 67 |
68 bool initialize(const String& pluginType, WebFrameImpl*); | 68 bool initialize(const String& pluginType, WebLocalFrameImpl*); |
69 void reallyDestroy(WebCore::Timer<WebHelperPluginImpl>*); | 69 void reallyDestroy(WebCore::Timer<WebHelperPluginImpl>*); |
70 | 70 |
71 WebCore::Timer<WebHelperPluginImpl> m_destructionTimer; | 71 WebCore::Timer<WebHelperPluginImpl> m_destructionTimer; |
72 RefPtr<WebCore::HTMLObjectElement> m_objectElement; | 72 RefPtr<WebCore::HTMLObjectElement> m_objectElement; |
73 RefPtr<WebPluginContainerImpl> m_pluginContainer; | 73 RefPtr<WebPluginContainerImpl> m_pluginContainer; |
74 }; | 74 }; |
75 | 75 |
76 } // namespace blink | 76 } // namespace blink |
77 | 77 |
78 #endif // WebHelperPluginImpl_h | 78 #endif // WebHelperPluginImpl_h |
OLD | NEW |