Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: apps/shell/browser/shell_extensions_browser_client.h

Issue 155183002: Add ApiActivityMonitor to decouple ActivityLog from low-level extensions code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase3 (activity_log) Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | apps/shell/browser/shell_extensions_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
6 #define APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define APPS_SHELL_BROWSER_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 28 matching lines...) Expand all
39 const OVERRIDE; 39 const OVERRIDE;
40 virtual bool IsBackgroundPageAllowed(content::BrowserContext* context) 40 virtual bool IsBackgroundPageAllowed(content::BrowserContext* context)
41 const OVERRIDE; 41 const OVERRIDE;
42 virtual void OnExtensionHostCreated(content::WebContents* web_contents) 42 virtual void OnExtensionHostCreated(content::WebContents* web_contents)
43 OVERRIDE; 43 OVERRIDE;
44 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; 44 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE;
45 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; 45 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE;
46 virtual bool IsRunningInForcedAppMode() OVERRIDE; 46 virtual bool IsRunningInForcedAppMode() OVERRIDE;
47 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager() 47 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager()
48 OVERRIDE; 48 OVERRIDE;
49 virtual ApiActivityMonitor* GetApiActivityMonitor(
50 content::BrowserContext* context) OVERRIDE;
49 virtual std::vector<BrowserContextKeyedServiceFactory*> 51 virtual std::vector<BrowserContextKeyedServiceFactory*>
50 GetExtensionSystemDependencies() OVERRIDE; 52 GetExtensionSystemDependencies() OVERRIDE;
51 virtual ExtensionSystem* CreateExtensionSystem( 53 virtual ExtensionSystem* CreateExtensionSystem(
52 content::BrowserContext* context) OVERRIDE; 54 content::BrowserContext* context) OVERRIDE;
53 55
54 private: 56 private:
55 // The single BrowserContext for app_shell. Not owned. 57 // The single BrowserContext for app_shell. Not owned.
56 content::BrowserContext* browser_context_; 58 content::BrowserContext* browser_context_;
57 59
58 // The PrefService for |browser_context_|. 60 // The PrefService for |browser_context_|.
59 scoped_ptr<PrefService> prefs_; 61 scoped_ptr<PrefService> prefs_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); 63 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient);
62 }; 64 };
63 65
64 } // namespace extensions 66 } // namespace extensions
65 67
66 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 68 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | apps/shell/browser/shell_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698