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