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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 // A content settings provider that takes its settings out of policies. 9 // A content settings provider that takes its settings out of policies.
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 DISALLOW_COPY_AND_ASSIGN(PolicyDefaultProvider); 80 DISALLOW_COPY_AND_ASSIGN(PolicyDefaultProvider);
81 }; 81 };
82 82
83 // PolicyProvider that provider managed content-settings. 83 // PolicyProvider that provider managed content-settings.
84 class PolicyProvider : public BaseProvider, 84 class PolicyProvider : public BaseProvider,
85 public NotificationObserver { 85 public NotificationObserver {
86 public: 86 public:
87 explicit PolicyProvider(Profile* profile, 87 explicit PolicyProvider(Profile* profile,
88 DefaultProviderInterface* default_provider); 88 DefaultProviderInterface* default_provider);
89 ~PolicyProvider(); 89 virtual ~PolicyProvider();
90 static void RegisterUserPrefs(PrefService* prefs); 90 static void RegisterUserPrefs(PrefService* prefs);
91 91
92 // BaseProvider Implementation 92 // BaseProvider Implementation
93 virtual void Init(); 93 virtual void Init();
94 94
95 virtual void SetContentSetting( 95 virtual void SetContentSetting(
96 const ContentSettingsPattern& requesting_pattern, 96 const ContentSettingsPattern& requesting_pattern,
97 const ContentSettingsPattern& embedding_pattern, 97 const ContentSettingsPattern& embedding_pattern,
98 ContentSettingsType content_type, 98 ContentSettingsType content_type,
99 const ResourceIdentifier& resource_identifier, 99 const ResourceIdentifier& resource_identifier,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 PrefChangeRegistrar pref_change_registrar_; 144 PrefChangeRegistrar pref_change_registrar_;
145 NotificationRegistrar notification_registrar_; 145 NotificationRegistrar notification_registrar_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); 147 DISALLOW_COPY_AND_ASSIGN(PolicyProvider);
148 }; 148 };
149 149
150 } // namespace content_settings 150 } // namespace content_settings
151 151
152 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 152 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_remover.h ('k') | chrome/browser/content_settings/host_content_settings_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698