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

Unified Diff: chrome/browser/durable_storage_permission_context.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: ToT Created 5 years, 4 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/durable_storage_permission_context.cc
diff --git a/chrome/browser/durable_storage_permission_context.cc b/chrome/browser/durable_storage_permission_context.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d46490d6e22af64005ec902fa5ae2be0b472754c
--- /dev/null
+++ b/chrome/browser/durable_storage_permission_context.cc
@@ -0,0 +1,23 @@
+// Copyright 2013 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/durable_storage_permission_context.h"
+
+#include "chrome/browser/content_settings/tab_specific_content_settings.h"
+#include "chrome/browser/permissions/permission_request_id.h"
+#include "content/public/browser/child_process_security_policy.h"
+#include "url/gurl.h"
+
+DurableStoragePermissionContext::DurableStoragePermissionContext(
+ Profile* profile)
+ : PermissionContextBase(profile, CONTENT_SETTINGS_TYPE_DURABLE_STORAGE) {
+}
+
+DurableStoragePermissionContext::~DurableStoragePermissionContext() {
+}
mlamouri (slow - plz ping) 2015/08/05 13:54:55 nit: remove and use = default instead.
dgrogan 2015/08/07 20:11:43 Done.
+
+bool DurableStoragePermissionContext::IsRestrictedToSecureOrigins() const {
+ return true;
+}
+

Powered by Google App Engine
This is Rietveld 408576698