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_QUIC_PLATFORM_API_QUIC_THREAD_H_ 6 #define QUICHE_QUIC_PLATFORM_API_QUIC_THREAD_H_ 7 8 #include <string> 9 10 #include "net/third_party/quiche/src/quic/platform/api/quic_export.h" 11 #include "net/quic/platform/impl/quic_thread_impl.h" 12 13 namespace quic { 14 15 // A class representing a thread of execution in QUIC. 16 class QUIC_EXPORT_PRIVATE QuicThread : public QuicThreadImpl { 17 public: QuicThread(const std::string & string)18 QuicThread(const std::string& string) : QuicThreadImpl(string) {} 19 QuicThread(const QuicThread&) = delete; 20 QuicThread& operator=(const QuicThread&) = delete; 21 22 // Impl defines a virtual void Run() method which subclasses 23 // must implement. 24 }; 25 26 } // namespace quic 27 28 #endif // QUICHE_QUIC_PLATFORM_API_QUIC_THREAD_H_ 29