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/field_trial_recorder.mojom.h" |
15 #include "chrome/common/variations/child_process_field_trial_syncer.h" | 16 #include "chrome/common/variations/child_process_field_trial_syncer.h" |
16 #include "components/content_settings/core/common/content_settings.h" | 17 #include "components/content_settings/core/common/content_settings.h" |
17 #include "content/public/renderer/render_thread_observer.h" | 18 #include "content/public/renderer/render_thread_observer.h" |
18 | 19 |
19 class GURL; | 20 class GURL; |
20 struct ContentSettings; | 21 struct ContentSettings; |
21 | 22 |
22 namespace base { | 23 namespace base { |
23 class CommandLine; | 24 class CommandLine; |
24 } | 25 } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void OnSetContentSettingsForCurrentURL( | 69 void OnSetContentSettingsForCurrentURL( |
69 const GURL& url, const ContentSettings& content_settings); | 70 const GURL& url, const ContentSettings& content_settings); |
70 void OnSetContentSettingRules(const RendererContentSettingRules& rules); | 71 void OnSetContentSettingRules(const RendererContentSettingRules& rules); |
71 void OnGetCacheResourceStats(); | 72 void OnGetCacheResourceStats(); |
72 void OnSetFieldTrialGroup(const std::string& trial_name, | 73 void OnSetFieldTrialGroup(const std::string& trial_name, |
73 const std::string& group_name); | 74 const std::string& group_name); |
74 | 75 |
75 static bool is_incognito_process_; | 76 static bool is_incognito_process_; |
76 std::unique_ptr<content::ResourceDispatcherDelegate> resource_delegate_; | 77 std::unique_ptr<content::ResourceDispatcherDelegate> resource_delegate_; |
77 RendererContentSettingRules content_setting_rules_; | 78 RendererContentSettingRules content_setting_rules_; |
| 79 chrome::mojom::FieldTrialRecorderPtr field_trial_recorder_; |
78 chrome_variations::ChildProcessFieldTrialSyncer field_trial_syncer_; | 80 chrome_variations::ChildProcessFieldTrialSyncer field_trial_syncer_; |
79 | 81 |
80 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 82 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
81 | 83 |
82 base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_; | 84 base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_; |
83 | 85 |
84 DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver); | 86 DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver); |
85 }; | 87 }; |
86 | 88 |
87 #endif // CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ | 89 #endif // CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ |
OLD | NEW |