Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / chrome / common / chrome_content_client.h
blobe9d3ed05989d5029c501ca8ede982a06b91bf1bf
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.
5 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
8 #include <string>
9 #include <vector>
11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h"
13 #include "content/public/common/content_client.h"
15 // Returns the user agent of Chrome.
16 std::string GetUserAgent();
18 class ChromeContentClient : public content::ContentClient {
19 public:
20 static const char* const kPDFPluginName;
21 static const char* const kRemotingViewerPluginPath;
23 void SetActiveURL(const GURL& url) override;
24 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override;
25 void AddPepperPlugins(
26 std::vector<content::PepperPluginInfo>* plugins) override;
27 void AddAdditionalSchemes(std::vector<std::string>* standard_schemes,
28 std::vector<std::string>* saveable_shemes) override;
29 std::string GetProduct() const override;
30 std::string GetUserAgent() const override;
31 base::string16 GetLocalizedString(int message_id) const override;
32 base::StringPiece GetDataResource(
33 int resource_id,
34 ui::ScaleFactor scale_factor) const override;
35 base::RefCountedStaticMemory* GetDataResourceBytes(
36 int resource_id) const override;
37 gfx::Image& GetNativeImageNamed(int resource_id) const override;
38 std::string GetProcessTypeNameInEnglish(int type) override;
40 #if defined(OS_MACOSX) && !defined(OS_IOS)
41 bool GetSandboxProfileForSandboxType(
42 int sandbox_type,
43 int* sandbox_profile_resource_id) const override;
44 #endif
47 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_