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

Side by Side Diff: Source/modules/presentation/PresentationAvailabilityCallback.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 | Annotate | Revision Log
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 PresentationAvailabilityCallback_h 5 #ifndef PresentationAvailabilityCallback_h
6 #define PresentationAvailabilityCallback_h 6 #define PresentationAvailabilityCallback_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "public/platform/WebCallbacks.h" 9 #include "public/platform/WebCallbacks.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ScriptPromiseResolver; 14 class ScriptPromiseResolver;
15 struct WebPresentationError; 15 struct WebPresentationError;
16 16
17 using WebPresentationAvailabilityCallbacks = WebCallbacks<bool, WebPresentationE rror>; 17 using WebPresentationAvailabilityCallbacks = WebCallbacks<bool, WebPresentationE rror>;
18 18
19 // PresentationAvailabilityCallback is an implementation of 19 // PresentationAvailabilityCallback is an implementation of
20 // WebPresentationAvailabilityCallbacks that will resolve the underlying promise 20 // WebPresentationAvailabilityCallbacks that will resolve the underlying promise
21 // depending on the result passed to the callback. 21 // depending on the result passed to the callback.
22 class PresentationAvailabilityCallback final 22 class PresentationAvailabilityCallback final
23 : public WebPresentationAvailabilityCallbacks { 23 : public WebPresentationAvailabilityCallbacks {
24 WTF_MAKE_NONCOPYABLE(PresentationAvailabilityCallback); 24 WTF_MAKE_NONCOPYABLE(PresentationAvailabilityCallback);
25 public: 25 public:
26 explicit PresentationAvailabilityCallback(PassRefPtrWillBeRawPtr<ScriptPromi seResolver>); 26 explicit PresentationAvailabilityCallback(PassRefPtrWillBeRawPtr<ScriptPromi seResolver>);
27 virtual ~PresentationAvailabilityCallback() = default; 27 ~PresentationAvailabilityCallback() override = default;
28 28
29 void onSuccess(bool*) override; 29 void onSuccess(bool*) override;
30 void onError(WebPresentationError*) override; 30 void onError(WebPresentationError*) override;
31 31
32 private: 32 private:
33 RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver; 33 RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver;
34 }; 34 };
35 35
36 } // namespace blink 36 } // namespace blink
37 37
38 #endif // PresentationAvailabilityCallback_h 38 #endif // PresentationAvailabilityCallback_h
OLDNEW
« no previous file with comments | « Source/modules/presentation/Presentation.h ('k') | Source/modules/presentation/PresentationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698