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 // Interface for objects providing content setting rules. | 5 // Interface for objects providing content setting rules. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ | 7 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_ |
8 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ | 8 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_ |
9 | 9 |
10 #define NO_RESOURCE_IDENTIFIER std::string() | 10 #define NO_RESOURCE_IDENTIFIER std::string() |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 #include <vector> | |
14 | 13 |
15 #include "base/values.h" | 14 #include "base/values.h" |
16 #include "components/content_settings/core/common/content_settings_types.h" | 15 #include "components/content_settings/core/common/content_settings_types.h" |
17 | 16 |
18 class ContentSettingsPattern; | 17 class ContentSettingsPattern; |
19 | 18 |
20 namespace content_settings { | 19 namespace content_settings { |
21 | 20 |
22 struct Rule; | 21 struct Rule; |
23 class RuleIterator; | 22 class RuleIterator; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 65 |
67 // Detaches the Provider from all Profile-related objects like PrefService. | 66 // Detaches the Provider from all Profile-related objects like PrefService. |
68 // This methods needs to be called before destroying the Profile. | 67 // This methods needs to be called before destroying the Profile. |
69 // Afterwards, none of the methods above that should only be called on the UI | 68 // Afterwards, none of the methods above that should only be called on the UI |
70 // thread should be called anymore. | 69 // thread should be called anymore. |
71 virtual void ShutdownOnUIThread() = 0; | 70 virtual void ShutdownOnUIThread() = 0; |
72 }; | 71 }; |
73 | 72 |
74 } // namespace content_settings | 73 } // namespace content_settings |
75 | 74 |
76 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ | 75 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_ |
OLD | NEW |