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

Side by Side Diff: chrome/browser/content_settings/content_settings_mock_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_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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 const ContentSettingsPattern& embedding_url_pattern, 34 const ContentSettingsPattern& embedding_url_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( 39 virtual void ClearAllContentSettingsRules(
40 ContentSettingsType content_type) OVERRIDE {} 40 ContentSettingsType content_type) 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 void set_read_only(bool read_only) { 48 void set_read_only(bool read_only) {
45 read_only_ = read_only; 49 read_only_ = read_only;
46 } 50 }
47 51
48 bool read_only() const { 52 bool read_only() const {
49 return read_only_; 53 return read_only_;
50 } 54 }
51 55
52 private: 56 private:
53 OriginIdentifierValueMap value_map_; 57 OriginIdentifierValueMap value_map_;
54 bool read_only_; 58 bool read_only_;
55 59
56 DISALLOW_COPY_AND_ASSIGN(MockProvider); 60 DISALLOW_COPY_AND_ASSIGN(MockProvider);
57 }; 61 };
58 62
59 } // namespace content_settings 63 } // namespace content_settings
60 64
61 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_ 65 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698