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

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

Issue 545413002: Detach the dependency from host_content_settings_map to extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ProviderType Created 6 years, 3 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 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PROVID ER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PROVID ER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PROVID ER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PROVID ER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 23 matching lines...) Expand all
34 const ContentSettingsPattern& secondary_pattern, 34 const ContentSettingsPattern& secondary_pattern,
35 ContentSettingsType content_type, 35 ContentSettingsType content_type,
36 const ResourceIdentifier& resource_identifier, 36 const ResourceIdentifier& resource_identifier,
37 base::Value* value) OVERRIDE; 37 base::Value* value) OVERRIDE;
38 38
39 virtual void ClearAllContentSettingsRules(ContentSettingsType content_type) 39 virtual void ClearAllContentSettingsRules(ContentSettingsType content_type)
40 OVERRIDE {} 40 OVERRIDE {}
41 41
42 virtual void ShutdownOnUIThread() OVERRIDE; 42 virtual void ShutdownOnUIThread() OVERRIDE;
43 43
44 virtual std::string GetProviderName() const OVERRIDE;
45
46 virtual SettingSource GetSettingSource() const OVERRIDE;
47
44 // extensions::ContentSettingsStore::Observer methods: 48 // extensions::ContentSettingsStore::Observer methods:
45 virtual void OnContentSettingChanged(const std::string& extension_id, 49 virtual void OnContentSettingChanged(const std::string& extension_id,
46 bool incognito) OVERRIDE; 50 bool incognito) OVERRIDE;
47 51
48 private: 52 private:
49 // Specifies whether this provider manages settings for incognito or regular 53 // Specifies whether this provider manages settings for incognito or regular
50 // sessions. 54 // sessions.
51 bool incognito_; 55 bool incognito_;
52 56
53 // The backend storing content setting rules defined by extensions. 57 // The backend storing content setting rules defined by extensions.
54 scoped_refptr<extensions::ContentSettingsStore> extensions_settings_; 58 scoped_refptr<extensions::ContentSettingsStore> extensions_settings_;
55 59
56 DISALLOW_COPY_AND_ASSIGN(CustomExtensionProvider); 60 DISALLOW_COPY_AND_ASSIGN(CustomExtensionProvider);
57 }; 61 };
58 62
59 } // namespace content_settings 63 } // namespace content_settings
60 64
61 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PRO VIDER_H_ 65 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_CUSTOM_EXTENSION_PRO VIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698