naiveproxy/base/win/scoped_windows_thread_environment.h

29 lines
760 B
C
Raw Normal View History

2018-12-10 05:59:24 +03:00
// 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_