OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |