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 ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ |
7 | 7 |
8 #include "content/public/common/content_client.h" | 8 #include "content/public/common/content_client.h" |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class AwContentClient : public content::ContentClient { | 23 class AwContentClient : public content::ContentClient { |
24 public: | 24 public: |
25 // ContentClient implementation. | 25 // ContentClient implementation. |
26 std::string GetProduct() const override; | 26 std::string GetProduct() const override; |
27 std::string GetUserAgent() const override; | 27 std::string GetUserAgent() const override; |
28 base::string16 GetLocalizedString(int message_id) const override; | 28 base::string16 GetLocalizedString(int message_id) const override; |
29 base::StringPiece GetDataResource( | 29 base::StringPiece GetDataResource( |
30 int resource_id, | 30 int resource_id, |
31 ui::ScaleFactor scale_factor) const override; | 31 ui::ScaleFactor scale_factor) const override; |
32 bool CanSendWhileSwappedOut(const IPC::Message* message) override; | 32 bool CanSendWhileSwappedOut(const IPC::Message* message) override; |
| 33 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
| 34 bool UsingSynchronousCompositing() override; |
33 | 35 |
34 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | |
35 const std::string& gpu_fingerprint() const { return gpu_fingerprint_; } | 36 const std::string& gpu_fingerprint() const { return gpu_fingerprint_; } |
36 | 37 |
37 private: | 38 private: |
38 std::string gpu_fingerprint_; | 39 std::string gpu_fingerprint_; |
39 }; | 40 }; |
40 | 41 |
41 } // namespace android_webview | 42 } // namespace android_webview |
42 | 43 |
43 #endif // ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ | 44 #endif // ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ |
OLD | NEW |