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

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

Issue 7831004: Add a method to the content_settings::ProviderInterface to return the content settings Value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_extension_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EXTENSION_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/content_settings/content_settings_observable_provider.h " 10 #include "chrome/browser/content_settings/content_settings_observable_provider.h "
(...skipping 11 matching lines...) Expand all
22 class ExtensionProvider : public ObservableProvider, 22 class ExtensionProvider : public ObservableProvider,
23 public ExtensionContentSettingsStore::Observer { 23 public ExtensionContentSettingsStore::Observer {
24 public: 24 public:
25 ExtensionProvider(ExtensionContentSettingsStore* extensions_settings, 25 ExtensionProvider(ExtensionContentSettingsStore* extensions_settings,
26 bool incognito); 26 bool incognito);
27 27
28 virtual ~ExtensionProvider(); 28 virtual ~ExtensionProvider();
29 29
30 // Provider Interface implementations. 30 // Provider Interface implementations.
31 virtual ContentSetting GetContentSetting( 31 virtual ContentSetting GetContentSetting(
32 const GURL& embedded_url, 32 const GURL& primary_url,
33 const GURL& top_level_url, 33 const GURL& secondary_url,
34 ContentSettingsType content_type, 34 ContentSettingsType content_type,
35 const ResourceIdentifier& resource_identifier) const; 35 const ResourceIdentifier& resource_identifier) const;
36 36
37 virtual Value* GetContentSettingValue(
38 const GURL& primary_url,
39 const GURL& secondary_url,
40 ContentSettingsType content_type,
41 const ResourceIdentifier& resource_identifier) const;
42
37 virtual void SetContentSetting( 43 virtual void SetContentSetting(
38 const ContentSettingsPattern& embedded_url_pattern, 44 const ContentSettingsPattern& embedded_url_pattern,
39 const ContentSettingsPattern& top_level_url_pattern, 45 const ContentSettingsPattern& top_level_url_pattern,
40 ContentSettingsType content_type, 46 ContentSettingsType content_type,
41 const ResourceIdentifier& resource_identifier, 47 const ResourceIdentifier& resource_identifier,
42 ContentSetting content_setting) {} 48 ContentSetting content_setting) {}
43 49
44 virtual void GetAllContentSettingsRules( 50 virtual void GetAllContentSettingsRules(
45 ContentSettingsType content_type, 51 ContentSettingsType content_type,
46 const ResourceIdentifier& resource_identifier, 52 const ResourceIdentifier& resource_identifier,
(...skipping 16 matching lines...) Expand all
63 69
64 // The backend storing content setting rules defined by extensions. 70 // The backend storing content setting rules defined by extensions.
65 scoped_refptr<ExtensionContentSettingsStore> extensions_settings_; 71 scoped_refptr<ExtensionContentSettingsStore> extensions_settings_;
66 72
67 DISALLOW_COPY_AND_ASSIGN(ExtensionProvider); 73 DISALLOW_COPY_AND_ASSIGN(ExtensionProvider);
68 }; 74 };
69 75
70 } // namespace content_settings 76 } // namespace content_settings
71 77
72 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H _ 78 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_extension_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698