| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class Profile; | 10 namespace content { |
| 11 class BrowserContext; |
| 12 } |
| 11 | 13 |
| 12 // ScopedGaiaAuthExtension loads gaia auth extension on construction if the | 14 // ScopedGaiaAuthExtension loads gaia auth extension on construction if the |
| 13 // extension is not registered yet, and unloads it on destruction if it is no | 15 // extension is not registered yet, and unloads it on destruction if it is no |
| 14 // longer used. | 16 // longer used. |
| 15 class ScopedGaiaAuthExtension { | 17 class ScopedGaiaAuthExtension { |
| 16 public: | 18 public: |
| 17 explicit ScopedGaiaAuthExtension(Profile* profile); | 19 explicit ScopedGaiaAuthExtension(content::BrowserContext* context); |
| 18 ~ScopedGaiaAuthExtension(); | 20 ~ScopedGaiaAuthExtension(); |
| 19 | 21 |
| 20 private: | 22 private: |
| 21 Profile* profile_; | 23 content::BrowserContext* browser_context_; |
| 22 | 24 |
| 23 DISALLOW_COPY_AND_ASSIGN(ScopedGaiaAuthExtension); | 25 DISALLOW_COPY_AND_ASSIGN(ScopedGaiaAuthExtension); |
| 24 }; | 26 }; |
| 25 | 27 |
| 26 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ | 28 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ |
| OLD | NEW |