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

Side by Side Diff: chrome/browser/permissions/permission_context.h

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 years, 8 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
« no previous file with comments | « chrome/browser/permissions/OWNERS ('k') | chrome/browser/permissions/permission_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_H_
7
8 #include <list>
9
10 #include "base/macros.h"
11 #include "components/content_settings/core/common/content_settings_types.h"
12
13 class PermissionContextBase;
14 class Profile;
15 class KeyedServiceBaseFactory;
16
17 namespace content {
18 enum class PermissionType;
19 }; // namespace content
20
21 class PermissionContext {
22 public:
23 // Helper method returning the PermissionContextBase object associated with
24 // the given ContentSettingsType.
25 static PermissionContextBase* Get(
26 Profile* profile,
27 content::PermissionType content_settings_type);
28
29 // Return all the factories related to PermissionContext. These are the
30 // factories used by ::Get() to create a PermissionContextBase.
31 // This is meant to be used by callers of ::Get() that need to depend on these
32 // factories.
33 static const std::list<KeyedServiceBaseFactory*>& GetFactories();
34
35 private:
36 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContext);
37 };
38
39 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/OWNERS ('k') | chrome/browser/permissions/permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698