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

Unified Diff: chrome/browser/durable_storage_permission_context.h

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.h
diff --git a/chrome/browser/durable_storage_permission_context.h b/chrome/browser/durable_storage_permission_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..98138fade9220e52a30ed3e1b7a5fab2495fc7eb
--- /dev/null
+++ b/chrome/browser/durable_storage_permission_context.h
@@ -0,0 +1,24 @@
+// Copyright 2015 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.
+
+#ifndef CHROME_BROWSER_DURABLE_STORAGE_PERMISSION_CONTEXT_H_
+#define CHROME_BROWSER_DURABLE_STORAGE_PERMISSION_CONTEXT_H_
+
+#include "chrome/browser/permissions/permission_context_base.h"
+
+class GURL;
+class PermissionRequestID;
mlamouri (slow - plz ping) 2015/08/05 13:54:55 nit: you don't seem to need these two forward decl
dgrogan 2015/08/07 20:11:44 Done.
+
+class DurableStoragePermissionContext : public PermissionContextBase {
+ public:
+ explicit DurableStoragePermissionContext(Profile* profile);
+ ~DurableStoragePermissionContext() override;
mlamouri (slow - plz ping) 2015/08/05 13:54:55 nit: = default.
dgrogan 2015/08/07 20:11:44 Done.
+ bool IsRestrictedToSecureOrigins() const override;
mlamouri (slow - plz ping) 2015/08/05 13:54:55 nit: add empty line
dgrogan 2015/08/07 20:11:44 Done.
+
+ private:
+
mlamouri (slow - plz ping) 2015/08/05 13:54:55 nit: remove empty line
dgrogan 2015/08/07 20:11:44 Done.
+ DISALLOW_COPY_AND_ASSIGN(DurableStoragePermissionContext);
+};
+
+#endif // CHROME_BROWSER_DURABLE_STORAGE_PERMISSION_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698