Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: components/content_settings/core/browser/content_settings_provider.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_ 7 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_
8 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_ 8 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "components/content_settings/core/browser/content_settings_rule.h" 14 #include "components/content_settings/core/browser/content_settings_rule.h"
15 #include "components/content_settings/core/common/content_settings.h" 15 #include "components/content_settings/core/common/content_settings.h"
16 16
17 class ContentSettingsPattern; 17 class ContentSettingsPattern;
18 18
19 namespace content_settings { 19 namespace content_settings {
20 20
21 struct Rule;
22 class RuleIterator; 21 class RuleIterator;
23 22
24 class ProviderInterface { 23 class ProviderInterface {
25 public: 24 public:
26 virtual ~ProviderInterface() {} 25 virtual ~ProviderInterface() {}
27 26
28 // Returns a |RuleIterator| over the content setting rules stored by this 27 // Returns a |RuleIterator| over the content setting rules stored by this
29 // provider. If |incognito| is true, the iterator returns only the content 28 // provider. If |incognito| is true, the iterator returns only the content
30 // settings which are applicable to the incognito mode and differ from the 29 // settings which are applicable to the incognito mode and differ from the
31 // normal mode. Otherwise, it returns the content settings for the normal 30 // normal mode. Otherwise, it returns the content settings for the normal
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Detaches the Provider from all Profile-related objects like PrefService. 63 // Detaches the Provider from all Profile-related objects like PrefService.
65 // This methods needs to be called before destroying the Profile. 64 // This methods needs to be called before destroying the Profile.
66 // Afterwards, none of the methods above that should only be called on the UI 65 // Afterwards, none of the methods above that should only be called on the UI
67 // thread should be called anymore. 66 // thread should be called anymore.
68 virtual void ShutdownOnUIThread() = 0; 67 virtual void ShutdownOnUIThread() = 0;
69 }; 68 };
70 69
71 } // namespace content_settings 70 } // namespace content_settings
72 71
73 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_ 72 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698