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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoaderClient.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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
Index: third_party/WebKit/Source/core/loader/FrameLoaderClient.h
diff --git a/third_party/WebKit/Source/core/loader/FrameLoaderClient.h b/third_party/WebKit/Source/core/loader/FrameLoaderClient.h
index 41350986da6bface6e8f827703aef9ecec26fe3a..d16e979f95d4e4d020982d9ffd080cf32a05adf1 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoaderClient.h
+++ b/third_party/WebKit/Source/core/loader/FrameLoaderClient.h
@@ -48,6 +48,7 @@
#include "public/platform/WebLoadingBehaviorFlag.h"
#include "wtf/Forward.h"
#include "wtf/Vector.h"
+#include <memory>
#include <v8.h>
namespace blink {
@@ -174,9 +175,9 @@ public:
virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0;
virtual Widget* createPlugin(HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually, DetachedPluginPolicy) = 0;
- virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const WebMediaPlayerSource&, WebMediaPlayerClient*) = 0;
+ virtual std::unique_ptr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const WebMediaPlayerSource&, WebMediaPlayerClient*) = 0;
- virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0;
+ virtual std::unique_ptr<WebMediaSession> createWebMediaSession() = 0;
virtual ObjectContentType getObjectContentType(const KURL&, const String& mimeType, bool shouldPreferPlugInsForImages) = 0;
@@ -243,7 +244,7 @@ public:
virtual void dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoadPriority, int intraPriorityValue) { }
- virtual PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider() = 0;
+ virtual std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() = 0;
virtual bool isControlledByServiceWorker(DocumentLoader&) = 0;
@@ -251,7 +252,7 @@ public:
virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { return 0; }
- virtual PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicationCacheHostClient*) = 0;
+ virtual std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicationCacheHostClient*) = 0;
virtual void dispatchDidChangeManifest() { }
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | third_party/WebKit/Source/core/loader/ImageLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698