OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_WEBKIT_GLUE_H_ | 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ |
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ | 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 std::vector<string16>* filenames); | 207 std::vector<string16>* filenames); |
208 | 208 |
209 // Embedders implement this function to return the list of plugins to Webkit. | 209 // Embedders implement this function to return the list of plugins to Webkit. |
210 void GetPlugins(bool refresh, | 210 void GetPlugins(bool refresh, |
211 std::vector<webkit::WebPluginInfo>* plugins); | 211 std::vector<webkit::WebPluginInfo>* plugins); |
212 | 212 |
213 // Returns true if the protocol implemented to serve |url| supports features | 213 // Returns true if the protocol implemented to serve |url| supports features |
214 // required by the media engine. | 214 // required by the media engine. |
215 bool IsProtocolSupportedForMedia(const GURL& url); | 215 bool IsProtocolSupportedForMedia(const GURL& url); |
216 | 216 |
217 // Resolves the proxies for the url, returns true on success. | |
218 bool FindProxyForUrl(const GURL& url, std::string* proxy_list); | |
219 | |
220 // Returns the locale that this instance of webkit is running as. This is of | 217 // Returns the locale that this instance of webkit is running as. This is of |
221 // the form language-country (e.g., en-US or pt-BR). | 218 // the form language-country (e.g., en-US or pt-BR). |
222 std::string GetWebKitLocale(); | 219 std::string GetWebKitLocale(); |
223 | 220 |
224 // Close current connections. Used for debugging. | 221 // Close current connections. Used for debugging. |
225 void CloseCurrentConnections(); | 222 void CloseCurrentConnections(); |
226 | 223 |
227 // Enable or disable the disk cache. Used for debugging. | 224 // Enable or disable the disk cache. Used for debugging. |
228 void SetCacheMode(bool enabled); | 225 void SetCacheMode(bool enabled); |
229 | 226 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 261 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
265 size_t* output_length); | 262 size_t* output_length); |
266 #endif | 263 #endif |
267 | 264 |
268 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 265 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
269 | 266 |
270 | 267 |
271 } // namespace webkit_glue | 268 } // namespace webkit_glue |
272 | 269 |
273 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 270 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |