Rename desktop_cursor_loader_updater_aurax11.
[chromium-blink-merge.git] / chrome / browser / extensions / chrome_extensions_browser_client.h
blobddcc4d78974041ea24bb55775b8212aa08c69318
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_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/lazy_instance.h"
11 #include "extensions/browser/extensions_browser_client.h"
13 namespace content {
14 class BrowserContext;
17 namespace extensions {
19 // Implementation of extensions::BrowserClient for Chrome, which includes
20 // knowledge of Profiles, BrowserContexts and incognito.
22 // NOTE: Methods that do not require knowledge of browser concepts should be
23 // implemented in ChromeExtensionsClient even if they are only used in the
24 // browser process (see chrome/common/extensions/chrome_extensions_client.h).
25 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient {
26 public:
27 ChromeExtensionsBrowserClient();
28 virtual ~ChromeExtensionsBrowserClient();
30 // BrowserClient overrides:
31 virtual bool IsShuttingDown() OVERRIDE;
32 virtual bool IsSameContext(content::BrowserContext* first,
33 content::BrowserContext* second) OVERRIDE;
34 virtual bool HasOffTheRecordContext(
35 content::BrowserContext* context) OVERRIDE;
36 virtual content::BrowserContext* GetOffTheRecordContext(
37 content::BrowserContext* context) OVERRIDE;
39 // Get the LazyInstance for ChromeBrowserClient.
40 static ChromeExtensionsBrowserClient* GetInstance();
42 private:
43 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>;
45 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
48 } // namespace extensions
50 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_