summaryrefslogtreecommitdiffstats
path: root/chromium/base/win/scoped_windows_thread_environment.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-01-29 16:35:13 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-01 15:33:35 +0000
commitc8c2d1901aec01e934adf561a9fdf0cc776cdef8 (patch)
tree9157c3d9815e5870799e070b113813bec53e0535 /chromium/base/win/scoped_windows_thread_environment.h
parentabefd5095b41dac94ca451d784ab6e27372e981a (diff)
BASELINE: Update Chromium to 64.0.3282.139
Change-Id: I1cae68fe9c94ff7608b26b8382fc19862cdb293a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/base/win/scoped_windows_thread_environment.h')
-rw-r--r--chromium/base/win/scoped_windows_thread_environment.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/base/win/scoped_windows_thread_environment.h b/chromium/base/win/scoped_windows_thread_environment.h
new file mode 100644
index 00000000000..51f2a0d981a
--- /dev/null
+++ b/chromium/base/win/scoped_windows_thread_environment.h
@@ -0,0 +1,28 @@
+// Copyright 2017 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 BASE_WIN_SCOPED_WINDOWS_THREAD_ENVIRONMENT_H_
+#define BASE_WIN_SCOPED_WINDOWS_THREAD_ENVIRONMENT_H_
+
+#include "base/macros.h"
+
+namespace base {
+namespace win {
+
+// Serves as a root class for ScopedCOMInitializer and ScopedWinrtInitializer.
+class ScopedWindowsThreadEnvironment {
+ public:
+ ScopedWindowsThreadEnvironment() {}
+ virtual ~ScopedWindowsThreadEnvironment() {}
+
+ virtual bool Succeeded() const = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ScopedWindowsThreadEnvironment);
+};
+
+} // namespace win
+} // namespace base
+
+#endif // BASE_WIN_SCOPED_WINDOWS_THREAD_ENVIRONMENT_H_