| 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/browser/content_settings/content_settings_pattern.h" | |
| 18 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
| 18 #include "chrome/common/content_settings_pattern.h" |
| 19 | 19 |
| 20 class GURL; | 20 class GURL; |
| 21 | 21 |
| 22 namespace content_settings { | 22 namespace content_settings { |
| 23 | 23 |
| 24 typedef std::string ResourceIdentifier; | 24 typedef std::string ResourceIdentifier; |
| 25 | 25 |
| 26 class DefaultProviderInterface { | 26 class DefaultProviderInterface { |
| 27 public: | 27 public: |
| 28 virtual ~DefaultProviderInterface() {} | 28 virtual ~DefaultProviderInterface() {} |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Detaches the Provider from all Profile-related objects like PrefService. | 132 // Detaches the Provider from all Profile-related objects like PrefService. |
| 133 // This methods needs to be called before destroying the Profile. | 133 // This methods needs to be called before destroying the Profile. |
| 134 // Afterwards, none of the methods above that should only be called on the UI | 134 // Afterwards, none of the methods above that should only be called on the UI |
| 135 // thread should be called anymore. | 135 // thread should be called anymore. |
| 136 virtual void ShutdownOnUIThread() = 0; | 136 virtual void ShutdownOnUIThread() = 0; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace content_settings | 139 } // namespace content_settings |
| 140 | 140 |
| 141 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ | 141 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PROVIDER_H_ |
| OLD | NEW |