• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // This file ensures that these header files don't include Windows.h and can
6 // compile without including Windows.h. This helps to improve compile times.
7 
8 #include "base/atomicops.h"
9 #include "base/files/file_util.h"
10 #include "base/files/platform_file.h"
11 #include "base/process/process_handle.h"
12 #include "base/synchronization/condition_variable.h"
13 #include "base/synchronization/lock.h"
14 #include "base/threading/platform_thread.h"
15 #include "base/threading/thread_local_storage.h"
16 #include "base/win/registry.h"
17 #include "base/win/scoped_handle.h"
18 #include "base/win/win_util.h"
19 #include "partition_alloc/partition_alloc-inl.h"
20 #include "partition_alloc/partition_tls.h"
21 #include "partition_alloc/spinning_mutex.h"
22 
23 #ifdef _WINDOWS_
24 #error Windows.h was included inappropriately.
25 #endif
26 
27 // clang-format off
28 // Make sure windows.h can be included after windows_types.h
29 #include "base/win/windows_types.h"
30 // clang-format on
31 
32 #include <windows.h>
33 
34 #include <objidl.h>
35 
36 // Check that type sizes match.
37 static_assert(sizeof(CHROME_CONDITION_VARIABLE) == sizeof(CONDITION_VARIABLE),
38               "Definition mismatch.");
39 static_assert(sizeof(CHROME_SRWLOCK) == sizeof(SRWLOCK),
40               "Definition mismatch.");
41 static_assert(sizeof(CHROME_WIN32_FIND_DATA) == sizeof(WIN32_FIND_DATA),
42               "Definition mismatch.");
43 static_assert(sizeof(CHROME_FORMATETC) == sizeof(FORMATETC),
44               "Definition mismatch.");
45 static_assert(sizeof(CHROME_LUID) == sizeof(LUID), "Definition mismatch.");
46 static_assert(sizeof(CHROME_MSG) == sizeof(MSG), "Definition mismatch.");
47