• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "osp/public/protocol_connection.h"
6 
7 namespace openscreen {
8 namespace osp {
9 
ProtocolConnection(uint64_t endpoint_id,uint64_t id)10 ProtocolConnection::ProtocolConnection(uint64_t endpoint_id, uint64_t id)
11     : endpoint_id_(endpoint_id), id_(id) {}
12 
SetObserver(Observer * observer)13 void ProtocolConnection::SetObserver(Observer* observer) {
14   OSP_DCHECK(!observer_ || !observer);
15   observer_ = observer;
16 }
17 
18 }  // namespace osp
19 }  // namespace openscreen
20