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

Side by Side Diff: components/content_settings/core/browser/host_content_settings_map.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Maps hostnames to custom content settings. Written on the UI thread and read 5 // Maps hostnames to custom content settings. Written on the UI thread and read
6 // on any thread. One instance per profile. 6 // on any thread. One instance per profile.
7 7
8 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_HOST_CONTENT_SETTINGS_MAP_H_ 8 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_HOST_CONTENT_SETTINGS_MAP_H_
9 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_HOST_CONTENT_SETTINGS_MAP_H_ 9 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_HOST_CONTENT_SETTINGS_MAP_H_
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/threading/platform_thread.h" 19 #include "base/threading/platform_thread.h"
20 #include "base/threading/thread_checker.h" 20 #include "base/threading/thread_checker.h"
21 #include "components/content_settings/core/browser/content_settings_observer.h" 21 #include "components/content_settings/core/browser/content_settings_observer.h"
22 #include "components/content_settings/core/browser/content_settings_utils.h" 22 #include "components/content_settings/core/browser/content_settings_utils.h"
23 #include "components/content_settings/core/common/content_settings.h" 23 #include "components/content_settings/core/common/content_settings.h"
24 #include "components/content_settings/core/common/content_settings_pattern.h" 24 #include "components/content_settings/core/common/content_settings_pattern.h"
25 #include "components/content_settings/core/common/content_settings_types.h" 25 #include "components/content_settings/core/common/content_settings_types.h"
26 #include "components/keyed_service/core/refcounted_keyed_service.h" 26 #include "components/keyed_service/core/refcounted_keyed_service.h"
27 #include "components/prefs/pref_change_registrar.h" 27 #include "components/prefs/pref_change_registrar.h"
28 28
29 class ExtensionService;
30 class GURL; 29 class GURL;
31 class PrefService; 30 class PrefService;
32 31
33 namespace base { 32 namespace base {
34 class Clock; 33 class Clock;
35 class Value; 34 class Value;
36 } 35 }
37 36
38 namespace content_settings { 37 namespace content_settings {
39 class ObservableProvider; 38 class ObservableProvider;
40 class ProviderInterface; 39 class ProviderInterface;
41 class PrefProvider; 40 class PrefProvider;
41 class RuleIterator;
42 class TestUtils; 42 class TestUtils;
43 } 43 }
44 44
45 namespace user_prefs { 45 namespace user_prefs {
46 class PrefRegistrySyncable; 46 class PrefRegistrySyncable;
47 } 47 }
48 48
49 class HostContentSettingsMap : public content_settings::Observer, 49 class HostContentSettingsMap : public content_settings::Observer,
50 public RefcountedKeyedService { 50 public RefcountedKeyedService {
51 public: 51 public:
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 base::ThreadChecker thread_checker_; 409 base::ThreadChecker thread_checker_;
410 410
411 base::ObserverList<content_settings::Observer> observers_; 411 base::ObserverList<content_settings::Observer> observers_;
412 412
413 base::WeakPtrFactory<HostContentSettingsMap> weak_ptr_factory_; 413 base::WeakPtrFactory<HostContentSettingsMap> weak_ptr_factory_;
414 414
415 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); 415 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap);
416 }; 416 };
417 417
418 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_HOST_CONTENT_SETTINGS_MAP_H_ 418 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_HOST_CONTENT_SETTINGS_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698