| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // Embedders implement this function to return the list of plugins to Webkit. | 190 // Embedders implement this function to return the list of plugins to Webkit. |
| 191 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); | 191 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); |
| 192 | 192 |
| 193 // Returns true if the plugins run in the same process as the renderer, and | 193 // Returns true if the plugins run in the same process as the renderer, and |
| 194 // false otherwise. | 194 // false otherwise. |
| 195 bool IsPluginRunningInRendererProcess(); | 195 bool IsPluginRunningInRendererProcess(); |
| 196 | 196 |
| 197 // Returns a bool indicating if the Null plugin should be enabled or not. | 197 // Returns a bool indicating if the Null plugin should be enabled or not. |
| 198 bool IsDefaultPluginEnabled(); | 198 bool IsDefaultPluginEnabled(); |
| 199 | 199 |
| 200 // Returns true if the protocol implemented to serve |url| supports features |
| 201 // required by the media engine. |
| 202 bool IsProtocolSupportedForMedia(const GURL& url); |
| 203 |
| 200 #if defined(OS_WIN) | 204 #if defined(OS_WIN) |
| 201 // Downloads the file specified by the URL. On sucess a WM_COPYDATA message | 205 // Downloads the file specified by the URL. On sucess a WM_COPYDATA message |
| 202 // will be sent to the caller_window. | 206 // will be sent to the caller_window. |
| 203 bool DownloadUrl(const std::string& url, HWND caller_window); | 207 bool DownloadUrl(const std::string& url, HWND caller_window); |
| 204 #endif | 208 #endif |
| 205 | 209 |
| 206 // Returns the plugin finder URL. | 210 // Returns the plugin finder URL. |
| 207 bool GetPluginFinderURL(std::string* plugin_finder_url); | 211 bool GetPluginFinderURL(std::string* plugin_finder_url); |
| 208 | 212 |
| 209 // Resolves the proxies for the url, returns true on success. | 213 // Resolves the proxies for the url, returns true on success. |
| 210 bool FindProxyForUrl(const GURL& url, std::string* proxy_list); | 214 bool FindProxyForUrl(const GURL& url, std::string* proxy_list); |
| 211 | 215 |
| 212 // Returns the locale that this instance of webkit is running as. This is of | 216 // Returns the locale that this instance of webkit is running as. This is of |
| 213 // the form language-country (e.g., en-US or pt-BR). | 217 // the form language-country (e.g., en-US or pt-BR). |
| 214 std::wstring GetWebKitLocale(); | 218 std::wstring GetWebKitLocale(); |
| 215 | 219 |
| 216 // Close idle connections. Used for debugging. | 220 // Close idle connections. Used for debugging. |
| 217 void CloseIdleConnections(); | 221 void CloseIdleConnections(); |
| 218 | 222 |
| 219 // Enable or disable the disk cache. Used for debugging. | 223 // Enable or disable the disk cache. Used for debugging. |
| 220 void SetCacheMode(bool enabled); | 224 void SetCacheMode(bool enabled); |
| 221 | 225 |
| 222 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 226 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
| 223 | 227 |
| 224 | 228 |
| 225 } // namespace webkit_glue | 229 } // namespace webkit_glue |
| 226 | 230 |
| 227 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 231 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |