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 "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" | 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; | |
20 struct ContentSettings; | |
21 | |
22 namespace content { | 19 namespace content { |
23 class ResourceDispatcherDelegate; | 20 class ResourceDispatcherDelegate; |
24 } | 21 } |
25 | 22 |
26 namespace visitedlink { | 23 namespace visitedlink { |
27 class VisitedLinkSlave; | 24 class VisitedLinkSlave; |
28 } | 25 } |
29 | 26 |
30 // This class filters the incoming control messages (i.e. ones not destined for | 27 // This class filters the incoming control messages (i.e. ones not destined for |
31 // a RenderView) for Chrome specific messages that the content layer doesn't | 28 // a RenderView) for Chrome specific messages that the content layer doesn't |
(...skipping 18 matching lines...) Expand all Loading... | |
50 private: | 47 private: |
51 // content::RenderThreadObserver: | 48 // content::RenderThreadObserver: |
52 bool OnControlMessageReceived(const IPC::Message& message) override; | 49 bool OnControlMessageReceived(const IPC::Message& message) override; |
53 void OnRenderProcessShutdown() override; | 50 void OnRenderProcessShutdown() override; |
54 | 51 |
55 // base::FieldTrialList::Observer: | 52 // base::FieldTrialList::Observer: |
56 void OnFieldTrialGroupFinalized(const std::string& trial_name, | 53 void OnFieldTrialGroupFinalized(const std::string& trial_name, |
57 const std::string& group_name) override; | 54 const std::string& group_name) override; |
58 | 55 |
59 void OnSetIsIncognitoProcess(bool is_incognito_process); | 56 void OnSetIsIncognitoProcess(bool is_incognito_process); |
60 void OnSetContentSettingsForCurrentURL( | |
sky
2016/12/09 00:22:04
Something tells me this is from your other patch.
nigeltao1
2016/12/09 05:03:08
It's not. The CQ dry run failures were from someth
| |
61 const GURL& url, const ContentSettings& content_settings); | |
62 void OnSetContentSettingRules(const RendererContentSettingRules& rules); | 57 void OnSetContentSettingRules(const RendererContentSettingRules& rules); |
63 void OnGetCacheResourceStats(); | |
64 void OnSetFieldTrialGroup(const std::string& trial_name, | 58 void OnSetFieldTrialGroup(const std::string& trial_name, |
65 const std::string& group_name); | 59 const std::string& group_name); |
66 | 60 |
67 static bool is_incognito_process_; | 61 static bool is_incognito_process_; |
68 std::unique_ptr<content::ResourceDispatcherDelegate> resource_delegate_; | 62 std::unique_ptr<content::ResourceDispatcherDelegate> resource_delegate_; |
69 RendererContentSettingRules content_setting_rules_; | 63 RendererContentSettingRules content_setting_rules_; |
70 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; | 64 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; |
71 | 65 |
72 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 66 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
73 | 67 |
74 base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_; | 68 base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_; |
75 | 69 |
76 DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver); | 70 DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver); |
77 }; | 71 }; |
78 | 72 |
79 #endif // CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ | 73 #endif // CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ |
OLD | NEW |