scoped_windows_thread_environment.h 776 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_WIN_SCOPED_WINDOWS_THREAD_ENVIRONMENT_H_
  5. #define BASE_WIN_SCOPED_WINDOWS_THREAD_ENVIRONMENT_H_
  6. #include "base/macros.h"
  7. namespace base {
  8. namespace win {
  9. // Serves as a root class for ScopedCOMInitializer and ScopedWinrtInitializer.
  10. class ScopedWindowsThreadEnvironment {
  11. public:
  12. ScopedWindowsThreadEnvironment() = default;
  13. virtual ~ScopedWindowsThreadEnvironment() = default;
  14. virtual bool Succeeded() const = 0;
  15. private:
  16. DISALLOW_COPY_AND_ASSIGN(ScopedWindowsThreadEnvironment);
  17. };
  18. } // namespace win
  19. } // namespace base
  20. #endif // BASE_WIN_SCOPED_WINDOWS_THREAD_ENVIRONMENT_H_