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 CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 5 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void SetActiveURL(const GURL& url) override; | 58 void SetActiveURL(const GURL& url) override; |
59 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | 59 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
60 void AddPepperPlugins( | 60 void AddPepperPlugins( |
61 std::vector<content::PepperPluginInfo>* plugins) override; | 61 std::vector<content::PepperPluginInfo>* plugins) override; |
62 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, | 62 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, |
63 std::vector<std::string>* saveable_shemes) override; | 63 std::vector<std::string>* saveable_shemes) override; |
64 bool CanSendWhileSwappedOut(const IPC::Message* message) override; | 64 bool CanSendWhileSwappedOut(const IPC::Message* message) override; |
65 std::string GetProduct() const override; | 65 std::string GetProduct() const override; |
66 std::string GetUserAgent() const override; | 66 std::string GetUserAgent() const override; |
67 base::string16 GetLocalizedString(int message_id) const override; | 67 base::string16 GetLocalizedString(int message_id) const override; |
| 68 base::string16 GetLocalizedStringF( |
| 69 int message_id, |
| 70 const base::string16& string0) const override; |
68 base::StringPiece GetDataResource( | 71 base::StringPiece GetDataResource( |
69 int resource_id, | 72 int resource_id, |
70 ui::ScaleFactor scale_factor) const override; | 73 ui::ScaleFactor scale_factor) const override; |
71 base::RefCountedStaticMemory* GetDataResourceBytes( | 74 base::RefCountedStaticMemory* GetDataResourceBytes( |
72 int resource_id) const override; | 75 int resource_id) const override; |
73 gfx::Image& GetNativeImageNamed(int resource_id) const override; | 76 gfx::Image& GetNativeImageNamed(int resource_id) const override; |
74 std::string GetProcessTypeNameInEnglish(int type) override; | 77 std::string GetProcessTypeNameInEnglish(int type) override; |
75 | 78 |
76 #if defined(OS_MACOSX) && !defined(OS_IOS) | 79 #if defined(OS_MACOSX) && !defined(OS_IOS) |
77 bool GetSandboxProfileForSandboxType( | 80 bool GetSandboxProfileForSandboxType( |
78 int sandbox_type, | 81 int sandbox_type, |
79 int* sandbox_profile_resource_id) const override; | 82 int* sandbox_profile_resource_id) const override; |
80 #endif | 83 #endif |
81 | 84 |
82 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, | 85 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, |
83 std::set<GURL>* origins) override; | 86 std::set<GURL>* origins) override; |
84 | 87 |
85 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; | 88 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; |
86 | 89 |
87 bool IsSupplementarySiteIsolationModeEnabled() override; | 90 bool IsSupplementarySiteIsolationModeEnabled() override; |
88 }; | 91 }; |
89 | 92 |
90 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 93 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
OLD | NEW |