| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Returns the user agent to use for the given URL, which is usually the | 77 // Returns the user agent to use for the given URL, which is usually the |
| 78 // default user agent but may be overriden by a call to SetUserAgent() (which | 78 // default user agent but may be overriden by a call to SetUserAgent() (which |
| 79 // should be done at startup). | 79 // should be done at startup). |
| 80 const std::string& GetUserAgent(const GURL& url); | 80 const std::string& GetUserAgent(const GURL& url); |
| 81 | 81 |
| 82 // Creates serialized state for the specified URL. This is a variant of | 82 // Creates serialized state for the specified URL. This is a variant of |
| 83 // HistoryItemToString (in glue_serialize) that is used during session restore | 83 // HistoryItemToString (in glue_serialize) that is used during session restore |
| 84 // if the saved state is empty. | 84 // if the saved state is empty. |
| 85 std::string CreateHistoryStateForURL(const GURL& url); | 85 std::string CreateHistoryStateForURL(const GURL& url); |
| 86 | 86 |
| 87 // Removes any form data state from the history state string |content_state|. |
| 88 std::string RemoveFormDataFromHistoryState(const std::string& content_state); |
| 89 |
| 87 #ifndef NDEBUG | 90 #ifndef NDEBUG |
| 88 // Checks various important objects to see if there are any in memory, and | 91 // Checks various important objects to see if there are any in memory, and |
| 89 // calls AppendToLog with any leaked objects. Designed to be called on shutdown | 92 // calls AppendToLog with any leaked objects. Designed to be called on shutdown |
| 90 void CheckForLeaks(); | 93 void CheckForLeaks(); |
| 91 #endif | 94 #endif |
| 92 | 95 |
| 93 // Decodes the image from the data in |image_data| into |image|. | 96 // Decodes the image from the data in |image_data| into |image|. |
| 94 // Returns false if the image could not be decoded. | 97 // Returns false if the image could not be decoded. |
| 95 bool DecodeImage(const std::string& image_data, SkBitmap* image); | 98 bool DecodeImage(const std::string& image_data, SkBitmap* image); |
| 96 | 99 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Returns the locale that this instance of webkit is running as. This is of | 214 // Returns the locale that this instance of webkit is running as. This is of |
| 212 // the form language-country (e.g., en-US or pt-BR). | 215 // the form language-country (e.g., en-US or pt-BR). |
| 213 std::wstring GetWebKitLocale(); | 216 std::wstring GetWebKitLocale(); |
| 214 | 217 |
| 215 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 218 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
| 216 | 219 |
| 217 | 220 |
| 218 } // namespace webkit_glue | 221 } // namespace webkit_glue |
| 219 | 222 |
| 220 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 223 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |