OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 return webKitClient()->cookies(url, firstPartyForCookies); | 141 return webKitClient()->cookies(url, firstPartyForCookies); |
142 } | 142 } |
143 | 143 |
144 // DNS ------------------------------------------------------------------------ | 144 // DNS ------------------------------------------------------------------------ |
145 | 145 |
146 void ChromiumBridge::prefetchDNS(const String& hostname) | 146 void ChromiumBridge::prefetchDNS(const String& hostname) |
147 { | 147 { |
148 webKitClient()->prefetchHostName(hostname); | 148 webKitClient()->prefetchHostName(hostname); |
149 } | 149 } |
150 | 150 |
| 151 // File ------------------------------------------------------------------------ |
| 152 |
| 153 bool ChromiumBridge::getFileSize(const String& path, long long& result) |
| 154 { |
| 155 return webKitClient()->getFileSize(path, result); |
| 156 } |
| 157 |
151 // Font ----------------------------------------------------------------------- | 158 // Font ----------------------------------------------------------------------- |
152 | 159 |
153 #if PLATFORM(WIN_OS) | 160 #if PLATFORM(WIN_OS) |
154 bool ChromiumBridge::ensureFontLoaded(HFONT font) | 161 bool ChromiumBridge::ensureFontLoaded(HFONT font) |
155 { | 162 { |
156 WebSandboxSupport* ss = webKitClient()->sandboxSupport(); | 163 WebSandboxSupport* ss = webKitClient()->sandboxSupport(); |
157 | 164 |
158 // if there is no sandbox, then we can assume the font | 165 // if there is no sandbox, then we can assume the font |
159 // was able to be loaded successfully already | 166 // was able to be loaded successfully already |
160 return ss ? ss->ensureFontLoaded(font) : true; | 167 return ss ? ss->ensureFontLoaded(font) : true; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 414 |
408 return webKitClient()->visitedLinkHash(buffer.data(), buffer.length()); | 415 return webKitClient()->visitedLinkHash(buffer.data(), buffer.length()); |
409 } | 416 } |
410 | 417 |
411 bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash) | 418 bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash) |
412 { | 419 { |
413 return webKitClient()->isLinkVisited(visitedLinkHash); | 420 return webKitClient()->isLinkVisited(visitedLinkHash); |
414 } | 421 } |
415 | 422 |
416 } // namespace WebCore | 423 } // namespace WebCore |
OLD | NEW |