Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: chrome/browser/devtools/refcounted_adb_thread.h

Issue 26568004: Introduced AndroidDeviceProvider to simplify testing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made AndroidDevice::HttpQuery virtual for test purposes. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 CHROME_BROWSER_DEVTOOLS_REFCOUNTED_ADB_THREAD_H_
6 #define CHROME_BROWSER_DEVTOOLS_REFCOUNTED_ADB_THREAD_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop.h"
10 #include "base/threading/thread.h"
11
12 class RefCountedAdbThread : public base::RefCounted<RefCountedAdbThread> {
13 public:
14 static scoped_refptr<RefCountedAdbThread> GetInstance();
15 base::MessageLoop* message_loop();
16
17 private:
18 friend class base::RefCounted<RefCountedAdbThread>;
19 static RefCountedAdbThread* instance_;
20 static void StopThread(base::Thread* thread);
21
22 RefCountedAdbThread();
23 virtual ~RefCountedAdbThread();
24 base::Thread* thread_;
25 };
26
27 #endif // CHROME_BROWSER_DEVTOOLS_REFCOUNTED_ADB_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698