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