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

Unified Diff: content/browser/net/quota_policy_server_bound_cert_store.h

Issue 381073002: Move sqlite_channel_id_store from chrome/browser/net to net/extras. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added content/browser/net/quota_policyserver_bound_cert_store... Created 6 years, 5 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
Index: content/browser/net/quota_policy_server_bound_cert_store.h
diff --git a/chrome/browser/net/sqlite_server_bound_cert_store.h b/content/browser/net/quota_policy_server_bound_cert_store.h
similarity index 53%
copy from chrome/browser/net/sqlite_server_bound_cert_store.h
copy to content/browser/net/quota_policy_server_bound_cert_store.h
index d6777b0f1294daac502731a30e43f16ff3eb1c96..565235f72b4615eea8b1bfe66de93a42251b766b 100644
--- a/chrome/browser/net/sqlite_server_bound_cert_store.h
+++ b/content/browser/net/quota_policy_server_bound_cert_store.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2014 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 CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_
-#define CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_
+#ifndef CONTENT_BROWSER_NET_QUOTA_POLICY_SERVER_BOUND_CERT_STORE_H_
+#define CONTENT_BROWSER_NET_QUOTA_POLICY_SERVER_BOUND_CERT_STORE_H_
#include "base/callback_forward.h"
#include "base/compiler_specific.h"
@@ -19,16 +19,12 @@ namespace quota {
class SpecialStoragePolicy;
}
-// Implements the net::DefaultServerBoundCertStore::PersistentStore interface
-// in terms of a SQLite database. For documentation about the actual member
-// functions consult the documentation of the parent class
-// |net::DefaultServerBoundCertStore::PersistentCertStore|.
-// If provided, a |SpecialStoragePolicy| is consulted when the SQLite database
-// is closed to decide which certificates to keep.
-class SQLiteServerBoundCertStore
+namespace content {
+
+class QuotaPolicyServerBoundCertStore
Ryan Sleevi 2014/07/24 23:47:33 Add comments about what makes this special (i.e. D
mef 2014/07/30 22:12:05 Done.
: public net::DefaultServerBoundCertStore::PersistentStore {
public:
- SQLiteServerBoundCertStore(
+ QuotaPolicyServerBoundCertStore(
const base::FilePath& path,
const scoped_refptr<base::SequencedTaskRunner>& background_task_runner,
quota::SpecialStoragePolicy* special_storage_policy);
@@ -42,14 +38,20 @@ class SQLiteServerBoundCertStore
virtual void SetForceKeepSessionState() OVERRIDE;
protected:
- virtual ~SQLiteServerBoundCertStore();
+ virtual ~QuotaPolicyServerBoundCertStore();
private:
- class Backend;
-
- scoped_refptr<Backend> backend_;
-
- DISALLOW_COPY_AND_ASSIGN(SQLiteServerBoundCertStore);
+ bool IsStorageSessionOnly(
+ const net::DefaultServerBoundCertStore::ServerBoundCert& cert);
+ // True if everything should go to persistent store.
Ryan Sleevi 2014/07/24 23:47:32 Newline before the member vars.
mef 2014/07/30 22:12:05 Done.
+ bool force_keep_session_state_;
+ scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
+ scoped_refptr<net::DefaultServerBoundCertStore::PersistentStore> persistent_;
+ scoped_refptr<net::DefaultServerBoundCertStore::PersistentStore> temporary_;
+
+ DISALLOW_COPY_AND_ASSIGN(QuotaPolicyServerBoundCertStore);
};
-#endif // CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_
+} // namespace content
+
+#endif // CONTENT_BROWSER_NET_QUOTA_POLICY_SERVER_BOUND_CERT_STORE_H_

Powered by Google App Engine
This is Rietveld 408576698