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

Unified Diff: content/public/browser/signed_certificate_timestamp_store.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/resource_response.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/signed_certificate_timestamp_store.h
diff --git a/content/public/browser/signed_certificate_timestamp_store.h b/content/public/browser/signed_certificate_timestamp_store.h
deleted file mode 100644
index a12250a40c809d700fa2689b1fd595fcadc25114..0000000000000000000000000000000000000000
--- a/content/public/browser/signed_certificate_timestamp_store.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_PUBLIC_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_H_
-#define CONTENT_PUBLIC_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_H_
-
-#include "base/memory/ref_counted.h"
-#include "content/common/content_export.h"
-
-namespace net {
-namespace ct {
-struct SignedCertificateTimestamp;
-} // namespace ct
-} // namespace net
-
-namespace content {
-
-// The purpose of the SignedCertificateTimestampStore is to provide an easy way
-// to store/retrieve SignedCertificateTimestamp objects. When stored,
-// SignedCertificateTimestamp objects are associated with a RenderProcessHost.
-// If all the RenderProcessHosts associated with the SCT have exited, the SCT
-// is removed from the store. This class is used by the SSLManager to keep
-// track of the SCTs associated with loaded resources. It can be accessed from
-// the UI and IO threads (it is thread-safe). Note that the SCT ids will
-// overflow if we register more than 2^32 - 1 SCTs in 1 browsing session (which
-// is highly unlikely to happen).
-class SignedCertificateTimestampStore {
- public:
- // Returns the singleton instance of the SignedCertificateTimestampStore.
- CONTENT_EXPORT static SignedCertificateTimestampStore* GetInstance();
-
- // Stores the specified SCT and returns the id associated with it. The SCT
- // is associated with the specified RenderProcessHost.
- // When all the RenderProcessHosts associated with a SCT have exited, the
- // SCT is removed from the store.
- // Note: ids start at 1.
- virtual int Store(net::ct::SignedCertificateTimestamp* sct,
- int render_process_host_id) = 0;
-
- // Tries to retrieve the previously stored SCT associated with the specified
- // |sct_id|. Returns whether the SCT could be found, and, if |sct| is
- // non-nullptr, copies it in.
- virtual bool Retrieve(
- int sct_id, scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) = 0;
-
- protected:
- virtual ~SignedCertificateTimestampStore() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_SIGNED_CERTIFICATE_TIMESTAMP_STORE_H_
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/resource_response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698