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

Unified Diff: webkit/tools/test_shell/test_shell_webkit_init.h

Issue 131082: Add getFileSize support to chromium... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/src/ChromiumBridge.cpp ('k') | webkit/tools/test_shell/test_worker/test_worker_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_webkit_init.h
===================================================================
--- webkit/tools/test_shell/test_shell_webkit_init.h (revision 19855)
+++ webkit/tools/test_shell/test_shell_webkit_init.h (working copy)
@@ -5,6 +5,7 @@
#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
#define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
+#include "base/file_util.h"
#include "base/path_service.h"
#include "base/stats_counters.h"
#include "base/string_util.h"
@@ -96,6 +97,11 @@
virtual void prefetchHostName(const WebKit::WebString&) {
}
+ virtual bool getFileSize(const WebKit::WebString& path, long long& result) {
+ return file_util::GetFileSize(
+ FilePath(webkit_glue::WebStringToFilePathString(path)), &result);
+ }
+
virtual WebKit::WebData loadResource(const char* name) {
if (!strcmp(name, "deleteButton")) {
// Create a red 30x30 square.
« no previous file with comments | « webkit/api/src/ChromiumBridge.cpp ('k') | webkit/tools/test_shell/test_worker/test_worker_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698