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

Side by Side Diff: chrome/browser/sync/notifier/gaia_auth/gaiaauth.cc

Issue 211019: Fix compiling of sync on linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <string> 5 #include <string>
6 6
7 #include "chrome/browser/sync/notifier/gaia_auth/gaiaauth.h" 7 #include "chrome/browser/sync/notifier/gaia_auth/gaiaauth.h"
8 #include "talk/base/asynchttprequest.h" 8 #include "talk/base/asynchttprequest.h"
9 #include "talk/base/firewallsocketserver.h" 9 #include "talk/base/firewallsocketserver.h"
10 #include "talk/base/httpclient.h" 10 #include "talk/base/httpclient.h"
11 #include "talk/base/logging.h" 11 #include "talk/base/logging.h"
12 #include "talk/base/physicalsocketserver.h" 12 #include "talk/base/physicalsocketserver.h"
13 #include "talk/base/signalthread.h" 13 #include "talk/base/signalthread.h"
14 #include "talk/base/socketadapters.h" 14 #include "talk/base/socketadapters.h"
15 #include "talk/base/socketpool.h" 15 #include "talk/base/socketpool.h"
16 #include "talk/base/stringutils.h" 16 #include "talk/base/stringutils.h"
17 #include "talk/base/urlencode.h" 17 #include "talk/base/urlencode.h"
18 #include "talk/xmpp/saslcookiemechanism.h" 18 #include "talk/xmpp/saslcookiemechanism.h"
19 #include "talk/xmpp/saslplainmechanism.h" 19 #include "talk/xmpp/saslplainmechanism.h"
20 20
21 namespace buzz { 21 namespace buzz {
22 22
23 static const int kGaiaAuthTimeoutMs = 30 * 1000; // 30 sec 23 static const int kGaiaAuthTimeoutMs = 30 * 1000; // 30 sec
24 24
25 // Warning, this is externed. 25 // Warning, this is externed.
26 GaiaServer buzz::g_gaia_server; 26 GaiaServer g_gaia_server;
27 27
28 /////////////////////////////////////////////////////////////////////////////// 28 ///////////////////////////////////////////////////////////////////////////////
29 // GaiaAuth::WorkerThread 29 // GaiaAuth::WorkerThread
30 /////////////////////////////////////////////////////////////////////////////// 30 ///////////////////////////////////////////////////////////////////////////////
31 31
32 // GaiaAuth is NOT invoked during SASL authentication, but it is invoked even 32 // GaiaAuth is NOT invoked during SASL authentication, but it is invoked even
33 // before XMPP login begins. As a PreXmppAuth object, it is driven by 33 // before XMPP login begins. As a PreXmppAuth object, it is driven by
34 // XmppClient before the XMPP socket is opened. The job of GaiaAuth is to goes 34 // XmppClient before the XMPP socket is opened. The job of GaiaAuth is to goes
35 // out using HTTPS POST to grab cookies from GAIA. 35 // out using HTTPS POST to grab cookies from GAIA.
36 // 36 //
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 } 431 }
432 432
433 buzz::CaptchaChallenge GaiaAuth::GetCaptchaChallenge() { 433 buzz::CaptchaChallenge GaiaAuth::GetCaptchaChallenge() {
434 if (!done_ || worker_->Succeeded()) { 434 if (!done_ || worker_->Succeeded()) {
435 return buzz::CaptchaChallenge(); 435 return buzz::CaptchaChallenge();
436 } 436 }
437 return worker_->GetCaptchaChallenge(); 437 return worker_->GetCaptchaChallenge();
438 } 438 }
439 439
440 } // namespace buzz 440 } // namespace buzz
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/base/task_pump.cc ('k') | chrome/browser/sync/syncable/directory_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698