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 int PreCreateThreads() override; |
42 void PreMainMessageLoopStart() override; | 43 void PreMainMessageLoopStart() override; |
43 void PostMainMessageLoopStart() override; | 44 void PostMainMessageLoopStart() override; |
44 void PreMainMessageLoopRun() override; | 45 void PreMainMessageLoopRun() override; |
45 bool MainMessageLoopRun(int* result_code) override; | 46 bool MainMessageLoopRun(int* result_code) override; |
46 void PostMainMessageLoopRun() override; | 47 void PostMainMessageLoopRun() override; |
47 void PostDestroyThreads() override; | 48 void PostDestroyThreads() override; |
48 | 49 |
49 devtools_http_handler::DevToolsHttpHandler* devtools_http_handler() { | 50 devtools_http_handler::DevToolsHttpHandler* devtools_http_handler() { |
50 return devtools_http_handler_.get(); | 51 return devtools_http_handler_.get(); |
51 } | 52 } |
(...skipping 29 matching lines...) Expand all Loading... |
81 bool run_message_loop_; | 82 bool run_message_loop_; |
82 | 83 |
83 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; | 84 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 86 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace content | 89 } // namespace content |
89 | 90 |
90 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 91 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |