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

Side by Side Diff: remoting/protocol/authenticator.cc

Issue 12389010: Refactor of Authenticator to allow it to ProcessMessage asynchronously and then call a callback (Closed) Base URL: http://git.chromium.org/chromium/src.git@host_key_pair
Patch Set: Add new states Created 7 years, 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/protocol/authenticator.h" 5 #include "remoting/protocol/authenticator.h"
6 6
7 #include "base/logging.h"
7 #include "remoting/base/constants.h" 8 #include "remoting/base/constants.h"
8 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" 9 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h"
9 10
10 namespace remoting { 11 namespace remoting {
11 namespace protocol { 12 namespace protocol {
12 13
13 namespace { 14 namespace {
14 const buzz::StaticQName kAuthenticationQName = { kChromotingXmlNamespace, 15 const buzz::StaticQName kAuthenticationQName = { kChromotingXmlNamespace,
15 "authentication" }; 16 "authentication" };
16 } // namespace 17 } // namespace
(...skipping 10 matching lines...) Expand all
27 } 28 }
28 29
29 // static 30 // static
30 const buzz::XmlElement* Authenticator::FindAuthenticatorMessage( 31 const buzz::XmlElement* Authenticator::FindAuthenticatorMessage(
31 const buzz::XmlElement* message) { 32 const buzz::XmlElement* message) {
32 return message->FirstNamed(kAuthenticationQName); 33 return message->FirstNamed(kAuthenticationQName);
33 } 34 }
34 35
35 } // namespace protocol 36 } // namespace protocol
36 } // namespace remoting 37 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698