Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: webkit/api/src/ChromiumBridge.cpp

Issue 131082: Add getFileSize support to chromium... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/api/public/WebKitClient.h ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/api/public/WebKitClient.h ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698