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

Side by Side Diff: chrome/browser/chromeos/login/profile_auth_data.h

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROFILE_AUTH_DATA_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/callback.h" 9 #include "base/callback.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // Helper class for transferring authentication related data from one profile 15 // Helper class for transferring authentication related data from one profile
16 // to another: proxy authentication cache, cookies, server bound certs. 16 // to another: proxy authentication cache, cookies, server bound certs.
17 class ProfileAuthData { 17 class ProfileAuthData {
18 public: 18 public:
19 // Transfers proxy authentication cache and optionally |transfer_cookies| and 19 // Transfers proxy authentication cache and optionally |transfer_cookies| and
20 // server bound certs from the profile that was used for authentication. 20 // server bound certs from the profile that was used for authentication.
21 // |cookies_transfered_callback| will be called on UI thread after cookie 21 // |cookies_transfered_callback| will be called on UI thread after cookie
22 // transfer part of this operation is completed. 22 // transfer part of this operation is completed.
23 static void Transfer( 23 static void Transfer(Profile* from_profile,
24 Profile* from_profile, 24 Profile* to_profile,
25 Profile* to_profile, 25 bool transfer_cookies,
26 bool transfer_cookies, 26 const base::Closure& cookies_transfered_callback);
27 const base::Callback<void()>& cookies_transfered_callback);
28 27
29 private: 28 private:
30 DISALLOW_IMPLICIT_CONSTRUCTORS(ProfileAuthData); 29 DISALLOW_IMPLICIT_CONSTRUCTORS(ProfileAuthData);
31 }; 30 };
32 31
33 } // namespace chromeos 32 } // namespace chromeos
34 33
35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_ 34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/policy_oauth_fetcher.cc ('k') | chrome/browser/chromeos/login/profile_auth_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698