| 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 CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ | 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ |
| 6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ | 6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_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 struct MainFunctionParams; | 25 struct MainFunctionParams; |
| 26 | 26 |
| 27 class ShellBrowserMainParts : public BrowserMainParts { | 27 class ShellBrowserMainParts : public BrowserMainParts { |
| 28 public: | 28 public: |
| 29 explicit ShellBrowserMainParts(const content::MainFunctionParams& parameters); | 29 explicit ShellBrowserMainParts(const content::MainFunctionParams& parameters); |
| 30 virtual ~ShellBrowserMainParts(); | 30 virtual ~ShellBrowserMainParts(); |
| 31 | 31 |
| 32 virtual void PreEarlyInitialization() OVERRIDE {} | 32 virtual void PreEarlyInitialization() OVERRIDE {} |
| 33 virtual void PostEarlyInitialization() OVERRIDE {} | 33 virtual void PostEarlyInitialization() OVERRIDE {} |
| 34 virtual void PreMainMessageLoopStart() OVERRIDE {} | 34 virtual void PreMainMessageLoopStart() OVERRIDE {} |
| 35 virtual MessageLoop* GetMainMessageLoop() OVERRIDE; |
| 36 virtual void PostMainMessageLoopStart() OVERRIDE {} |
| 35 virtual void ToolkitInitialized() OVERRIDE {} | 37 virtual void ToolkitInitialized() OVERRIDE {} |
| 36 virtual void PostMainMessageLoopStart() OVERRIDE {} | |
| 37 virtual int PreCreateThreads() OVERRIDE; | 38 virtual int PreCreateThreads() OVERRIDE; |
| 38 virtual void PreMainMessageLoopRun() OVERRIDE; | 39 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 39 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 40 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 40 virtual void PostMainMessageLoopRun() OVERRIDE; | 41 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 41 virtual void PostDestroyThreads() OVERRIDE {} | 42 virtual void PostDestroyThreads() OVERRIDE {} |
| 42 | 43 |
| 43 ui::Clipboard* GetClipboard(); | 44 ui::Clipboard* GetClipboard(); |
| 44 ShellDevToolsDelegate* devtools_delegate() { return devtools_delegate_; } | 45 ShellDevToolsDelegate* devtools_delegate() { return devtools_delegate_; } |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 scoped_ptr<ShellBrowserContext> browser_context_; | 48 scoped_ptr<ShellBrowserContext> browser_context_; |
| 48 | 49 |
| 49 scoped_ptr<ui::Clipboard> clipboard_; | 50 scoped_ptr<ui::Clipboard> clipboard_; |
| 50 ShellDevToolsDelegate* devtools_delegate_; | 51 ShellDevToolsDelegate* devtools_delegate_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 53 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace content | 56 } // namespace content |
| 56 | 57 |
| 57 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ | 58 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ |
| OLD | NEW |