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_EXTENSION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "chrome/browser/content_settings/content_settings_observable_provider.h
" | 11 #include "chrome/browser/content_settings/content_settings_observable_provider.h
" |
12 #include "chrome/browser/extensions/extension_content_settings_store.h" | 12 #include "chrome/browser/extensions/api/content_settings/content_settings_store.
h" |
13 | 13 |
14 namespace content_settings { | 14 namespace content_settings { |
15 | 15 |
16 // A content settings provider which manages settings defined by extensions. | 16 // A content settings provider which manages settings defined by extensions. |
17 class ExtensionProvider : public ObservableProvider, | 17 class ExtensionProvider : public ObservableProvider, |
18 public ExtensionContentSettingsStore::Observer { | 18 public ExtensionContentSettingsStore::Observer { |
19 public: | 19 public: |
20 ExtensionProvider(ExtensionContentSettingsStore* extensions_settings, | 20 ExtensionProvider(ExtensionContentSettingsStore* extensions_settings, |
21 bool incognito); | 21 bool incognito); |
22 | 22 |
(...skipping 28 matching lines...) Expand all Loading... |
51 | 51 |
52 // The backend storing content setting rules defined by extensions. | 52 // The backend storing content setting rules defined by extensions. |
53 scoped_refptr<ExtensionContentSettingsStore> extensions_settings_; | 53 scoped_refptr<ExtensionContentSettingsStore> extensions_settings_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(ExtensionProvider); | 55 DISALLOW_COPY_AND_ASSIGN(ExtensionProvider); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace content_settings | 58 } // namespace content_settings |
59 | 59 |
60 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H
_ | 60 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_EXTENSION_PROVIDER_H
_ |
OLD | NEW |