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

Side by Side Diff: chrome/renderer/chrome_render_thread_observer.h

Issue 2642263002: Convert ChromeViewMsg_SetFieldTrialGroup to use mojo. (Closed)
Patch Set: Convert ChromeViewMsg_SetFieldTrialGroup to use mojo. Created 3 years, 10 months 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 #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
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 visitedlink::VisitedLinkSlave* visited_link_slave() { 46 visitedlink::VisitedLinkSlave* visited_link_slave() {
47 return visited_link_slave_.get(); 47 return visited_link_slave_.get();
48 } 48 }
49 49
50 private: 50 private:
51 // content::RenderThreadObserver: 51 // content::RenderThreadObserver:
52 void RegisterMojoInterfaces( 52 void RegisterMojoInterfaces(
53 content::AssociatedInterfaceRegistry* associated_interfaces) override; 53 content::AssociatedInterfaceRegistry* associated_interfaces) override;
54 void UnregisterMojoInterfaces( 54 void UnregisterMojoInterfaces(
55 content::AssociatedInterfaceRegistry* associated_interfaces) override; 55 content::AssociatedInterfaceRegistry* associated_interfaces) override;
56 bool OnControlMessageReceived(const IPC::Message& message) override;
57 void OnRenderProcessShutdown() override; 56 void OnRenderProcessShutdown() override;
58 57
59 // base::FieldTrialList::Observer: 58 // base::FieldTrialList::Observer:
60 void OnFieldTrialGroupFinalized(const std::string& trial_name, 59 void OnFieldTrialGroupFinalized(const std::string& trial_name,
61 const std::string& group_name) override; 60 const std::string& group_name) override;
62 61
63 // chrome::mojom::RendererConfiguration: 62 // chrome::mojom::RendererConfiguration:
64 void SetInitialConfiguration(bool is_incognito_process) override; 63 void SetInitialConfiguration(bool is_incognito_process) override;
65 void SetContentSettingRules( 64 void SetContentSettingRules(
66 const RendererContentSettingRules& rules) override; 65 const RendererContentSettingRules& rules) override;
66 void SetFieldTrialGroup(const std::string& trial_name,
67 const std::string& group_name) override;
67 68
68 void OnRendererConfigurationAssociatedRequest( 69 void OnRendererConfigurationAssociatedRequest(
69 chrome::mojom::RendererConfigurationAssociatedRequest request); 70 chrome::mojom::RendererConfigurationAssociatedRequest request);
70 71
71 void OnSetFieldTrialGroup(const std::string& trial_name,
72 const std::string& group_name);
73
74 static bool is_incognito_process_; 72 static bool is_incognito_process_;
75 std::unique_ptr<content::ResourceDispatcherDelegate> resource_delegate_; 73 std::unique_ptr<content::ResourceDispatcherDelegate> resource_delegate_;
76 RendererContentSettingRules content_setting_rules_; 74 RendererContentSettingRules content_setting_rules_;
77 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; 75 variations::ChildProcessFieldTrialSyncer field_trial_syncer_;
78 76
79 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; 77 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_;
80 78
81 mojo::AssociatedBindingSet<chrome::mojom::RendererConfiguration> 79 mojo::AssociatedBindingSet<chrome::mojom::RendererConfiguration>
82 renderer_configuration_bindings_; 80 renderer_configuration_bindings_;
83 81
84 base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_; 82 base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_;
85 83
86 DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver); 84 DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver);
87 }; 85 };
88 86
89 #endif // CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_ 87 #endif // CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/common/renderer_configuration.mojom ('k') | chrome/renderer/chrome_render_thread_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698