| OLD | NEW |
| 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 CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
| 6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/browser_main_parts.h" | 10 #include "content/public/browser/browser_main_parts.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class NetLog; | 25 class NetLog; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace content { | 28 namespace content { |
| 29 | 29 |
| 30 class ShellDevToolsDelegate; | 30 class ShellDevToolsDelegate; |
| 31 | 31 |
| 32 class ShellBrowserMainParts : public BrowserMainParts { | 32 class ShellBrowserMainParts : public BrowserMainParts { |
| 33 public: | 33 public: |
| 34 explicit ShellBrowserMainParts(const MainFunctionParams& parameters); | 34 explicit ShellBrowserMainParts(const MainFunctionParams& parameters); |
| 35 virtual ~ShellBrowserMainParts(); | 35 ~ShellBrowserMainParts() override; |
| 36 | 36 |
| 37 // BrowserMainParts overrides. | 37 // BrowserMainParts overrides. |
| 38 virtual void PreEarlyInitialization() override; | 38 void PreEarlyInitialization() override; |
| 39 virtual void PreMainMessageLoopStart() override; | 39 void PreMainMessageLoopStart() override; |
| 40 virtual void PostMainMessageLoopStart() override; | 40 void PostMainMessageLoopStart() override; |
| 41 virtual void PreMainMessageLoopRun() override; | 41 void PreMainMessageLoopRun() override; |
| 42 virtual bool MainMessageLoopRun(int* result_code) override; | 42 bool MainMessageLoopRun(int* result_code) override; |
| 43 virtual void PostMainMessageLoopRun() override; | 43 void PostMainMessageLoopRun() override; |
| 44 | 44 |
| 45 ShellDevToolsDelegate* devtools_delegate() { | 45 ShellDevToolsDelegate* devtools_delegate() { |
| 46 return devtools_delegate_.get(); | 46 return devtools_delegate_.get(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 ShellBrowserContext* browser_context() { return browser_context_.get(); } | 49 ShellBrowserContext* browser_context() { return browser_context_.get(); } |
| 50 ShellBrowserContext* off_the_record_browser_context() { | 50 ShellBrowserContext* off_the_record_browser_context() { |
| 51 return off_the_record_browser_context_.get(); | 51 return off_the_record_browser_context_.get(); |
| 52 } | 52 } |
| 53 | 53 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 77 bool run_message_loop_; | 77 bool run_message_loop_; |
| 78 | 78 |
| 79 scoped_ptr<ShellDevToolsDelegate> devtools_delegate_; | 79 scoped_ptr<ShellDevToolsDelegate> devtools_delegate_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 81 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace content | 84 } // namespace content |
| 85 | 85 |
| 86 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 86 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |