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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerError.h

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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
Index: Source/modules/serviceworkers/ServiceWorkerError.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerError.h b/Source/modules/serviceworkers/ServiceWorkerError.h
index d45644ca04d1bde52d14df902b2b8ef7e1375226..6166d76744b7e341517c71a55a6058fe8994143d 100644
--- a/Source/modules/serviceworkers/ServiceWorkerError.h
+++ b/Source/modules/serviceworkers/ServiceWorkerError.h
@@ -33,8 +33,6 @@
#include "platform/heap/Handle.h"
#include "public/platform/WebServiceWorkerError.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -44,8 +42,8 @@ class ScriptPromiseResolver;
class ServiceWorkerError {
public:
// For CallbackPromiseAdapter
- using WebType = OwnPtr<WebServiceWorkerError>;
- static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerError> webError);
+ using WebType = const WebServiceWorkerError&;
+ static DOMException* take(ScriptPromiseResolver*, const WebServiceWorkerError& webError);
private:
WTF_MAKE_NONCOPYABLE(ServiceWorkerError);
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.cpp ('k') | Source/modules/serviceworkers/ServiceWorkerError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698