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

Side by Side Diff: webkit/tools/test_shell/test_shell_webkit_init.h

Issue 594036: Support sending a sliced file in chromium.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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/tools/test_shell/simple_resource_loader_bridge.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
7 7
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 const WebKit::WebString& vfs_file_name) { 145 const WebKit::WebString& vfs_file_name) {
146 return SimpleDatabaseSystem::GetInstance()->GetFileSize(vfs_file_name); 146 return SimpleDatabaseSystem::GetInstance()->GetFileSize(vfs_file_name);
147 } 147 }
148 148
149 virtual bool getFileSize(const WebKit::WebString& path, long long& result) { 149 virtual bool getFileSize(const WebKit::WebString& path, long long& result) {
150 return file_util::GetFileSize( 150 return file_util::GetFileSize(
151 webkit_glue::WebStringToFilePath(path), 151 webkit_glue::WebStringToFilePath(path),
152 reinterpret_cast<int64*>(&result)); 152 reinterpret_cast<int64*>(&result));
153 } 153 }
154 154
155 virtual bool getFileModificationTime(const WebKit::WebString& path,
156 double& result) {
157 file_util::FileInfo info;
158 if (!file_util::GetFileInfo(webkit_glue::WebStringToFilePath(path), &info))
159 return false;
160 result = info.last_modified.ToDoubleT();
161 return true;
162 }
163
155 virtual unsigned long long visitedLinkHash(const char* canonicalURL, 164 virtual unsigned long long visitedLinkHash(const char* canonicalURL,
156 size_t length) { 165 size_t length) {
157 return 0; 166 return 0;
158 } 167 }
159 168
160 virtual bool isLinkVisited(unsigned long long linkHash) { 169 virtual bool isLinkVisited(unsigned long long linkHash) {
161 return false; 170 return false;
162 } 171 }
163 172
164 virtual WebKit::WebMessagePortChannel* createMessagePortChannel() { 173 virtual WebKit::WebMessagePortChannel* createMessagePortChannel() {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 SimpleAppCacheSystem appcache_system_; 241 SimpleAppCacheSystem appcache_system_;
233 SimpleDatabaseSystem database_system_; 242 SimpleDatabaseSystem database_system_;
234 SimpleWebCookieJarImpl cookie_jar_; 243 SimpleWebCookieJarImpl cookie_jar_;
235 244
236 #if defined(OS_WIN) 245 #if defined(OS_WIN)
237 WebKit::WebThemeEngine* active_theme_engine_; 246 WebKit::WebThemeEngine* active_theme_engine_;
238 #endif 247 #endif
239 }; 248 };
240 249
241 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 250 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/simple_resource_loader_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698