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

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

Issue 9169042: Block plugins for platform apps (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix plugin_tests on linux Created 8 years, 10 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
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 #pragma once 10 #pragma once
(...skipping 22 matching lines...) Expand all
33 33
34 class ExtensionService; 34 class ExtensionService;
35 class GURL; 35 class GURL;
36 class PrefService; 36 class PrefService;
37 37
38 class HostContentSettingsMap 38 class HostContentSettingsMap
39 : public content_settings::Observer, 39 : public content_settings::Observer,
40 public base::RefCountedThreadSafe<HostContentSettingsMap> { 40 public base::RefCountedThreadSafe<HostContentSettingsMap> {
41 public: 41 public:
42 enum ProviderType { 42 enum ProviderType {
43 POLICY_PROVIDER = 0, 43 PLATFORM_APP_PROVIDER = 0,
44 EXTENSION_PROVIDER = 1, 44 POLICY_PROVIDER,
45 EXTENSION_PROVIDER,
45 PREF_PROVIDER, 46 PREF_PROVIDER,
46 DEFAULT_PROVIDER, 47 DEFAULT_PROVIDER,
47 NUM_PROVIDER_TYPES, 48 NUM_PROVIDER_TYPES,
48 }; 49 };
49 50
50 HostContentSettingsMap(PrefService* prefs, 51 HostContentSettingsMap(PrefService* prefs,
51 ExtensionService* extension_service, 52 ExtensionService* extension_service,
52 bool incognito); 53 bool incognito);
53 54
54 static void RegisterUserPrefs(PrefService* prefs); 55 static void RegisterUserPrefs(PrefService* prefs);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // Content setting providers. 224 // Content setting providers.
224 ProviderMap content_settings_providers_; 225 ProviderMap content_settings_providers_;
225 226
226 // Used around accesses to the following objects to guarantee thread safety. 227 // Used around accesses to the following objects to guarantee thread safety.
227 mutable base::Lock lock_; 228 mutable base::Lock lock_;
228 229
229 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); 230 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap);
230 }; 231 };
231 232
232 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 233 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698