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

Unified Diff: Source/modules/cachestorage/CacheStorageError.h

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! Created 5 years, 4 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
« no previous file with comments | « Source/modules/cachestorage/Cache.cpp ('k') | Source/modules/cachestorage/CacheStorageError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/cachestorage/CacheStorageError.h
diff --git a/Source/modules/cachestorage/CacheStorageError.h b/Source/modules/cachestorage/CacheStorageError.h
index f28b21634ec530304dc47cf22d3f36823668af3b..505b8ae2285b5d5a2a1acca673afb9a158ecc763 100644
--- a/Source/modules/cachestorage/CacheStorageError.h
+++ b/Source/modules/cachestorage/CacheStorageError.h
@@ -7,6 +7,7 @@
#include "public/platform/WebServiceWorkerCacheError.h"
#include "wtf/Noncopyable.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -19,10 +20,10 @@ class CacheStorageError {
public:
// For CallbackPromiseAdapter. Ownership of a given error is not
// transferred.
- using WebType = WebServiceWorkerCacheError;
- static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebType> webError);
+ using WebType = OwnPtr<WebServiceWorkerCacheError>;
+ static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerCacheError> webError);
- static DOMException* createException(WebType webError);
+ static DOMException* createException(WebServiceWorkerCacheError webError);
};
} // namespace blink
« no previous file with comments | « Source/modules/cachestorage/Cache.cpp ('k') | Source/modules/cachestorage/CacheStorageError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698