Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / extensions / signin / scoped_gaia_auth_extension.h
blobcf3cf493a531741ac4cc4681b6a0cc982971a1ad
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 class Profile;
12 // ScopedGaiaAuthExtension loads gaia auth extension on construction if the
13 // extension is not registered yet, and unloads it on destruction if it is no
14 // longer used.
15 class ScopedGaiaAuthExtension {
16 public:
17 explicit ScopedGaiaAuthExtension(Profile* profile);
18 ~ScopedGaiaAuthExtension();
20 private:
21 Profile* profile_;
23 DISALLOW_COPY_AND_ASSIGN(ScopedGaiaAuthExtension);
26 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_