| Index: chrome/browser/chromeos/login/profile_auth_data.h
|
| diff --git a/chrome/browser/chromeos/login/profile_auth_data.h b/chrome/browser/chromeos/login/profile_auth_data.h
|
| index 67e0f286a2496b3472d84d12753de9b341c78fa0..cd4a0fae095daeb07fd63ca19a53243585db9a1c 100644
|
| --- a/chrome/browser/chromeos/login/profile_auth_data.h
|
| +++ b/chrome/browser/chromeos/login/profile_auth_data.h
|
| @@ -2,10 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_CHROMEOS_PROFILE_AUTH_DATA_H_
|
| -#define CHROME_BROWSER_CHROMEOS_PROFILE_AUTH_DATA_H_
|
| +#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
|
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
|
|
|
| -#include "base/memory/ref_counted.h"
|
| +#include <string>
|
| +#include "base/callback.h"
|
|
|
| class Profile;
|
|
|
| @@ -17,13 +18,18 @@ class ProfileAuthData {
|
| public:
|
| // Transfers proxy authentication cache and optionally |transfer_cookies| and
|
| // server bound certs from the profile that was used for authentication.
|
| - static void Transfer(Profile* from_profile,
|
| - Profile* to_profile,
|
| - bool transfer_cookies);
|
| + // |cookies_transfered_callback| will be called on UI thread after cookie
|
| + // transfer part of this operation is completed.
|
| + static void Transfer(
|
| + Profile* from_profile,
|
| + Profile* to_profile,
|
| + bool transfer_cookies,
|
| + const base::Callback<void()>& cookies_transfered_callback);
|
| +
|
| private:
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(ProfileAuthData);
|
| };
|
|
|
| } // namespace chromeos
|
|
|
| -#endif // CHROME_BROWSER_CHROMEOS_PROFILE_AUTH_DATA_H_
|
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROFILE_AUTH_DATA_H_
|
|
|