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

Side by Side Diff: content/browser/signed_certificate_timestamp_store_impl.h

Issue 1957483003: Removal of SignedCertificateTimestampStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed IPC problem Created 4 years, 7 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
(Empty)
1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_
6 #define CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_
7
8 #include "base/macros.h"
9 #include "content/browser/renderer_data_memoizing_store.h"
10 #include "content/public/browser/signed_certificate_timestamp_store.h"
11 #include "net/cert/signed_certificate_timestamp.h"
12
13 namespace base {
14 template <typename T> struct DefaultSingletonTraits;
15 }
16
17 namespace content {
18
19 class SignedCertificateTimestampStoreImpl
20 : public SignedCertificateTimestampStore {
21 public:
22 // Returns the singleton instance of the SignedCertificateTimestampStore.
23 static SignedCertificateTimestampStoreImpl* GetInstance();
24
25 // SignedCertificateTimestampStore implementation:
26 int Store(net::ct::SignedCertificateTimestamp* sct,
27 int render_process_host_id) override;
28 bool Retrieve(
29 int sct_id,
30 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) override;
31
32 private:
33 friend struct base::DefaultSingletonTraits<
34 SignedCertificateTimestampStoreImpl>;
35
36 SignedCertificateTimestampStoreImpl();
37 ~SignedCertificateTimestampStoreImpl() override;
38
39 RendererDataMemoizingStore<net::ct::SignedCertificateTimestamp> store_;
40
41 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestampStoreImpl);
42 };
43
44 } // namespace content
45
46 #endif // CONTENT_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/browser/signed_certificate_timestamp_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698