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 CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ |
8 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ | 8 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #define NO_RESOURCE_IDENTIFIER "" | 11 #define NO_RESOURCE_IDENTIFIER "" |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
18 | 18 |
19 class ContentSettingsPattern; | 19 class ContentSettingsPattern; |
20 class GURL; | |
21 | 20 |
22 namespace content_settings { | 21 namespace content_settings { |
23 | 22 |
24 struct Rule; | 23 struct Rule; |
25 class RuleIterator; | 24 class RuleIterator; |
26 | 25 |
27 typedef std::string ResourceIdentifier; | 26 typedef std::string ResourceIdentifier; |
28 | 27 |
29 class ProviderInterface { | 28 class ProviderInterface { |
30 public: | 29 public: |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Detaches the Provider from all Profile-related objects like PrefService. | 67 // Detaches the Provider from all Profile-related objects like PrefService. |
69 // This methods needs to be called before destroying the Profile. | 68 // This methods needs to be called before destroying the Profile. |
70 // Afterwards, none of the methods above that should only be called on the UI | 69 // Afterwards, none of the methods above that should only be called on the UI |
71 // thread should be called anymore. | 70 // thread should be called anymore. |
72 virtual void ShutdownOnUIThread() = 0; | 71 virtual void ShutdownOnUIThread() = 0; |
73 }; | 72 }; |
74 | 73 |
75 } // namespace content_settings | 74 } // namespace content_settings |
76 | 75 |
77 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ | 76 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ |
OLD | NEW |