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

Side by Side Diff: chromeos/login/auth/online_attempt.h

Issue 552323003: Changing the order of initialization WeakPtrFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/login/auth/online_attempt.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ 5 #ifndef CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_
6 #define CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ 6 #define CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void CancelRequest(); 61 void CancelRequest();
62 62
63 scoped_refptr<base::MessageLoopProxy> message_loop_; 63 scoped_refptr<base::MessageLoopProxy> message_loop_;
64 64
65 AuthAttemptState* const attempt_; 65 AuthAttemptState* const attempt_;
66 AuthAttemptStateResolver* const resolver_; 66 AuthAttemptStateResolver* const resolver_;
67 67
68 // Handles ClientLogin communications with Gaia. 68 // Handles ClientLogin communications with Gaia.
69 scoped_ptr<GaiaAuthFetcher> client_fetcher_; 69 scoped_ptr<GaiaAuthFetcher> client_fetcher_;
70 70
71 // Whether we're willing to re-try the ClientLogin attempt.
72 bool try_again_;
73
71 // Used to cancel the CancelClientLogin closure. 74 // Used to cancel the CancelClientLogin closure.
72 base::WeakPtrFactory<OnlineAttempt> weak_factory_; 75 base::WeakPtrFactory<OnlineAttempt> weak_factory_;
73 76
74 // Whether we're willing to re-try the ClientLogin attempt.
75 bool try_again_;
76
77 friend class OnlineAttemptTest; 77 friend class OnlineAttemptTest;
78 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); 78 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt);
79 }; 79 };
80 80
81 } // namespace chromeos 81 } // namespace chromeos
82 82
83 #endif // CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ 83 #endif // CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_
OLDNEW
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/login/auth/online_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698