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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/ExistingPresentationConnectionCallbacks.h

Issue 2737413003: [Presentation API] Remove references to presentation sessions. (Closed)
Patch Set: Update PresentationServiceDelegateImpl unittest Created 3 years, 9 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 ExistingPresentationConnectionCallbacks_h 5 #ifndef ExistingPresentationConnectionCallbacks_h
6 #define ExistingPresentationConnectionCallbacks_h 6 #define ExistingPresentationConnectionCallbacks_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 "public/platform/modules/presentation/WebPresentationConnectionCallback s.h" 10 #include "public/platform/modules/presentation/WebPresentationConnectionCallback s.h"
11 #include "wtf/Noncopyable.h" 11 #include "wtf/Noncopyable.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class PresentationConnection; 15 class PresentationConnection;
16 class ScriptPromiseResolver; 16 class ScriptPromiseResolver;
17 struct WebPresentationInfo;
17 struct WebPresentationError; 18 struct WebPresentationError;
18 struct WebPresentationSessionInfo;
19 19
20 // ExistingPresentationConnectionCallbacks extends WebCallbacks to resolve the 20 // ExistingPresentationConnectionCallbacks extends WebCallbacks to resolve the
21 // underlying promise. It takes the PresentationConnection object that 21 // underlying promise. It takes the PresentationConnection object that
22 // originated the call in its constructor and will resolve underlying promise 22 // originated the call in its constructor and will resolve underlying promise
23 // with that object. 23 // with that object.
24 // TODO(crbug.com/684111): Combine ExistingPresentationConnectionCallbacks with 24 // TODO(crbug.com/684111): Combine ExistingPresentationConnectionCallbacks with
25 // PresentationConnectionCallbacks 25 // PresentationConnectionCallbacks
26 class ExistingPresentationConnectionCallbacks final 26 class ExistingPresentationConnectionCallbacks final
27 : public WebPresentationConnectionCallbacks { 27 : public WebPresentationConnectionCallbacks {
28 public: 28 public:
29 ExistingPresentationConnectionCallbacks(ScriptPromiseResolver*, 29 ExistingPresentationConnectionCallbacks(ScriptPromiseResolver*,
30 PresentationConnection*); 30 PresentationConnection*);
31 ~ExistingPresentationConnectionCallbacks() override = default; 31 ~ExistingPresentationConnectionCallbacks() override = default;
32 32
33 // WebCallbacks implementation 33 // WebCallbacks implementation
34 void onSuccess(const WebPresentationSessionInfo&) override; 34 void onSuccess(const WebPresentationInfo&) override;
35 void onError(const WebPresentationError&) override; 35 void onError(const WebPresentationError&) override;
36 36
37 // WebPresentationConnectionCallbacks implementation 37 // WebPresentationConnectionCallbacks implementation
38 WebPresentationConnection* getConnection() override; 38 WebPresentationConnection* getConnection() override;
39 39
40 private: 40 private:
41 Persistent<ScriptPromiseResolver> m_resolver; 41 Persistent<ScriptPromiseResolver> m_resolver;
42 Persistent<PresentationConnection> m_connection; 42 Persistent<PresentationConnection> m_connection;
43 43
44 WTF_MAKE_NONCOPYABLE(ExistingPresentationConnectionCallbacks); 44 WTF_MAKE_NONCOPYABLE(ExistingPresentationConnectionCallbacks);
45 }; 45 };
46 46
47 } // namespace blink 47 } // namespace blink
48 48
49 #endif // ExistingPresentationConnectionCallbacks_h 49 #endif // ExistingPresentationConnectionCallbacks_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698