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

Unified Diff: third_party/WebKit/Source/modules/storage/StorageArea.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 3f28860a08f6c025c16841454beb7c4f275906b6..406012a8ce59399e5c21da346953c3fb033d8bc9 100644
--- a/third_party/WebKit/Source/modules/storage/StorageArea.h
+++ b/third_party/WebKit/Source/modules/storage/StorageArea.h
@@ -29,8 +29,9 @@
#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 {
@@ -50,7 +51,7 @@ enum StorageType {
class MODULES_EXPORT StorageArea final : public GarbageCollectedFinalized<StorageArea>, public LocalFrameLifecycleObserver {
USING_GARBAGE_COLLECTED_MIXIN(StorageArea);
public:
- static StorageArea* create(std::unique_ptr<WebStorageArea>, StorageType);
+ static StorageArea* create(PassOwnPtr<WebStorageArea>, StorageType);
virtual ~StorageArea();
@@ -73,11 +74,11 @@ public:
DECLARE_TRACE();
private:
- StorageArea(std::unique_ptr<WebStorageArea>, StorageType);
+ StorageArea(PassOwnPtr<WebStorageArea>, StorageType);
static bool isEventSource(Storage*, WebStorageArea* sourceAreaInstance);
- std::unique_ptr<WebStorageArea> m_storageArea;
+ OwnPtr<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