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

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

Issue 7218073: Explicitly ShutdownOnUIThread the HostContentSettingsMap when destroying the Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 5 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_MOCK_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/content_settings/content_settings_provider.h" 10 #include "chrome/browser/content_settings/content_settings_provider.h"
(...skipping 12 matching lines...) Expand all
23 bool can_override); 23 bool can_override);
24 virtual ~MockDefaultProvider(); 24 virtual ~MockDefaultProvider();
25 25
26 // DefaultProviderInterface implementation. 26 // DefaultProviderInterface implementation.
27 virtual ContentSetting ProvideDefaultSetting( 27 virtual ContentSetting ProvideDefaultSetting(
28 ContentSettingsType content_type) const; 28 ContentSettingsType content_type) const;
29 virtual void UpdateDefaultSetting(ContentSettingsType content_type, 29 virtual void UpdateDefaultSetting(ContentSettingsType content_type,
30 ContentSetting setting); 30 ContentSetting setting);
31 virtual void ResetToDefaults(); 31 virtual void ResetToDefaults();
32 virtual bool DefaultSettingIsManaged(ContentSettingsType content_type) const; 32 virtual bool DefaultSettingIsManaged(ContentSettingsType content_type) const;
33 virtual void ShutdownOnUIThread();
33 34
34 private: 35 private:
35 ContentSettingsType content_type_; 36 ContentSettingsType content_type_;
36 ContentSetting setting_; 37 ContentSetting setting_;
37 bool is_managed_; 38 bool is_managed_;
38 bool can_override_; 39 bool can_override_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(MockDefaultProvider); 41 DISALLOW_COPY_AND_ASSIGN(MockDefaultProvider);
41 }; 42 };
42 43
(...skipping 29 matching lines...) Expand all
72 virtual void GetAllContentSettingsRules( 73 virtual void GetAllContentSettingsRules(
73 ContentSettingsType content_type, 74 ContentSettingsType content_type,
74 const ResourceIdentifier& resource_identifier, 75 const ResourceIdentifier& resource_identifier,
75 Rules* content_setting_rules) const {} 76 Rules* content_setting_rules) const {}
76 77
77 virtual void ClearAllContentSettingsRules( 78 virtual void ClearAllContentSettingsRules(
78 ContentSettingsType content_type) {} 79 ContentSettingsType content_type) {}
79 80
80 virtual void ResetToDefaults() {} 81 virtual void ResetToDefaults() {}
81 82
83 virtual void ShutdownOnUIThread() {}
84
82 // Accessors 85 // Accessors
83 void set_requesting_url_pattern(ContentSettingsPattern pattern) { 86 void set_requesting_url_pattern(ContentSettingsPattern pattern) {
84 requesting_url_pattern_ = pattern; 87 requesting_url_pattern_ = pattern;
85 } 88 }
86 89
87 ContentSettingsPattern requesting_url_pattern() const { 90 ContentSettingsPattern requesting_url_pattern() const {
88 return requesting_url_pattern_; 91 return requesting_url_pattern_;
89 } 92 }
90 93
91 void set_embedding_url_pattern(ContentSettingsPattern pattern) { 94 void set_embedding_url_pattern(ContentSettingsPattern pattern) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ResourceIdentifier resource_identifier_; 138 ResourceIdentifier resource_identifier_;
136 ContentSetting setting_; 139 ContentSetting setting_;
137 bool read_only_; 140 bool read_only_;
138 141
139 DISALLOW_COPY_AND_ASSIGN(MockProvider); 142 DISALLOW_COPY_AND_ASSIGN(MockProvider);
140 }; 143 };
141 144
142 } // namespace content_settings 145 } // namespace content_settings
143 146
144 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_ 147 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698