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_ |