OLD | NEW |
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 #ifndef CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ |
6 #define CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
15 #include "chrome/common/renderer_configuration.mojom.h" | 15 #include "chrome/common/renderer_configuration.mojom.h" |
16 #include "components/content_settings/core/common/content_settings.h" | 16 #include "components/content_settings/core/common/content_settings.h" |
17 #include "components/variations/child_process_field_trial_syncer.h" | 17 #include "components/variations/child_process_field_trial_syncer.h" |
18 #include "content/public/renderer/render_thread_observer.h" | 18 #include "content/public/renderer/render_thread_observer.h" |
19 #include "mojo/public/cpp/bindings/associated_binding.h" | 19 #include "mojo/public/cpp/bindings/associated_binding_set.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class ResourceDispatcherDelegate; | 22 class ResourceDispatcherDelegate; |
23 } | 23 } |
24 | 24 |
25 namespace visitedlink { | 25 namespace visitedlink { |
26 class VisitedLinkSlave; | 26 class VisitedLinkSlave; |
27 } | 27 } |
28 | 28 |
29 // This class filters the incoming control messages (i.e. ones not destined for | 29 // This class filters the incoming control messages (i.e. ones not destined for |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void OnSetFieldTrialGroup(const std::string& trial_name, | 71 void OnSetFieldTrialGroup(const std::string& trial_name, |
72 const std::string& group_name); | 72 const std::string& group_name); |
73 | 73 |
74 static bool is_incognito_process_; | 74 static bool is_incognito_process_; |
75 std::unique_ptr<content::ResourceDispatcherDelegate> resource_delegate_; | 75 std::unique_ptr<content::ResourceDispatcherDelegate> resource_delegate_; |
76 RendererContentSettingRules content_setting_rules_; | 76 RendererContentSettingRules content_setting_rules_; |
77 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; | 77 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; |
78 | 78 |
79 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 79 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
80 | 80 |
81 mojo::AssociatedBinding<chrome::mojom::RendererConfiguration> | 81 mojo::AssociatedBindingSet<chrome::mojom::RendererConfiguration> |
82 renderer_configuration_binding_; | 82 renderer_configuration_bindings_; |
83 | 83 |
84 base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_; | 84 base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver); | 86 DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver); |
87 }; | 87 }; |
88 | 88 |
89 #endif // CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ | 89 #endif // CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ |
OLD | NEW |