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

Side by Side Diff: apps/shell/shell_browser_main_parts.h

Issue 136453005: app_shell: Make renderer run background page JavaScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup (load_background_page) Created 6 years, 11 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
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_SHELL_BROWSER_MAIN_PARTS_H_ 5 #ifndef APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_
6 #define APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ 6 #define APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 public aura::RootWindowObserver { 39 public aura::RootWindowObserver {
40 public: 40 public:
41 explicit ShellBrowserMainParts( 41 explicit ShellBrowserMainParts(
42 const content::MainFunctionParams& parameters); 42 const content::MainFunctionParams& parameters);
43 virtual ~ShellBrowserMainParts(); 43 virtual ~ShellBrowserMainParts();
44 44
45 ShellBrowserContext* browser_context() { 45 ShellBrowserContext* browser_context() {
46 return browser_context_.get(); 46 return browser_context_.get();
47 } 47 }
48 48
49 extensions::ShellExtensionSystem* extension_system() {
50 return extension_system_;
51 }
52
49 // BrowserMainParts overrides. 53 // BrowserMainParts overrides.
50 virtual void PreEarlyInitialization() OVERRIDE; 54 virtual void PreEarlyInitialization() OVERRIDE;
51 virtual void PreMainMessageLoopStart() OVERRIDE; 55 virtual void PreMainMessageLoopStart() OVERRIDE;
52 virtual void PostMainMessageLoopStart() OVERRIDE; 56 virtual void PostMainMessageLoopStart() OVERRIDE;
53 virtual int PreCreateThreads() OVERRIDE; 57 virtual int PreCreateThreads() OVERRIDE;
54 virtual void PreMainMessageLoopRun() OVERRIDE; 58 virtual void PreMainMessageLoopRun() OVERRIDE;
55 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; 59 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
56 virtual void PostMainMessageLoopRun() OVERRIDE; 60 virtual void PostMainMessageLoopRun() OVERRIDE;
57 61
58 // aura::RootWindowObserver overrides: 62 // aura::RootWindowObserver overrides:
(...skipping 22 matching lines...) Expand all
81 85
82 // Owned by the BrowserContextKeyedService system. 86 // Owned by the BrowserContextKeyedService system.
83 extensions::ShellExtensionSystem* extension_system_; 87 extensions::ShellExtensionSystem* extension_system_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); 89 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
86 }; 90 };
87 91
88 } // namespace apps 92 } // namespace apps
89 93
90 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ 94 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698