OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 #ifndef CHROME_BROWSER_PERMISSIONS_CHOOSER_PERMISSION_CONTEXT_BASE_H_ | |
6 #define CHROME_BROWSER_PERMISSIONS_CHOOSER_PERMISSION_CONTEXT_BASE_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "chrome/browser/permissions/permission_context_base.h" | |
10 | |
11 namespace base { | |
12 class DictionaryValue; | |
13 class ListValue; | |
14 class Value; | |
15 } | |
16 | |
17 class ChooserPermissionContextBase : public PermissionContextBase { | |
raymes
2015/10/06 05:28:20
Mounir should have some thoughts about inheriting
Reilly Grant (use Gerrit)
2015/10/06 20:45:30
Alright.
| |
18 public: | |
19 ChooserPermissionContextBase(Profile* profile, | |
20 ContentSettingsType permission_type); | |
21 ~ChooserPermissionContextBase() override; | |
22 | |
23 scoped_ptr<base::ListValue> GetChosenObjects(const GURL& origin); | |
raymes
2015/10/06 05:28:20
How is an "Object" defined?
Would GetPreviouslyCh
Reilly Grant (use Gerrit)
2015/10/06 20:45:30
An object is defined by the subclass. For the bene
raymes
2015/10/07 04:48:29
Could we impose some structure on it? This might m
Bernhard Bauer
2015/10/12 11:03:48
Yes -- for example, a chooser-based geolocation pr
Reilly Grant (use Gerrit)
2015/10/12 15:37:48
My followup UI patch adds a virtual GetStringToDis
| |
24 void GrantObjectPermission(const GURL& origin, | |
raymes
2015/10/06 05:28:20
Perhaps we should pass the top level and requestin
Reilly Grant (use Gerrit)
2015/10/06 20:45:30
Done.
| |
25 scoped_ptr<base::Value> object); | |
26 void RevokeObjectPermission(const GURL& origin, const base::Value& object); | |
27 | |
28 private: | |
29 scoped_ptr<base::DictionaryValue> GetWebsiteSetting(const GURL& origin); | |
30 void SetWebsiteSetting(const GURL& origin, scoped_ptr<base::Value> value); | |
31 }; | |
32 | |
33 #endif // CHROME_BROWSER_PERMISSIONS_CHOOSER_PERMISSION_CONTEXT_BASE_H_ | |
OLD | NEW |