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 CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual base::RefCountedStaticMemory* GetDataResourceBytes( | 118 virtual base::RefCountedStaticMemory* GetDataResourceBytes( |
119 int resource_id) const; | 119 int resource_id) const; |
120 | 120 |
121 // Returns a native image given its id. | 121 // Returns a native image given its id. |
122 virtual gfx::Image& GetNativeImageNamed(int resource_id) const; | 122 virtual gfx::Image& GetNativeImageNamed(int resource_id) const; |
123 | 123 |
124 // Called by content::GetProcessTypeNameInEnglish for process types that it | 124 // Called by content::GetProcessTypeNameInEnglish for process types that it |
125 // doesn't know about because they're from the embedder. | 125 // doesn't know about because they're from the embedder. |
126 virtual std::string GetProcessTypeNameInEnglish(int type); | 126 virtual std::string GetProcessTypeNameInEnglish(int type); |
127 | 127 |
128 #if defined(OS_MACOSX) && !defined(OS_IOS) | 128 #if defined(OS_MACOSX) |
129 // Allows the embedder to define a new |sandbox_type| by mapping it to the | 129 // Allows the embedder to define a new |sandbox_type| by mapping it to the |
130 // resource ID corresponding to the sandbox profile to use. The legal values | 130 // resource ID corresponding to the sandbox profile to use. The legal values |
131 // for |sandbox_type| are defined by the embedder and should start with | 131 // for |sandbox_type| are defined by the embedder and should start with |
132 // SandboxType::SANDBOX_TYPE_AFTER_LAST_TYPE. Returns false if no sandbox | 132 // SandboxType::SANDBOX_TYPE_AFTER_LAST_TYPE. Returns false if no sandbox |
133 // profile for the given |sandbox_type| exists. Otherwise, | 133 // profile for the given |sandbox_type| exists. Otherwise, |
134 // |sandbox_profile_resource_id| is set to the resource ID corresponding to | 134 // |sandbox_profile_resource_id| is set to the resource ID corresponding to |
135 // the sandbox profile to use and true is returned. | 135 // the sandbox profile to use and true is returned. |
136 virtual bool GetSandboxProfileForSandboxType( | 136 virtual bool GetSandboxProfileForSandboxType( |
137 int sandbox_type, | 137 int sandbox_type, |
138 int* sandbox_profile_resource_id) const; | 138 int* sandbox_profile_resource_id) const; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 ContentPluginClient* plugin_; | 172 ContentPluginClient* plugin_; |
173 // The embedder API for participating in renderer logic. | 173 // The embedder API for participating in renderer logic. |
174 ContentRendererClient* renderer_; | 174 ContentRendererClient* renderer_; |
175 // The embedder API for participating in utility logic. | 175 // The embedder API for participating in utility logic. |
176 ContentUtilityClient* utility_; | 176 ContentUtilityClient* utility_; |
177 }; | 177 }; |
178 | 178 |
179 } // namespace content | 179 } // namespace content |
180 | 180 |
181 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 181 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |