| 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_PARTS_H_ | 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
| 6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ | 6 #define CONTENT_SHELL_SHELL_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 12 matching lines...) Expand all Loading... |
| 23 class ShellBrowserContext; | 23 class ShellBrowserContext; |
| 24 class ShellDevToolsDelegate; | 24 class ShellDevToolsDelegate; |
| 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 // content::BrowserMainParts overrides. | 32 // content::BrowserMainParts overrides. |
| 33 virtual void PreEarlyInitialization() OVERRIDE {} | 33 virtual void PreEarlyInitialization() OVERRIDE; |
| 34 virtual void PostEarlyInitialization() OVERRIDE {} | 34 virtual void PostEarlyInitialization() OVERRIDE {} |
| 35 virtual void PreMainMessageLoopStart() OVERRIDE; | 35 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 36 virtual void PostMainMessageLoopStart() OVERRIDE {} | 36 virtual void PostMainMessageLoopStart() OVERRIDE {} |
| 37 virtual void ToolkitInitialized() OVERRIDE {} | 37 virtual void ToolkitInitialized() OVERRIDE {} |
| 38 virtual int PreCreateThreads() OVERRIDE; | 38 virtual int PreCreateThreads() OVERRIDE; |
| 39 virtual void PreMainMessageLoopRun() OVERRIDE; | 39 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 40 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 40 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 41 virtual void PostMainMessageLoopRun() OVERRIDE; | 41 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 42 virtual void PostDestroyThreads() OVERRIDE {} | 42 virtual void PostDestroyThreads() OVERRIDE {} |
| 43 | 43 |
| 44 ui::Clipboard* GetClipboard(); | 44 ui::Clipboard* GetClipboard(); |
| 45 ShellDevToolsDelegate* devtools_delegate() { return devtools_delegate_; } | 45 ShellDevToolsDelegate* devtools_delegate() { return devtools_delegate_; } |
| 46 | 46 |
| 47 ShellBrowserContext* browser_context() { return browser_context_.get(); } | 47 ShellBrowserContext* browser_context() { return browser_context_.get(); } |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 scoped_ptr<ShellBrowserContext> browser_context_; | 50 scoped_ptr<ShellBrowserContext> browser_context_; |
| 51 | 51 |
| 52 scoped_ptr<ui::Clipboard> clipboard_; | 52 scoped_ptr<ui::Clipboard> clipboard_; |
| 53 ShellDevToolsDelegate* devtools_delegate_; | 53 ShellDevToolsDelegate* devtools_delegate_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 55 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace content | 58 } // namespace content |
| 59 | 59 |
| 60 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ | 60 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |