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

Side by Side Diff: chrome/gpu/chrome_content_gpu_client.h

Issue 2755813002: Begin to wean child processes off reliance on a persistent service_manager::Connection to the brows… (Closed)
Patch Set: . Created 3 years, 9 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
« no previous file with comments | « chrome/app/chrome_main.cc ('k') | chrome/gpu/chrome_content_gpu_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GPU_CHROME_CONTENT_GPU_CLIENT_H_ 5 #ifndef CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_
6 #define CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_ 6 #define CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/profiler/stack_sampling_profiler.h" 11 #include "base/profiler/stack_sampling_profiler.h"
12 #include "components/variations/child_process_field_trial_syncer.h" 12 #include "components/variations/child_process_field_trial_syncer.h"
13 #include "content/public/gpu/content_gpu_client.h" 13 #include "content/public/gpu/content_gpu_client.h"
14 14
15 class ChromeContentGpuClient : public content::ContentGpuClient { 15 class ChromeContentGpuClient : public content::ContentGpuClient {
16 public: 16 public:
17 ChromeContentGpuClient(); 17 ChromeContentGpuClient();
18 ~ChromeContentGpuClient() override; 18 ~ChromeContentGpuClient() override;
19 19
20 // content::ContentGpuClient: 20 // content::ContentGpuClient:
21 void Initialize(base::FieldTrialList::Observer* observer) override; 21 void Initialize(base::FieldTrialList::Observer* observer) override;
22 void ExposeInterfacesToBrowser( 22 void ExposeInterfacesToBrowser(
23 service_manager::InterfaceRegistry* registry, 23 service_manager::InterfaceRegistry* registry,
24 const gpu::GpuPreferences& gpu_preferences) override; 24 const gpu::GpuPreferences& gpu_preferences) override;
25 void ConsumeInterfacesFromBrowser( 25 void ConsumeInterfacesFromBrowser(
26 service_manager::InterfaceProvider* provider) override; 26 service_manager::Connector* connector) override;
27 27
28 private: 28 private:
29 std::unique_ptr<variations::ChildProcessFieldTrialSyncer> field_trial_syncer_; 29 std::unique_ptr<variations::ChildProcessFieldTrialSyncer> field_trial_syncer_;
30 // Used to profile process startup. 30 // Used to profile process startup.
31 base::StackSamplingProfiler stack_sampling_profiler_; 31 base::StackSamplingProfiler stack_sampling_profiler_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(ChromeContentGpuClient); 33 DISALLOW_COPY_AND_ASSIGN(ChromeContentGpuClient);
34 }; 34 };
35 35
36 #endif // CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_ 36 #endif // CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/app/chrome_main.cc ('k') | chrome/gpu/chrome_content_gpu_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698