• 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 #ifndef NET_SHARED_DICTIONARY_SHARED_DICTIONARY_GETTER_H_
6 #define NET_SHARED_DICTIONARY_SHARED_DICTIONARY_GETTER_H_
7 
8 #include <memory>
9 #include <optional>
10 
11 #include "base/functional/callback_forward.h"
12 #include "base/memory/scoped_refptr.h"
13 #include "net/shared_dictionary/shared_dictionary_isolation_key.h"
14 
15 class GURL;
16 
17 namespace net {
18 
19 class SharedDictionary;
20 
21 using SharedDictionaryGetter =
22     base::RepeatingCallback<scoped_refptr<SharedDictionary>(
23         const std::optional<SharedDictionaryIsolationKey>& isolation_key,
24         const GURL& request_url)>;
25 
26 }  // namespace net
27 
28 #endif  // NET_SHARED_DICTIONARY_SHARED_DICTIONARY_GETTER_H_
29