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

Side by Side Diff: remoting/client/plugin/delegating_signal_strategy.cc

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "remoting/client/plugin/delegating_signal_strategy.h" 5 #include "remoting/client/plugin/delegating_signal_strategy.h"
6 6
7 #include "base/rand_util.h" 7 #include "base/rand_util.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 9 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 void DelegatingSignalStrategy::OnIncomingMessage(const std::string& message) { 23 void DelegatingSignalStrategy::OnIncomingMessage(const std::string& message) {
24 scoped_ptr<buzz::XmlElement> stanza(buzz::XmlElement::ForStr(message)); 24 scoped_ptr<buzz::XmlElement> stanza(buzz::XmlElement::ForStr(message));
25 if (!stanza.get()) { 25 if (!stanza.get()) {
26 LOG(WARNING) << "Malformed XMPP stanza received: " << message; 26 LOG(WARNING) << "Malformed XMPP stanza received: " << message;
27 return; 27 return;
28 } 28 }
29 29
30 ObserverListBase<Listener>::Iterator it(listeners_); 30 ObserverListBase<Listener>::Iterator it(listeners_);
31 Listener* listener; 31 Listener* listener;
32 while ((listener = it.GetNext()) != NULL) { 32 while ((listener = it.GetNext()) != nullptr) {
33 if (listener->OnSignalStrategyIncomingStanza(stanza.get())) 33 if (listener->OnSignalStrategyIncomingStanza(stanza.get()))
34 break; 34 break;
35 } 35 }
36 } 36 }
37 37
38 void DelegatingSignalStrategy::Connect() { 38 void DelegatingSignalStrategy::Connect() {
39 } 39 }
40 40
41 void DelegatingSignalStrategy::Disconnect() { 41 void DelegatingSignalStrategy::Disconnect() {
42 } 42 }
(...skipping 21 matching lines...) Expand all
64 bool DelegatingSignalStrategy::SendStanza(scoped_ptr<buzz::XmlElement> stanza) { 64 bool DelegatingSignalStrategy::SendStanza(scoped_ptr<buzz::XmlElement> stanza) {
65 send_iq_callback_.Run(stanza->Str()); 65 send_iq_callback_.Run(stanza->Str());
66 return true; 66 return true;
67 } 67 }
68 68
69 std::string DelegatingSignalStrategy::GetNextId() { 69 std::string DelegatingSignalStrategy::GetNextId() {
70 return base::Uint64ToString(base::RandUint64()); 70 return base::Uint64ToString(base::RandUint64());
71 } 71 }
72 72
73 } // namespace remoting 73 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_entrypoints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698