xref: /aosp_15_r20/external/cronet/net/device_bound_sessions/device_bound_session_service.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 #ifndef NET_DEVICE_BOUND_SESSIONS_DEVICE_BOUND_SESSION_SERVICE_H_
6 #define NET_DEVICE_BOUND_SESSIONS_DEVICE_BOUND_SESSION_SERVICE_H_
7 
8 #include <memory>
9 
10 #include "net/base/net_export.h"
11 #include "net/device_bound_sessions/device_bound_session_registration_fetcher_param.h"
12 
13 namespace net {
14 
15 // Main class for Device Bound Session Credentials (DBSC).
16 // Full information can be found at https://github.com/WICG/dbsc
17 class NET_EXPORT DeviceBoundSessionService {
18  public:
19   static std::unique_ptr<DeviceBoundSessionService> Create();
20 
21   virtual void RegisterBoundSession(
22       const DeviceBoundSessionRegistrationFetcherParam&
23           registration_params) = 0;
24 
25   virtual ~DeviceBoundSessionService() = default;
26 };
27 
28 }  // namespace net
29 
30 #endif  // NET_DEVICE_BOUND_SESSIONS_DEVICE_BOUND_SESSION_SERVICE_H_
31