#ifndef CHROME_BROWSER_DEVTOOLS_REFCOUNTED_ADB_THREAD_H_
#define CHROME_BROWSER_DEVTOOLS_REFCOUNTED_ADB_THREAD_H_
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
#include "base/threading/thread.h"
class RefCountedAdbThread
: public base::RefCountedThreadSafe<RefCountedAdbThread> {
public:
static scoped_refptr<RefCountedAdbThread> GetInstance();
base::MessageLoop* message_loop();
private:
friend class base::RefCountedThreadSafe<RefCountedAdbThread>;
static RefCountedAdbThread* instance_;
static void StopThread(base::Thread* thread);
RefCountedAdbThread();
virtual ~RefCountedAdbThread();
base::Thread* thread_;
};
#endif