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

Unified Diff: third_party/WebKit/Source/modules/storage/StorageArea.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/modules/storage/StorageArea.h
diff --git a/third_party/WebKit/Source/modules/storage/StorageArea.h b/third_party/WebKit/Source/modules/storage/StorageArea.h
index 406012a8ce59399e5c21da346953c3fb033d8bc9..3f28860a08f6c025c16841454beb7c4f275906b6 100644
--- a/third_party/WebKit/Source/modules/storage/StorageArea.h
+++ b/third_party/WebKit/Source/modules/storage/StorageArea.h
@@ -29,9 +29,8 @@
#include "core/frame/LocalFrameLifecycleObserver.h"
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace blink {
@@ -51,7 +50,7 @@ enum StorageType {
class MODULES_EXPORT StorageArea final : public GarbageCollectedFinalized<StorageArea>, public LocalFrameLifecycleObserver {
USING_GARBAGE_COLLECTED_MIXIN(StorageArea);
public:
- static StorageArea* create(PassOwnPtr<WebStorageArea>, StorageType);
+ static StorageArea* create(std::unique_ptr<WebStorageArea>, StorageType);
virtual ~StorageArea();
@@ -74,11 +73,11 @@ public:
DECLARE_TRACE();
private:
- StorageArea(PassOwnPtr<WebStorageArea>, StorageType);
+ StorageArea(std::unique_ptr<WebStorageArea>, StorageType);
static bool isEventSource(Storage*, WebStorageArea* sourceAreaInstance);
- OwnPtr<WebStorageArea> m_storageArea;
+ std::unique_ptr<WebStorageArea> m_storageArea;
StorageType m_storageType;
bool m_canAccessStorageCachedResult;
};
« no previous file with comments | « third_party/WebKit/Source/modules/storage/Storage.cpp ('k') | third_party/WebKit/Source/modules/storage/StorageArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698