Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / extensions / signin / scoped_gaia_auth_extension.h
blobd032565b3d17f43fa6f5d22f262973757e8ff94b
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_
6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_
8 #include "base/basictypes.h"
10 namespace content {
11 class BrowserContext;
14 // ScopedGaiaAuthExtension loads gaia auth extension on construction if the
15 // extension is not registered yet, and unloads it on destruction if it is no
16 // longer used.
17 class ScopedGaiaAuthExtension {
18 public:
19 explicit ScopedGaiaAuthExtension(content::BrowserContext* context);
20 ~ScopedGaiaAuthExtension();
22 private:
23 content::BrowserContext* browser_context_;
25 DISALLOW_COPY_AND_ASSIGN(ScopedGaiaAuthExtension);
28 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_