1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
base / win / scoped_windows_thread_environment.h [blame]
// Copyright 2017 The Chromium Authors
// 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_
namespace base {
namespace win {
// Serves as a root class for ScopedCOMInitializer and ScopedWinrtInitializer.
class ScopedWindowsThreadEnvironment {
public:
ScopedWindowsThreadEnvironment() = default;
ScopedWindowsThreadEnvironment(const ScopedWindowsThreadEnvironment&) =
delete;
ScopedWindowsThreadEnvironment& operator=(
const ScopedWindowsThreadEnvironment&) = delete;
virtual ~ScopedWindowsThreadEnvironment() = default;
virtual bool Succeeded() const = 0;
};
} // namespace win
} // namespace base
#endif // BASE_WIN_SCOPED_WINDOWS_THREAD_ENVIRONMENT_H_