1 // Copyright (c) 2018 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 5 #ifndef QUICHE_COMMON_PLATFORM_API_QUICHE_THREAD_H_ 6 #define QUICHE_COMMON_PLATFORM_API_QUICHE_THREAD_H_ 7 8 #include <string> 9 10 #include "quiche_platform_impl/quiche_thread_impl.h" 11 12 #include "quiche/common/platform/api/quiche_export.h" 13 14 namespace quiche { 15 16 // A class representing a thread of execution in QUIC. 17 class QUICHE_EXPORT QuicheThread : public QuicheThreadImpl { 18 public: QuicheThread(const std::string & string)19 QuicheThread(const std::string& string) : QuicheThreadImpl(string) {} 20 QuicheThread(const QuicheThread&) = delete; 21 QuicheThread& operator=(const QuicheThread&) = delete; 22 23 // Impl defines a virtual void Run() method which subclasses 24 // must implement. 25 }; 26 27 } // namespace quiche 28 29 #endif // QUICHE_COMMON_PLATFORM_API_QUICHE_THREAD_H_ 30