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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 // File path string conversions. | 104 // File path string conversions. |
105 FilePath::StringType WebStringToFilePathString(const WebKit::WebString& str); | 105 FilePath::StringType WebStringToFilePathString(const WebKit::WebString& str); |
106 WebKit::WebString FilePathStringToWebString(const FilePath::StringType& str); | 106 WebKit::WebString FilePathStringToWebString(const FilePath::StringType& str); |
107 | 107 |
108 //---- END FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ------------------------------- | 108 //---- END FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ------------------------------- |
109 | 109 |
110 | 110 |
111 //---- BEGIN FUNCTIONS IMPLEMENTED BY EMBEDDER -------------------------------- | 111 //---- BEGIN FUNCTIONS IMPLEMENTED BY EMBEDDER -------------------------------- |
112 | 112 |
113 // Set during RenderProcess::GlobalInit when --enable-video has been passed in | |
114 // and all media related libraries were successfully loaded. | |
115 void SetMediaPlayerAvailable(bool value); | |
116 | |
117 // This function is called from WebCore::MediaPlayerPrivate, | |
118 // Returns true if media player is available and can be created. | |
119 bool IsMediaPlayerAvailable(); | |
120 | |
121 // This function is called to request a prefetch of the entire URL, loading it | 113 // This function is called to request a prefetch of the entire URL, loading it |
122 // into our cache for (expected) future needs. The given URL may NOT be in | 114 // into our cache for (expected) future needs. The given URL may NOT be in |
123 // canonical form and it will NOT be null-terminated; use the length instead. | 115 // canonical form and it will NOT be null-terminated; use the length instead. |
124 void PrecacheUrl(const char16* url, int url_length); | 116 void PrecacheUrl(const char16* url, int url_length); |
125 | 117 |
126 // This function is called to add a line to the application's log file. | 118 // This function is called to add a line to the application's log file. |
127 void AppendToLog(const char* filename, int line, const char* message); | 119 void AppendToLog(const char* filename, int line, const char* message); |
128 | 120 |
129 // Gather usage statistics from the in-memory cache and inform our host, if | 121 // Gather usage statistics from the in-memory cache and inform our host, if |
130 // applicable. | 122 // applicable. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // Returns the locale that this instance of webkit is running as. This is of | 199 // Returns the locale that this instance of webkit is running as. This is of |
208 // the form language-country (e.g., en-US or pt-BR). | 200 // the form language-country (e.g., en-US or pt-BR). |
209 std::wstring GetWebKitLocale(); | 201 std::wstring GetWebKitLocale(); |
210 | 202 |
211 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 203 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
212 | 204 |
213 | 205 |
214 } // namespace webkit_glue | 206 } // namespace webkit_glue |
215 | 207 |
216 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 208 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |