| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace content { | 33 namespace content { |
| 34 | 34 |
| 35 class ShellBrowserMainParts : public BrowserMainParts { | 35 class ShellBrowserMainParts : public BrowserMainParts { |
| 36 public: | 36 public: |
| 37 explicit ShellBrowserMainParts(const MainFunctionParams& parameters); | 37 explicit ShellBrowserMainParts(const MainFunctionParams& parameters); |
| 38 ~ShellBrowserMainParts() override; | 38 ~ShellBrowserMainParts() override; |
| 39 | 39 |
| 40 // BrowserMainParts overrides. | 40 // BrowserMainParts overrides. |
| 41 void PreEarlyInitialization() override; | 41 void PreEarlyInitialization() override; |
| 42 #if defined(OS_ANDROID) |
| 43 int PreCreateThreads() override; |
| 44 #endif |
| 42 void PreMainMessageLoopStart() override; | 45 void PreMainMessageLoopStart() override; |
| 43 void PostMainMessageLoopStart() override; | 46 void PostMainMessageLoopStart() override; |
| 44 void PreMainMessageLoopRun() override; | 47 void PreMainMessageLoopRun() override; |
| 45 bool MainMessageLoopRun(int* result_code) override; | 48 bool MainMessageLoopRun(int* result_code) override; |
| 46 void PostMainMessageLoopRun() override; | 49 void PostMainMessageLoopRun() override; |
| 47 void PostDestroyThreads() override; | 50 void PostDestroyThreads() override; |
| 48 | 51 |
| 49 devtools_http_handler::DevToolsHttpHandler* devtools_http_handler() { | 52 devtools_http_handler::DevToolsHttpHandler* devtools_http_handler() { |
| 50 return devtools_http_handler_.get(); | 53 return devtools_http_handler_.get(); |
| 51 } | 54 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 81 bool run_message_loop_; | 84 bool run_message_loop_; |
| 82 | 85 |
| 83 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; | 86 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; |
| 84 | 87 |
| 85 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 88 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 86 }; | 89 }; |
| 87 | 90 |
| 88 } // namespace content | 91 } // namespace content |
| 89 | 92 |
| 90 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 93 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |