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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 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/durable_storage_permission_context.h"
6
7 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
8 #include "chrome/browser/permissions/permission_request_id.h"
9 #include "content/public/browser/child_process_security_policy.h"
10 #include "url/gurl.h"
11
12 DurableStoragePermissionContext::DurableStoragePermissionContext(
13 Profile* profile)
14 : PermissionContextBase(profile, CONTENT_SETTINGS_TYPE_DURABLE_STORAGE) {
15 }
16
17 bool DurableStoragePermissionContext::IsRestrictedToSecureOrigins() const {
18 return true;
19 }
20
jochen (gone - plz use gerrit) 2015/08/12 16:29:03 no empty line
dgrogan 2015/08/12 19:09:14 Done.
OLDNEW
« no previous file with comments | « chrome/browser/durable_storage_permission_context.h ('k') | chrome/browser/durable_storage_permission_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698