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_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_ | |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_ | |
7 | |
8 #include "components/content_settings/core/common/content_settings_types.h" | |
9 | |
10 class PermissionContextBase; | |
11 class Profile; | |
12 | |
13 namespace PermissionContext { | |
Bernhard Bauer
2015/03/11 14:06:18
Namespaces should be lowercase_with_underscores. O
mlamouri (slow - plz ping)
2015/03/18 16:24:40
Done.
| |
14 | |
15 // Helper method returning the PermissionContextBase object associated with the | |
16 // given ContentSettingsType. | |
17 PermissionContextBase* Get(Profile* profile, | |
mlamouri (slow - plz ping)
2015/03/11 11:38:17
This could be renamed PermissionContextFactory::Cr
Bernhard Bauer
2015/03/11 14:06:18
I prefer Get() over Create(), as the method doesn'
mlamouri (slow - plz ping)
2015/03/18 16:24:40
Sounds good.
| |
18 ContentSettingsType content_settings_type); | |
19 | |
20 } // namespace PermissionContext | |
21 | |
22 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_ | |
OLD | NEW |