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

Unified Diff: webkit/database/vfs_backend.cc

Issue 7044095: Hooking MHTML generation to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 9 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/database/vfs_backend.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/vfs_backend.cc
diff --git a/webkit/database/vfs_backend.cc b/webkit/database/vfs_backend.cc
index e734a7e5701575472cda6a11bbb39922fb1346ed..846f0c32a441539b5cbfeec0c331f34ad0124ee5 100644
--- a/webkit/database/vfs_backend.cc
+++ b/webkit/database/vfs_backend.cc
@@ -14,30 +14,6 @@ namespace webkit_database {
static const int kFileTypeMask = 0x00007F00;
// static
-void VfsBackend::GetFileHandleForProcess(base::ProcessHandle process_handle,
- const base::PlatformFile& file_handle,
- base::PlatformFile* target_handle,
- bool close_source_handle) {
- if (file_handle == base::kInvalidPlatformFileValue) {
- *target_handle = base::kInvalidPlatformFileValue;
- return;
- }
-
-#if defined(OS_WIN)
- // Duplicate the file handle.
- if (!DuplicateHandle(GetCurrentProcess(), file_handle,
- process_handle, target_handle, 0, false,
- DUPLICATE_SAME_ACCESS |
- (close_source_handle ? DUPLICATE_CLOSE_SOURCE : 0))) {
- // file_handle is closed whether or not DuplicateHandle succeeds.
- *target_handle = INVALID_HANDLE_VALUE;
- }
-#elif defined(OS_POSIX)
- *target_handle = file_handle;
-#endif
-}
-
-// static
bool VfsBackend::FileTypeIsMainDB(int desired_flags) {
return (desired_flags & kFileTypeMask) == SQLITE_OPEN_MAIN_DB;
}
« no previous file with comments | « webkit/database/vfs_backend.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698