OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 namespace net { | 28 namespace net { |
29 class URLRequest; | 29 class URLRequest; |
30 } | 30 } |
31 | 31 |
32 namespace skia { | 32 namespace skia { |
33 class PlatformCanvas; | 33 class PlatformCanvas; |
34 } | 34 } |
35 | 35 |
36 namespace WebKit { | 36 namespace WebKit { |
| 37 struct WebFileInfo; |
37 class WebFrame; | 38 class WebFrame; |
38 class WebString; | 39 class WebString; |
39 } | 40 } |
40 | 41 |
41 namespace webkit_glue { | 42 namespace webkit_glue { |
42 | 43 |
43 WEBKIT_GLUE_EXPORT void SetJavaScriptFlags(const std::string& flags); | 44 WEBKIT_GLUE_EXPORT void SetJavaScriptFlags(const std::string& flags); |
44 | 45 |
45 // Turn on logging for flags in the provided comma delimited list. | 46 // Turn on logging for flags in the provided comma delimited list. |
46 WEBKIT_GLUE_EXPORT void EnableWebCoreLogChannels(const std::string& channels); | 47 WEBKIT_GLUE_EXPORT void EnableWebCoreLogChannels(const std::string& channels); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 WEBKIT_GLUE_EXPORT WebKit::WebString FilePathStringToWebString( | 138 WEBKIT_GLUE_EXPORT WebKit::WebString FilePathStringToWebString( |
138 const FilePath::StringType& str); | 139 const FilePath::StringType& str); |
139 WEBKIT_GLUE_EXPORT FilePath WebStringToFilePath(const WebKit::WebString& str); | 140 WEBKIT_GLUE_EXPORT FilePath WebStringToFilePath(const WebKit::WebString& str); |
140 WEBKIT_GLUE_EXPORT WebKit::WebString FilePathToWebString( | 141 WEBKIT_GLUE_EXPORT WebKit::WebString FilePathToWebString( |
141 const FilePath& file_path); | 142 const FilePath& file_path); |
142 | 143 |
143 // File error conversion | 144 // File error conversion |
144 WEBKIT_GLUE_EXPORT WebKit::WebFileError PlatformFileErrorToWebFileError( | 145 WEBKIT_GLUE_EXPORT WebKit::WebFileError PlatformFileErrorToWebFileError( |
145 base::PlatformFileError error_code); | 146 base::PlatformFileError error_code); |
146 | 147 |
| 148 // File info conversion |
| 149 WEBKIT_GLUE_EXPORT void PlatformFileInfoToWebFileInfo( |
| 150 const base::PlatformFileInfo& file_info, |
| 151 WebKit::WebFileInfo* web_file_info); |
| 152 |
147 // Returns a WebCanvas pointer associated with the given Skia canvas. | 153 // Returns a WebCanvas pointer associated with the given Skia canvas. |
148 WEBKIT_GLUE_EXPORT WebKit::WebCanvas* ToWebCanvas(skia::PlatformCanvas*); | 154 WEBKIT_GLUE_EXPORT WebKit::WebCanvas* ToWebCanvas(skia::PlatformCanvas*); |
149 | 155 |
150 // Returns the number of currently-active glyph pages this process is using. | 156 // Returns the number of currently-active glyph pages this process is using. |
151 // There can be many such pages (maps of 256 character -> glyph) so this is | 157 // There can be many such pages (maps of 256 character -> glyph) so this is |
152 // used to get memory usage statistics. | 158 // used to get memory usage statistics. |
153 WEBKIT_GLUE_EXPORT int GetGlyphPageCount(); | 159 WEBKIT_GLUE_EXPORT int GetGlyphPageCount(); |
154 | 160 |
155 // Returns WebKit Web Inspector protocol version. | 161 // Returns WebKit Web Inspector protocol version. |
156 std::string GetInspectorProtocolVersion(); | 162 std::string GetInspectorProtocolVersion(); |
157 | 163 |
158 // Tells caller whether the given protocol version is supported by the. | 164 // Tells caller whether the given protocol version is supported by the. |
159 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( | 165 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( |
160 const std::string& version); | 166 const std::string& version); |
161 | 167 |
162 // Configures the URLRequest according to the referrer policy. | 168 // Configures the URLRequest according to the referrer policy. |
163 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( | 169 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( |
164 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); | 170 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); |
165 | 171 |
166 } // namespace webkit_glue | 172 } // namespace webkit_glue |
167 | 173 |
168 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 174 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |