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

Side by Side Diff: components/signin/core/browser/signin_manager.h

Issue 196783002: Export a private webstore API to call into the new inline sign-in flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
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 // The signin manager encapsulates some functionality tracking 5 // The signin manager encapsulates some functionality tracking
6 // which user is signed in. See SigninManagerBase for full description of 6 // which user is signed in. See SigninManagerBase for full description of
7 // responsibilities. The class defined in this file provides functionality 7 // responsibilities. The class defined in this file provides functionality
8 // required by all platforms except Chrome OS. 8 // required by all platforms except Chrome OS.
9 // 9 //
10 // When a user is signed in, a ClientLogin request is run on their behalf. 10 // When a user is signed in, a ClientLogin request is run on their behalf.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 // Tells the SigninManager whether to prohibit signout for this profile. 123 // Tells the SigninManager whether to prohibit signout for this profile.
124 // If |prohibit_signout| is true, then signout will be prohibited. 124 // If |prohibit_signout| is true, then signout will be prohibited.
125 void ProhibitSignout(bool prohibit_signout); 125 void ProhibitSignout(bool prohibit_signout);
126 126
127 // If true, signout is prohibited for this profile (calls to SignOut() are 127 // If true, signout is prohibited for this profile (calls to SignOut() are
128 // ignored). 128 // ignored).
129 bool IsSignoutProhibited() const; 129 bool IsSignoutProhibited() const;
130 130
131 // Add or remove observers for the merge session notification. 131 // Add or remove observers for the merge session notification.
132 void AddMergeSessionObserver(MergeSessionHelper::Observer* observer); 132 virtual void AddMergeSessionObserver(
133 void RemoveMergeSessionObserver(MergeSessionHelper::Observer* observer); 133 MergeSessionHelper::Observer* observer);
134 virtual void RemoveMergeSessionObserver(
135 MergeSessionHelper::Observer* observer);
134 136
135 protected: 137 protected:
136 // Flag saying whether signing out is allowed. 138 // Flag saying whether signing out is allowed.
137 bool prohibit_signout_; 139 bool prohibit_signout_;
138 140
139 private: 141 private:
140 enum SigninType { SIGNIN_TYPE_NONE, SIGNIN_TYPE_WITH_REFRESH_TOKEN }; 142 enum SigninType { SIGNIN_TYPE_NONE, SIGNIN_TYPE_WITH_REFRESH_TOKEN };
141 143
142 std::string SigninTypeToString(SigninType type); 144 std::string SigninTypeToString(SigninType type);
143 friend class FakeSigninManager; 145 friend class FakeSigninManager;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 211
210 // Helper to merge signed in account into the content area. 212 // Helper to merge signed in account into the content area.
211 scoped_ptr<MergeSessionHelper> merge_session_helper_; 213 scoped_ptr<MergeSessionHelper> merge_session_helper_;
212 214
213 DISALLOW_COPY_AND_ASSIGN(SigninManager); 215 DISALLOW_COPY_AND_ASSIGN(SigninManager);
214 }; 216 };
215 217
216 #endif // !defined(OS_CHROMEOS) 218 #endif // !defined(OS_CHROMEOS)
217 219
218 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_H_ 220 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698