OLD | NEW |
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 "chrome/common/variations/child_process_field_trial_syncer.h" | 11 #include "chrome/common/variations/child_process_field_trial_syncer.h" |
12 #include "content/public/gpu/content_gpu_client.h" | 12 #include "content/public/gpu/content_gpu_client.h" |
13 | 13 |
14 class ChromeContentGpuClient : public content::ContentGpuClient { | 14 class ChromeContentGpuClient : public content::ContentGpuClient { |
15 public: | 15 public: |
16 ChromeContentGpuClient(); | 16 ChromeContentGpuClient(); |
17 ~ChromeContentGpuClient() override; | 17 ~ChromeContentGpuClient() override; |
18 | 18 |
19 // content::ContentGpuClient: | 19 // content::ContentGpuClient: |
20 void Initialize(base::FieldTrialList::Observer* observer) override; | 20 void Initialize(base::FieldTrialList::Observer* observer) override; |
21 void RegisterMojoServices(content::ServiceRegistry* registry) override; | 21 void RegisterMojoInterfaces(shell::InterfaceRegistry* registry) override; |
22 | 22 |
23 private: | 23 private: |
24 std::unique_ptr<chrome_variations::ChildProcessFieldTrialSyncer> | 24 std::unique_ptr<chrome_variations::ChildProcessFieldTrialSyncer> |
25 field_trial_syncer_; | 25 field_trial_syncer_; |
26 | 26 |
27 DISALLOW_COPY_AND_ASSIGN(ChromeContentGpuClient); | 27 DISALLOW_COPY_AND_ASSIGN(ChromeContentGpuClient); |
28 }; | 28 }; |
29 | 29 |
30 #endif // CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_ | 30 #endif // CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_ |
OLD | NEW |