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

Unified Diff: trunk/src/chrome_elf/create_file/chrome_create_file.h

Issue 140783009: Revert 245464 "Use an alternate mechanism for CreateFile calls i..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | « trunk/src/chrome_elf/chrome_redirects.def ('k') | trunk/src/chrome_elf/create_file/chrome_create_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome_elf/create_file/chrome_create_file.h
===================================================================
--- trunk/src/chrome_elf/create_file/chrome_create_file.h (revision 245500)
+++ trunk/src/chrome_elf/create_file/chrome_create_file.h (working copy)
@@ -1,38 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_ELF_CREATE_FILE_CHROME_CREATE_FILE_H_
-#define CHROME_ELF_CREATE_FILE_CHROME_CREATE_FILE_H_
-
-#include <windows.h>
-
-#include "chrome_elf/chrome_elf_types.h"
-
-// A CreateFileW replacement that will call NTCreateFile directly when the
-// criteria defined in ShouldBypass() are satisfied for |lp_file_name|.
-extern "C" HANDLE WINAPI CreateFileWRedirect(
- LPCWSTR file_name,
- DWORD desired_access,
- DWORD share_mode,
- LPSECURITY_ATTRIBUTES security_attributes,
- DWORD creation_disposition,
- DWORD flags_and_attributes,
- HANDLE template_file);
-
-// Partial reimplementation of kernel32!CreateFile (very partial: only handles
-// reading and writing to files in the User Data directory).
-HANDLE CreateFileNTDLL(
- LPCWSTR file_name,
- DWORD desired_access,
- DWORD share_mode,
- LPSECURITY_ATTRIBUTES security_attributes,
- DWORD creation_disposition,
- DWORD flags_and_attributes,
- HANDLE template_file);
-
-// Determines whether or not we should use our version of CreateFile, or the
-// system version (only uses ours if we're writing to the user data directory).
-bool ShouldBypass(LPCWSTR file_name);
-
-#endif // CHROME_ELF_CREATE_FILE_CHROME_CREATE_FILE_H_
« no previous file with comments | « trunk/src/chrome_elf/chrome_redirects.def ('k') | trunk/src/chrome_elf/create_file/chrome_create_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698