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

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

Issue 10702139: Remove #pragma once from jingle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 thin wrapper around buzz::XmppClient that exposes weak pointers 5 // A thin wrapper around buzz::XmppClient that exposes weak pointers
6 // so that users know when the buzz::XmppClient becomes invalid to use 6 // so that users know when the buzz::XmppClient becomes invalid to use
7 // (not necessarily only at destruction time). 7 // (not necessarily only at destruction time).
8 8
9 #ifndef JINGLE_NOTIFIER_BASE_WEAK_XMPP_CLIENT_H_ 9 #ifndef JINGLE_NOTIFIER_BASE_WEAK_XMPP_CLIENT_H_
10 #define JINGLE_NOTIFIER_BASE_WEAK_XMPP_CLIENT_H_ 10 #define JINGLE_NOTIFIER_BASE_WEAK_XMPP_CLIENT_H_
11 #pragma once
12 11
13 #include "base/basictypes.h" 12 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
15 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
16 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
17 #include "talk/xmpp/xmppclient.h" 16 #include "talk/xmpp/xmppclient.h"
18 17
19 namespace talk_base { 18 namespace talk_base {
20 class TaskParent; 19 class TaskParent;
21 } // namespace 20 } // namespace
(...skipping 26 matching lines...) Expand all
48 // SupportsWeakPtr since we want to invalidate in other places 47 // SupportsWeakPtr since we want to invalidate in other places
49 // besides the destructor. 48 // besides the destructor.
50 base::WeakPtrFactory<WeakXmppClient> weak_ptr_factory_; 49 base::WeakPtrFactory<WeakXmppClient> weak_ptr_factory_;
51 50
52 DISALLOW_COPY_AND_ASSIGN(WeakXmppClient); 51 DISALLOW_COPY_AND_ASSIGN(WeakXmppClient);
53 }; 52 };
54 53
55 } // namespace notifier 54 } // namespace notifier
56 55
57 #endif // JINGLE_NOTIFIER_BASE_WEAK_XMPP_CLIENT_H_ 56 #endif // JINGLE_NOTIFIER_BASE_WEAK_XMPP_CLIENT_H_
OLDNEW
« no previous file with comments | « jingle/notifier/base/proxy_resolving_client_socket.h ('k') | jingle/notifier/base/xmpp_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698