• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2024 The Chromium Authors
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 "net/device_bound_sessions/session_params.h"
6 
7 namespace net::device_bound_sessions {
8 
SessionParams(std::string id,std::string refresh,Scope incoming_scope,std::vector<Credential> creds)9 SessionParams::SessionParams(std::string id,
10                              std::string refresh,
11                              Scope incoming_scope,
12                              std::vector<Credential> creds)
13     : session_id(std::move(id)),
14       refresh_url(std::move(refresh)),
15       scope(std::move(incoming_scope)),
16       credentials(std::move(creds)) {}
17 
18 SessionParams::SessionParams(SessionParams&& other) noexcept = default;
19 
20 SessionParams& SessionParams::operator=(SessionParams&& other) noexcept =
21     default;
22 
23 SessionParams::~SessionParams() = default;
24 
25 SessionParams::Scope::Scope() = default;
26 
27 SessionParams::Scope::Scope(Scope&& other) noexcept = default;
28 
29 SessionParams::Scope& SessionParams::Scope::operator=(
30     SessionParams::Scope&& other) noexcept = default;
31 
32 SessionParams::Scope::~Scope() = default;
33 
34 }  // namespace net::device_bound_sessions
35