OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 5 #ifndef ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
6 #define ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 6 #define ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class WindowWatcher; | 25 class WindowWatcher; |
26 | 26 |
27 class ShellBrowserMainParts : public content::BrowserMainParts { | 27 class ShellBrowserMainParts : public content::BrowserMainParts { |
28 public: | 28 public: |
29 explicit ShellBrowserMainParts( | 29 explicit ShellBrowserMainParts( |
30 const content::MainFunctionParams& parameters); | 30 const content::MainFunctionParams& parameters); |
31 virtual ~ShellBrowserMainParts(); | 31 virtual ~ShellBrowserMainParts(); |
32 | 32 |
33 // Overridden from content::BrowserMainParts: | 33 // Overridden from content::BrowserMainParts: |
34 virtual void PreMainMessageLoopStart() OVERRIDE; | 34 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 35 virtual void PostMainMessageLoopStart() OVERRIDE; |
35 virtual void PreMainMessageLoopRun() OVERRIDE; | 36 virtual void PreMainMessageLoopRun() OVERRIDE; |
36 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 37 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
37 virtual void PostMainMessageLoopRun() OVERRIDE; | 38 virtual void PostMainMessageLoopRun() OVERRIDE; |
38 | 39 |
39 content::ShellBrowserContext* browser_context() { | 40 content::ShellBrowserContext* browser_context() { |
40 return browser_context_.get(); | 41 return browser_context_.get(); |
41 } | 42 } |
42 | 43 |
43 private: | 44 private: |
44 scoped_ptr<content::ShellBrowserContext> browser_context_; | 45 scoped_ptr<content::ShellBrowserContext> browser_context_; |
45 scoped_ptr<ash::shell::WindowWatcher> window_watcher_; | 46 scoped_ptr<ash::shell::WindowWatcher> window_watcher_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 48 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
48 }; | 49 }; |
49 | 50 |
50 } // namespace shell | 51 } // namespace shell |
51 } // namespace ash | 52 } // namespace ash |
52 | 53 |
53 #endif // ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 54 #endif // ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |