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

Side by Side Diff: chrome/browser/content_settings/content_settings_default_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) 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_DEFAULT_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DEFAULT_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DEFAULT_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DEFAULT_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const ContentSettingsPattern& secondary_pattern, 45 const ContentSettingsPattern& secondary_pattern,
46 ContentSettingsType content_type, 46 ContentSettingsType content_type,
47 const ResourceIdentifier& resource_identifier, 47 const ResourceIdentifier& resource_identifier,
48 base::Value* value) OVERRIDE; 48 base::Value* value) OVERRIDE;
49 49
50 virtual void ClearAllContentSettingsRules( 50 virtual void ClearAllContentSettingsRules(
51 ContentSettingsType content_type) OVERRIDE; 51 ContentSettingsType content_type) OVERRIDE;
52 52
53 virtual void ShutdownOnUIThread() OVERRIDE; 53 virtual void ShutdownOnUIThread() OVERRIDE;
54 54
55 virtual std::string GetProviderName() const OVERRIDE;
56
57 virtual SettingSource GetSettingSource() const OVERRIDE;
58
55 private: 59 private:
56 // Sets the fields of |settings| based on the values in |dictionary|. 60 // Sets the fields of |settings| based on the values in |dictionary|.
57 void GetSettingsFromDictionary(const base::DictionaryValue* dictionary); 61 void GetSettingsFromDictionary(const base::DictionaryValue* dictionary);
58 62
59 // Forces the default settings to be explicitly set instead of themselves 63 // Forces the default settings to be explicitly set instead of themselves
60 // being CONTENT_SETTING_DEFAULT. 64 // being CONTENT_SETTING_DEFAULT.
61 void ForceDefaultsToBeExplicit(); 65 void ForceDefaultsToBeExplicit();
62 66
63 // Reads the default settings from the preferences service. If |overwrite| is 67 // Reads the default settings from the preferences service. If |overwrite| is
64 // true and the preference is missing, the local copy will be cleared as well. 68 // true and the preference is missing, the local copy will be cleared as well.
(...skipping 21 matching lines...) Expand all
86 // Whether we are currently updating preferences, this is used to ignore 90 // Whether we are currently updating preferences, this is used to ignore
87 // notifications from the preferences service that we triggered ourself. 91 // notifications from the preferences service that we triggered ourself.
88 bool updating_preferences_; 92 bool updating_preferences_;
89 93
90 DISALLOW_COPY_AND_ASSIGN(DefaultProvider); 94 DISALLOW_COPY_AND_ASSIGN(DefaultProvider);
91 }; 95 };
92 96
93 } // namespace content_settings 97 } // namespace content_settings
94 98
95 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DEFAULT_PROVIDER_H_ 99 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DEFAULT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698