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

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

Issue 990303002: Implement PermissionService::GetNextPermissionChange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_impl
Patch Set: review comments Created 5 years, 9 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 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_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_
7
8 #include <list>
9
10 #include "components/content_settings/core/common/content_settings_types.h"
11
12 class PermissionContextBase;
13 class Profile;
14 class KeyedServiceBaseFactory;
15
16 class PermissionContext {
17 public:
18 // Helper method returning the PermissionContextBase object associated with
19 // the given ContentSettingsType.
20 static PermissionContextBase* Get(Profile* profile,
21 ContentSettingsType content_settings_type);
22
23 // Return all the factories related to PermissionContext. These are the
24 // factories used by ::Get() to create a PermissionContextBase.
25 // This is meant to be used by callers of ::Get() that need to depend on these
26 // factories.
27 static std::list<KeyedServiceBaseFactory*> GetFactories();
28 };
Bernhard Bauer 2015/03/23 10:20:43 Add DISALLOW_IMPLICIT_CONSTRUCTORS to prevent this
29
30 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698