| 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 APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "extensions/browser/extensions_browser_client.h" | 9 #include "extensions/browser/extensions_browser_client.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual bool HasOffTheRecordContext(content::BrowserContext* context) | 31 virtual bool HasOffTheRecordContext(content::BrowserContext* context) |
| 32 OVERRIDE; | 32 OVERRIDE; |
| 33 virtual content::BrowserContext* GetOffTheRecordContext( | 33 virtual content::BrowserContext* GetOffTheRecordContext( |
| 34 content::BrowserContext* context) OVERRIDE; | 34 content::BrowserContext* context) OVERRIDE; |
| 35 virtual content::BrowserContext* GetOriginalContext( | 35 virtual content::BrowserContext* GetOriginalContext( |
| 36 content::BrowserContext* context) OVERRIDE; | 36 content::BrowserContext* context) OVERRIDE; |
| 37 virtual PrefService* GetPrefServiceForContext( | 37 virtual PrefService* GetPrefServiceForContext( |
| 38 content::BrowserContext* context) OVERRIDE; | 38 content::BrowserContext* context) OVERRIDE; |
| 39 virtual bool DeferLoadingBackgroundHosts(content::BrowserContext* context) | 39 virtual bool DeferLoadingBackgroundHosts(content::BrowserContext* context) |
| 40 const OVERRIDE; | 40 const OVERRIDE; |
| 41 virtual bool IsBackgroundPageAllowed(content::BrowserContext* context) |
| 42 const OVERRIDE; |
| 41 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; | 43 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; |
| 42 virtual scoped_ptr<extensions::AppSorting> CreateAppSorting() OVERRIDE; | 44 virtual scoped_ptr<extensions::AppSorting> CreateAppSorting() OVERRIDE; |
| 43 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 45 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
| 44 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager() | 46 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager() |
| 45 OVERRIDE; | 47 OVERRIDE; |
| 46 | 48 |
| 47 private: | 49 private: |
| 48 // The single BrowserContext for app_shell. Not owned. | 50 // The single BrowserContext for app_shell. Not owned. |
| 49 content::BrowserContext* browser_context_; | 51 content::BrowserContext* browser_context_; |
| 50 | 52 |
| 51 // The PrefService for |browser_context_|. | 53 // The PrefService for |browser_context_|. |
| 52 scoped_ptr<PrefService> prefs_; | 54 scoped_ptr<PrefService> prefs_; |
| 53 | 55 |
| 54 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); | 56 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 } // namespace apps | 59 } // namespace apps |
| 58 | 60 |
| 59 #endif // APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 61 #endif // APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |