OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_ | 5 #ifndef BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_ |
6 #define BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_ | 6 #define BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
11 | 11 |
12 namespace blimp { | 12 namespace blimp { |
13 namespace engine { | 13 namespace engine { |
14 | 14 |
15 std::string GetBlimpEngineUserAgent(); | 15 std::string GetBlimpEngineUserAgent(); |
16 | 16 |
17 class BlimpContentClient : public content::ContentClient { | 17 class BlimpContentClient : public content::ContentClient { |
18 public: | 18 public: |
19 ~BlimpContentClient() override; | 19 ~BlimpContentClient() override; |
20 | 20 |
21 // content::ContentClient implementation. | 21 // content::ContentClient implementation. |
22 std::string GetUserAgent() const override; | 22 std::string GetUserAgent() const override; |
23 base::string16 GetLocalizedString(int message_id) const override; | 23 base::string16 GetLocalizedString(int message_id) const override; |
| 24 base::string16 GetLocalizedStringF( |
| 25 int message_id, |
| 26 const base::string16& string0) const override; |
24 base::StringPiece GetDataResource( | 27 base::StringPiece GetDataResource( |
25 int resource_id, | 28 int resource_id, |
26 ui::ScaleFactor scale_factor) const override; | 29 ui::ScaleFactor scale_factor) const override; |
27 base::RefCountedStaticMemory* GetDataResourceBytes( | 30 base::RefCountedStaticMemory* GetDataResourceBytes( |
28 int resource_id) const override; | 31 int resource_id) const override; |
29 gfx::Image& GetNativeImageNamed(int resource_id) const override; | 32 gfx::Image& GetNativeImageNamed(int resource_id) const override; |
30 }; | 33 }; |
31 | 34 |
32 } // namespace engine | 35 } // namespace engine |
33 } // namespace blimp | 36 } // namespace blimp |
34 | 37 |
35 #endif // BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_ | 38 #endif // BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_ |
OLD | NEW |