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

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

Issue 356713005: Rename ServerBoundCert => ChannelID to reflect the current name (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cookies_list.js Created 6 years, 5 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 "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 namespace content { 11 namespace content {
12 class BrowserContext; 12 class BrowserContext;
13 } 13 }
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 // Helper class that transfers authentication-related data from a BrowserContext 17 // Helper class that transfers authentication-related data from a BrowserContext
18 // used for authentication to the user's actual BrowserContext. 18 // used for authentication to the user's actual BrowserContext.
19 class ProfileAuthData { 19 class ProfileAuthData {
20 public: 20 public:
21 // Transfers authentication-related data from |from_context| to |to_context| 21 // Transfers authentication-related data from |from_context| to |to_context|
22 // and invokes |completion_callback| on the UI thread when the operation has 22 // and invokes |completion_callback| on the UI thread when the operation has
23 // completed. The proxy authentication state is transferred unconditionally. 23 // completed. The proxy authentication state is transferred unconditionally.
24 // If |transfer_auth_cookies_and_server_bound_certs| is true, authentication 24 // If |transfer_auth_cookies_and_channel_ids| is true, authentication
25 // cookies and server bound certificates are transferred as well, if 25 // cookies and channel ids are transferred as well, if
26 // |to_context|'s cookie jar is empty. If the cookie jar is not empty, the 26 // |to_context|'s cookie jar is empty. If the cookie jar is not empty, the
27 // authentication states in |from_context| and |to_context| should be merged 27 // authentication states in |from_context| and |to_context| should be merged
28 // using /MergeSession instead. 28 // using /MergeSession instead.
29 static void Transfer(content::BrowserContext* from_context, 29 static void Transfer(content::BrowserContext* from_context,
30 content::BrowserContext* to_context, 30 content::BrowserContext* to_context,
31 bool transfer_auth_cookies_and_server_bound_certs, 31 bool transfer_auth_cookies_and_channel_ids,
32 const base::Closure& completion_callback); 32 const base::Closure& completion_callback);
33 33
34 private: 34 private:
35 DISALLOW_IMPLICIT_CONSTRUCTORS(ProfileAuthData); 35 DISALLOW_IMPLICIT_CONSTRUCTORS(ProfileAuthData);
36 }; 36 };
37 37
38 } // namespace chromeos 38 } // namespace chromeos
39 39
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698