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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClientCallback.h

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ServiceWorkerWindowClientCallback_h 5 #ifndef ServiceWorkerWindowClientCallback_h
6 #define ServiceWorkerWindowClientCallback_h 6 #define ServiceWorkerWindowClientCallback_h
7 7
8 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" 8 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class ScriptPromiseResolver; 12 class ScriptPromiseResolver;
13 13
14 class NavigateClientCallback : public WebServiceWorkerClientCallbacks { 14 class NavigateClientCallback : public WebServiceWorkerClientCallbacks {
15 public: 15 public:
16 explicit NavigateClientCallback(ScriptPromiseResolver* resolver) 16 explicit NavigateClientCallback(ScriptPromiseResolver* resolver)
17 : m_resolver(resolver) { } 17 : m_resolver(resolver) { }
18 18
19 void onSuccess(WebPassOwnPtr<WebServiceWorkerClientInfo>) override; 19 void onSuccess(std::unique_ptr<WebServiceWorkerClientInfo>) override;
20 void onError(const WebServiceWorkerError&) override; 20 void onError(const WebServiceWorkerError&) override;
21 21
22 private: 22 private:
23 Persistent<ScriptPromiseResolver> m_resolver; 23 Persistent<ScriptPromiseResolver> m_resolver;
24 WTF_MAKE_NONCOPYABLE(NavigateClientCallback); 24 WTF_MAKE_NONCOPYABLE(NavigateClientCallback);
25 }; 25 };
26 26
27 } // namespace blink 27 } // namespace blink
28 28
29 #endif // ServiceWorkerWindowClientCallback_h 29 #endif // ServiceWorkerWindowClientCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698