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

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

Issue 2471263003: [Presentation API] (4th)(1-UA blink side) Add WebPresentationConnection and WebPresentationConnecti… (Closed)
Patch Set: resolve code review comments from mlamouri Created 3 years, 10 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 #include "modules/presentation/ExistingPresentationConnectionCallbacks.h" 5 #include "modules/presentation/ExistingPresentationConnectionCallbacks.h"
6 6
7 #include "bindings/core/v8/ScriptPromiseResolver.h" 7 #include "bindings/core/v8/ScriptPromiseResolver.h"
8 #include "core/dom/DOMException.h" 8 #include "core/dom/DOMException.h"
9 #include "modules/presentation/PresentationConnection.h" 9 #include "modules/presentation/PresentationConnection.h"
10 #include "modules/presentation/PresentationError.h" 10 #include "modules/presentation/PresentationError.h"
(...skipping 22 matching lines...) Expand all
33 m_connection->didChangeState(WebPresentationConnectionState::Connecting); 33 m_connection->didChangeState(WebPresentationConnectionState::Connecting);
34 34
35 m_resolver->resolve(m_connection); 35 m_resolver->resolve(m_connection);
36 } 36 }
37 37
38 void ExistingPresentationConnectionCallbacks::onError( 38 void ExistingPresentationConnectionCallbacks::onError(
39 const WebPresentationError& error) { 39 const WebPresentationError& error) {
40 NOTREACHED(); 40 NOTREACHED();
41 } 41 }
42 42
43 WebPresentationConnection*
44 ExistingPresentationConnectionCallbacks::getConnection() {
45 return m_connection.get();
46 }
47
43 } // namespace blink 48 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698