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

Side by Side Diff: content/public/test/mock_special_storage_policy.cc

Issue 1164073005: Allow script to request durable storage permission (chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased onto content setting patch Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/mock_special_storage_policy.h" 5 #include "content/public/test/mock_special_storage_policy.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 bool MockSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) { 33 bool MockSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
34 return ContainsKey(isolated_, origin); 34 return ContainsKey(isolated_, origin);
35 } 35 }
36 36
37 bool MockSpecialStoragePolicy::HasSessionOnlyOrigins() { 37 bool MockSpecialStoragePolicy::HasSessionOnlyOrigins() {
38 return !session_only_.empty(); 38 return !session_only_.empty();
39 } 39 }
40 40
41 bool MockSpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
42 return false;
43 }
44
41 MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {} 45 MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {}
42 46
43 } // namespace content 47 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698