OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 #include "chrome/browser/net/chrome_special_storage_policy_delegate.h" |
| 6 |
| 7 ChromeSpecialStoragePolicyDelegate::ChromeSpecialStoragePolicyDelegate( |
| 8 quota::SpecialStoragePolicy* special_storage_policy) |
| 9 : special_storage_policy_(special_storage_policy) { |
| 10 } |
| 11 |
| 12 ChromeSpecialStoragePolicyDelegate::~ChromeSpecialStoragePolicyDelegate() { |
| 13 } |
| 14 |
| 15 bool ChromeSpecialStoragePolicyDelegate::IsStorageSessionOnly( |
| 16 const GURL& origin) { |
| 17 if (!special_storage_policy_.get()) |
| 18 return false; |
| 19 return special_storage_policy_->IsStorageSessionOnly(origin); |
| 20 } |
| 21 |
| 22 bool ChromeSpecialStoragePolicyDelegate::HasSessionOnlyOrigins() { |
| 23 if (!special_storage_policy_.get()) |
| 24 return false; |
| 25 return special_storage_policy_->HasSessionOnlyOrigins(); |
| 26 } |
OLD | NEW |