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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.h

Issue 1113043004: [Smart Lock] Extract the screenlock state to the proximity_auth component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests compile Created 5 years, 7 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 | « no previous file | chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.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 CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INITIAL IZER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INITIAL IZER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INITIAL IZER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INITIAL IZER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void OnGetTokensResponse(const std::string& refresh_token, 64 void OnGetTokensResponse(const std::string& refresh_token,
65 const std::string& access_token, 65 const std::string& access_token,
66 int expires_in_seconds) override; 66 int expires_in_seconds) override;
67 void OnRefreshTokenResponse(const std::string& access_token, 67 void OnRefreshTokenResponse(const std::string& access_token,
68 int expires_in_seconds) override; 68 int expires_in_seconds) override;
69 void OnGetUserInfoResponse( 69 void OnGetUserInfoResponse(
70 scoped_ptr<base::DictionaryValue> user_info) override; 70 scoped_ptr<base::DictionaryValue> user_info) override;
71 void OnOAuthError() override; 71 void OnOAuthError() override;
72 void OnNetworkError(int response_code) override; 72 void OnNetworkError(int response_code) override;
73 73
74 // EasyUnlockServiceObserver 74 // EasyUnlockServiceObserver:
75 void OnScreenlockStateChanged( 75 void OnScreenlockStateChanged(proximity_auth::ScreenlockState state) override;
76 EasyUnlockScreenlockStateHandler::State state) override;
77 76
78 CompleteCallback callback_; 77 CompleteCallback callback_;
79 scoped_ptr<gaia::GaiaOAuthClient> token_fetcher_; 78 scoped_ptr<gaia::GaiaOAuthClient> token_fetcher_;
80 79
81 UserContext user_context_; 80 UserContext user_context_;
82 bool random_key_used_; 81 bool random_key_used_;
83 82
84 base::WeakPtrFactory<BootstrapUserContextInitializer> weak_ptr_factory_; 83 base::WeakPtrFactory<BootstrapUserContextInitializer> weak_ptr_factory_;
85 84
86 static CompleteCallback* complete_callback_for_testing_; 85 static CompleteCallback* complete_callback_for_testing_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(BootstrapUserContextInitializer); 87 DISALLOW_COPY_AND_ASSIGN(BootstrapUserContextInitializer);
89 }; 88 };
90 89
91 } // namespace chromeos 90 } // namespace chromeos
92 91
93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INIT IALIZER_H_ 92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INIT IALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698