Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / profile_auth_data.h
bloba7805e4db2ac2ab1495ca47c9a04ba43547d3c4d
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
8 #include <string>
9 #include "base/callback.h"
11 class Profile;
13 namespace chromeos {
15 // Helper class for transferring authentication related data from one profile
16 // to another: proxy authentication cache, cookies, server bound certs.
17 class ProfileAuthData {
18 public:
19 // Transfers proxy authentication cache and optionally |transfer_cookies| and
20 // server bound certs from the profile that was used for authentication.
21 // |completion_callback| will be called on UI thread after the operation is
22 // completed.
23 static void Transfer(Profile* from_profile,
24 Profile* to_profile,
25 bool transfer_cookies,
26 const base::Closure& completion_callback);
28 private:
29 DISALLOW_IMPLICIT_CONSTRUCTORS(ProfileAuthData);
32 } // namespace chromeos
34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_