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
3 // found in the LICENSE file.
4 
5 #ifndef CONTENT_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_
6 #define CONTENT_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_
7 
8 #include <string>
9 #include <vector>
10 
11 #include "base/compiler_specific.h"
12 #include "content/public/common/content_client.h"
13 #include "content/shell/common/shell_origin_trial_policy.h"
14 
15 namespace content {
16 
17 class ShellContentClient : public ContentClient {
18  public:
19   ShellContentClient();
20   ~ShellContentClient() override;
21 
22   base::string16 GetLocalizedString(int message_id) override;
23   base::StringPiece GetDataResource(int resource_id,
24                                     ui::ScaleFactor scale_factor) override;
25   base::RefCountedMemory* GetDataResourceBytes(int resource_id) override;
26   gfx::Image& GetNativeImageNamed(int resource_id) override;
27   blink::OriginTrialPolicy* GetOriginTrialPolicy() override;
28   void AddAdditionalSchemes(Schemes* schemes) override;
29 
30  private:
31   ShellOriginTrialPolicy origin_trial_policy_;
32 };
33 
34 }  // namespace content
35 
36 #endif  // CONTENT_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_
37