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

Unified Diff: chrome/browser/net/chrome_special_storage_policy_delegate.cc

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: Implement chrome_special_storage_policy_delegate. 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: chrome/browser/net/chrome_special_storage_policy_delegate.cc
diff --git a/chrome/browser/net/chrome_special_storage_policy_delegate.cc b/chrome/browser/net/chrome_special_storage_policy_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6ac32c2f0a6d684bb6c4ea71e77fb1e0b8a91ca9
--- /dev/null
+++ b/chrome/browser/net/chrome_special_storage_policy_delegate.cc
@@ -0,0 +1,26 @@
+// Copyright 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.
+
+#include "chrome/browser/net/chrome_special_storage_policy_delegate.h"
+
+ChromeSpecialStoragePolicyDelegate::ChromeSpecialStoragePolicyDelegate(
+ quota::SpecialStoragePolicy* special_storage_policy)
+ : special_storage_policy_(special_storage_policy) {
+}
+
+ChromeSpecialStoragePolicyDelegate::~ChromeSpecialStoragePolicyDelegate() {
+}
+
+bool ChromeSpecialStoragePolicyDelegate::IsStorageSessionOnly(
+ const GURL& origin) {
+ if (!special_storage_policy_.get())
+ return false;
+ return special_storage_policy_->IsStorageSessionOnly(origin);
+}
+
+bool ChromeSpecialStoragePolicyDelegate::HasSessionOnlyOrigins() {
+ if (!special_storage_policy_.get())
+ return false;
+ return special_storage_policy_->HasSessionOnlyOrigins();
+}

Powered by Google App Engine
This is Rietveld 408576698