| OLD | NEW | 
|---|
| 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/pepper_signal_strategy.h" | 5 #include "remoting/client/plugin/pepper_signal_strategy.h" | 
| 6 | 6 | 
| 7 #include "base/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" | 
| 8 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 8 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 
| 9 | 9 | 
| 10 namespace remoting { | 10 namespace remoting { | 
| 11 | 11 | 
| 12 PepperSignalStrategy::PepperSignalStrategy( | 12 PepperSignalStrategy::PepperSignalStrategy( | 
| 13     std::string local_jid, | 13     std::string local_jid, | 
| 14     const SendIqCallback& send_iq_callback) | 14     const SendIqCallback& send_iq_callback) | 
| 15     : local_jid_(local_jid), | 15     : local_jid_(local_jid), | 
| 16       send_iq_callback_(send_iq_callback), | 16       send_iq_callback_(send_iq_callback), | 
| 17       last_id_(0) { | 17       last_id_(0) { | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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 PepperSignalStrategy::GetNextId() { | 69 std::string PepperSignalStrategy::GetNextId() { | 
| 70   ++last_id_; | 70   ++last_id_; | 
| 71   return base::IntToString(last_id_); | 71   return base::IntToString(last_id_); | 
| 72 } | 72 } | 
| 73 | 73 | 
| 74 }  // namespace remoting | 74 }  // namespace remoting | 
| OLD | NEW | 
|---|