2011-07-07 08:21:25 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef WEBRTC_MODULES_UTILITY_INTERFACE_PROCESS_THREAD_H_
|
|
|
|
|
#define WEBRTC_MODULES_UTILITY_INTERFACE_PROCESS_THREAD_H_
|
|
|
|
|
|
2013-07-12 08:28:10 +00:00
|
|
|
#include "webrtc/typedefs.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
class Module;
|
|
|
|
|
|
|
|
|
|
class ProcessThread
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static ProcessThread* CreateProcessThread();
|
|
|
|
|
static void DestroyProcessThread(ProcessThread* module);
|
|
|
|
|
|
2013-04-09 13:32:55 +00:00
|
|
|
virtual int32_t Start() = 0;
|
|
|
|
|
virtual int32_t Stop() = 0;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2014-01-13 15:21:30 +00:00
|
|
|
virtual int32_t RegisterModule(Module* module) = 0;
|
2013-04-09 13:32:55 +00:00
|
|
|
virtual int32_t DeRegisterModule(const Module* module) = 0;
|
2011-07-07 08:21:25 +00:00
|
|
|
protected:
|
|
|
|
|
virtual ~ProcessThread();
|
|
|
|
|
};
|
2013-07-03 15:12:26 +00:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
#endif // WEBRTC_MODULES_UTILITY_INTERFACE_PROCESS_THREAD_H_
|