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

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

Issue 10823370: rename ExtensionProvider and PlatformAppProvider class (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Maps hostnames to custom content settings. Written on the UI thread and read 5 // Maps hostnames to custom content settings. Written on the UI thread and read
6 // on any thread. One instance per profile. 6 // on any thread. One instance per profile.
7 7
8 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 8 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
9 #define CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 9 #define CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 class ExtensionService; 33 class ExtensionService;
34 class GURL; 34 class GURL;
35 class PrefService; 35 class PrefService;
36 36
37 class HostContentSettingsMap 37 class HostContentSettingsMap
38 : public content_settings::Observer, 38 : public content_settings::Observer,
39 public base::RefCountedThreadSafe<HostContentSettingsMap> { 39 public base::RefCountedThreadSafe<HostContentSettingsMap> {
40 public: 40 public:
41 enum ProviderType { 41 enum ProviderType {
42 PLATFORM_APP_PROVIDER = 0, 42 INTERNAL_EXTENSION_PROVIDER = 0,
43 POLICY_PROVIDER, 43 POLICY_PROVIDER,
44 EXTENSION_PROVIDER, 44 CUSTOM_EXTENSION_PROVIDER,
45 PREF_PROVIDER, 45 PREF_PROVIDER,
46 DEFAULT_PROVIDER, 46 DEFAULT_PROVIDER,
47 NUM_PROVIDER_TYPES, 47 NUM_PROVIDER_TYPES,
48 }; 48 };
49 49
50 HostContentSettingsMap(PrefService* prefs, 50 HostContentSettingsMap(PrefService* prefs,
51 bool incognito); 51 bool incognito);
52 52
53 // In some cases, the ExtensionService is not available at the time the 53 // In some cases, the ExtensionService is not available at the time the
54 // HostContentSettingsMap is constructed. In these cases, we register the 54 // HostContentSettingsMap is constructed. In these cases, we register the
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Content setting providers. 227 // Content setting providers.
228 ProviderMap content_settings_providers_; 228 ProviderMap content_settings_providers_;
229 229
230 // Used around accesses to the following objects to guarantee thread safety. 230 // Used around accesses to the following objects to guarantee thread safety.
231 mutable base::Lock lock_; 231 mutable base::Lock lock_;
232 232
233 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); 233 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap);
234 }; 234 };
235 235
236 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 236 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698