OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 251 |
252 #if defined(OS_WIN) | 252 #if defined(OS_WIN) |
253 // Downloads the file specified by the URL. On sucess a WM_COPYDATA message | 253 // Downloads the file specified by the URL. On sucess a WM_COPYDATA message |
254 // will be sent to the caller_window. | 254 // will be sent to the caller_window. |
255 bool DownloadUrl(const std::string& url, HWND caller_window); | 255 bool DownloadUrl(const std::string& url, HWND caller_window); |
256 #endif | 256 #endif |
257 | 257 |
258 // Returns the plugin finder URL. | 258 // Returns the plugin finder URL. |
259 bool GetPluginFinderURL(std::string* plugin_finder_url); | 259 bool GetPluginFinderURL(std::string* plugin_finder_url); |
260 | 260 |
| 261 // Resolves the proxies for the url, returns true on success. |
| 262 bool FindProxyForUrl(const GURL& url, std::string* proxy_list); |
| 263 |
261 // Returns the locale that this instance of webkit is running as. This is of | 264 // Returns the locale that this instance of webkit is running as. This is of |
262 // the form language-country (e.g., en-US or pt-BR). | 265 // the form language-country (e.g., en-US or pt-BR). |
263 std::wstring GetWebKitLocale(); | 266 std::wstring GetWebKitLocale(); |
264 | 267 |
265 // Notifies the browser that the current page runs out of JS memory. | 268 // Notifies the browser that the current page runs out of JS memory. |
266 void NotifyJSOutOfMemory(WebCore::Frame* frame); | 269 void NotifyJSOutOfMemory(WebCore::Frame* frame); |
267 | 270 |
268 // Tells the plugin thread to terminate the process forcefully instead of | 271 // Tells the plugin thread to terminate the process forcefully instead of |
269 // exiting cleanly. | 272 // exiting cleanly. |
270 void SetForcefullyTerminatePluginProcess(bool value); | 273 void SetForcefullyTerminatePluginProcess(bool value); |
271 | 274 |
272 // Returns true if the plugin thread should terminate the process forcefully | 275 // Returns true if the plugin thread should terminate the process forcefully |
273 // instead of exiting cleanly. | 276 // instead of exiting cleanly. |
274 bool ShouldForcefullyTerminatePluginProcess(); | 277 bool ShouldForcefullyTerminatePluginProcess(); |
275 | 278 |
276 // Returns the hash for the given canonicalized URL for use in visited link | 279 // Returns the hash for the given canonicalized URL for use in visited link |
277 // coloring. | 280 // coloring. |
278 uint64 VisitedLinkHash(const char* canonical_url, size_t length); | 281 uint64 VisitedLinkHash(const char* canonical_url, size_t length); |
279 | 282 |
280 // Returns whether the given link hash is in the user's history. The hash must | 283 // Returns whether the given link hash is in the user's history. The hash must |
281 // have been generated by calling VisitedLinkHash(). | 284 // have been generated by calling VisitedLinkHash(). |
282 bool IsLinkVisited(uint64 link_hash); | 285 bool IsLinkVisited(uint64 link_hash); |
283 | 286 |
284 } // namespace webkit_glue | 287 } // namespace webkit_glue |
285 | 288 |
286 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 289 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |