OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/common/handle_enumerator_win.h" | 5 #include "content/common/handle_enumerator_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/process.h" | 12 #include "base/process.h" |
13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "content/public/common/result_codes.h" | 17 #include "content/public/common/result_codes.h" |
18 #include "sandbox/win/src/handle_table.h" | 18 #include "sandbox/win/src/handle_table.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 namespace { | 21 namespace { |
22 | 22 |
23 typedef std::map<const string16, HandleType> HandleTypeMap; | 23 typedef std::map<const string16, HandleType> HandleTypeMap; |
24 | 24 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 if (access & FILE_MAP_READ) | 314 if (access & FILE_MAP_READ) |
315 output.append(ASCIIToUTF16("\tFILE_MAP_READ\n")); | 315 output.append(ASCIIToUTF16("\tFILE_MAP_READ\n")); |
316 if (access & FILE_MAP_WRITE) | 316 if (access & FILE_MAP_WRITE) |
317 output.append(ASCIIToUTF16("\tFILE_MAP_WRITE\n")); | 317 output.append(ASCIIToUTF16("\tFILE_MAP_WRITE\n")); |
318 break; | 318 break; |
319 } | 319 } |
320 return output; | 320 return output; |
321 } | 321 } |
322 | 322 |
323 } // namespace content | 323 } // namespace content |
OLD | NEW |