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

Side by Side Diff: jingle/notifier/base/fake_base_task.h

Issue 6250088: Cleanup everything but net/ for our first clang plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A stand-in for stuff that expects a weak pointer to a BaseTask for 5 // A stand-in for stuff that expects a weak pointer to a BaseTask for
6 // testing. 6 // testing.
7 7
8 #ifndef JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_ 8 #ifndef JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
9 #define JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_ 9 #define JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
10 #pragma once 10 #pragma once
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/weak_ptr.h" 13 #include "base/weak_ptr.h"
14 #include "jingle/notifier/base/task_pump.h" 14 #include "jingle/notifier/base/task_pump.h"
15 15
16 namespace talk_base { 16 namespace talk_base {
17 class Task; 17 class Task;
18 } // namespace talk_base 18 } // namespace talk_base
19 19
20 namespace notifier { 20 namespace notifier {
21 21
22 class FakeBaseTask { 22 class FakeBaseTask {
23 public: 23 public:
24 FakeBaseTask(); 24 FakeBaseTask();
25 ~FakeBaseTask();
25 26
26 base::WeakPtr<talk_base::Task> AsWeakPtr(); 27 base::WeakPtr<talk_base::Task> AsWeakPtr();
27 28
28 private: 29 private:
29 notifier::TaskPump task_pump_; 30 notifier::TaskPump task_pump_;
30 base::WeakPtr<talk_base::Task> base_task_; 31 base::WeakPtr<talk_base::Task> base_task_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(FakeBaseTask); 33 DISALLOW_COPY_AND_ASSIGN(FakeBaseTask);
33 }; 34 };
34 35
35 } // namespace notifier 36 } // namespace notifier
36 37
37 #endif // JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_ 38 #endif // JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698