| Index: third_party/WebKit/public/web/WebHelperPlugin.h
|
| diff --git a/third_party/WebKit/public/web/WebHelperPlugin.h b/third_party/WebKit/public/web/WebHelperPlugin.h
|
| index 57ec1fd2f1b6309b7c1528167aec3d278d994cb0..5a7de5a10f62da5840b3993cdc19337d873a34ab 100644
|
| --- a/third_party/WebKit/public/web/WebHelperPlugin.h
|
| +++ b/third_party/WebKit/public/web/WebHelperPlugin.h
|
| @@ -34,6 +34,10 @@
|
| #include "../platform/WebCommon.h"
|
| #include "WebFrame.h"
|
|
|
| +#if INSIDE_BLINK
|
| +#include <memory>
|
| +#endif
|
| +
|
| namespace blink {
|
|
|
| class WebPlugin;
|
| @@ -56,19 +60,18 @@ protected:
|
| virtual ~WebHelperPlugin() { }
|
| };
|
|
|
| -} // namespace blink
|
| -
|
| -namespace WTF {
|
| -
|
| -template<typename T> struct OwnedPtrDeleter;
|
| -template<> struct OwnedPtrDeleter<blink::WebHelperPlugin> {
|
| - static void deletePtr(blink::WebHelperPlugin* plugin)
|
| +#if INSIDE_BLINK
|
| +struct WebHelperPluginDeleter {
|
| + void operator()(WebHelperPlugin* plugin)
|
| {
|
| if (plugin)
|
| plugin->destroy();
|
| }
|
| };
|
|
|
| -} // namespace WTF
|
| +using WebHelperPluginUniquePtr = std::unique_ptr<WebHelperPlugin, WebHelperPluginDeleter>;
|
| +#endif
|
| +
|
| +} // namespace blink
|
|
|
| #endif
|
|
|