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

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: review 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
« no previous file with comments | « base/values.cc ('k') | chrome/browser/content_settings/content_settings_mock_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_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 11 matching lines...) Expand all
22 bool is_managed, 22 bool is_managed,
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 bool DefaultSettingIsManaged(ContentSettingsType content_type) const; 31 virtual bool DefaultSettingIsManaged(ContentSettingsType content_type) const;
32 virtual void ShutdownOnUIThread();
32 33
33 private: 34 private:
34 ContentSettingsType content_type_; 35 ContentSettingsType content_type_;
35 ContentSetting setting_; 36 ContentSetting setting_;
36 bool is_managed_; 37 bool is_managed_;
37 bool can_override_; 38 bool can_override_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(MockDefaultProvider); 40 DISALLOW_COPY_AND_ASSIGN(MockDefaultProvider);
40 }; 41 };
41 42
(...skipping 27 matching lines...) Expand all
69 ContentSetting content_setting); 70 ContentSetting content_setting);
70 71
71 virtual void GetAllContentSettingsRules( 72 virtual void GetAllContentSettingsRules(
72 ContentSettingsType content_type, 73 ContentSettingsType content_type,
73 const ResourceIdentifier& resource_identifier, 74 const ResourceIdentifier& resource_identifier,
74 Rules* content_setting_rules) const {} 75 Rules* content_setting_rules) const {}
75 76
76 virtual void ClearAllContentSettingsRules( 77 virtual void ClearAllContentSettingsRules(
77 ContentSettingsType content_type) {} 78 ContentSettingsType content_type) {}
78 79
80 virtual void ShutdownOnUIThread() {}
81
79 // Accessors 82 // Accessors
80 void set_requesting_url_pattern(ContentSettingsPattern pattern) { 83 void set_requesting_url_pattern(ContentSettingsPattern pattern) {
81 requesting_url_pattern_ = pattern; 84 requesting_url_pattern_ = pattern;
82 } 85 }
83 86
84 ContentSettingsPattern requesting_url_pattern() const { 87 ContentSettingsPattern requesting_url_pattern() const {
85 return requesting_url_pattern_; 88 return requesting_url_pattern_;
86 } 89 }
87 90
88 void set_embedding_url_pattern(ContentSettingsPattern pattern) { 91 void set_embedding_url_pattern(ContentSettingsPattern pattern) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 ResourceIdentifier resource_identifier_; 135 ResourceIdentifier resource_identifier_;
133 ContentSetting setting_; 136 ContentSetting setting_;
134 bool read_only_; 137 bool read_only_;
135 138
136 DISALLOW_COPY_AND_ASSIGN(MockProvider); 139 DISALLOW_COPY_AND_ASSIGN(MockProvider);
137 }; 140 };
138 141
139 } // namespace content_settings 142 } // namespace content_settings
140 143
141 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_ 144 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_
OLDNEW
« no previous file with comments | « base/values.cc ('k') | chrome/browser/content_settings/content_settings_mock_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698