Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ | 5 #ifndef HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ |
| 6 #define HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ | 6 #define HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 explicit HeadlessContentMainDelegate( | 23 explicit HeadlessContentMainDelegate( |
| 24 std::unique_ptr<HeadlessBrowserImpl> browser); | 24 std::unique_ptr<HeadlessBrowserImpl> browser); |
| 25 ~HeadlessContentMainDelegate() override; | 25 ~HeadlessContentMainDelegate() override; |
| 26 | 26 |
| 27 // content::ContentMainDelegate implementation: | 27 // content::ContentMainDelegate implementation: |
| 28 bool BasicStartupComplete(int* exit_code) override; | 28 bool BasicStartupComplete(int* exit_code) override; |
| 29 void PreSandboxStartup() override; | 29 void PreSandboxStartup() override; |
| 30 int RunProcess( | 30 int RunProcess( |
| 31 const std::string& process_type, | 31 const std::string& process_type, |
| 32 const content::MainFunctionParams& main_function_params) override; | 32 const content::MainFunctionParams& main_function_params) override; |
| 33 void ZygoteForked() override; | 33 void ZygoteForked(); |
|
dvallet
2017/02/13 03:20:24
Please change to:
#if defined(OS_WIN)
void Zygot
| |
| 34 content::ContentBrowserClient* CreateContentBrowserClient() override; | 34 content::ContentBrowserClient* CreateContentBrowserClient() override; |
| 35 | 35 |
| 36 HeadlessBrowserImpl* browser() const { return browser_.get(); } | 36 HeadlessBrowserImpl* browser() const { return browser_.get(); } |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 friend class HeadlessBrowserTest; | 39 friend class HeadlessBrowserTest; |
| 40 | 40 |
| 41 static void InitializeResourceBundle(); | 41 static void InitializeResourceBundle(); |
| 42 | 42 |
| 43 static HeadlessContentMainDelegate* GetInstance(); | 43 static HeadlessContentMainDelegate* GetInstance(); |
| 44 | 44 |
| 45 std::unique_ptr<HeadlessContentBrowserClient> browser_client_; | 45 std::unique_ptr<HeadlessContentBrowserClient> browser_client_; |
| 46 HeadlessContentClient content_client_; | 46 HeadlessContentClient content_client_; |
| 47 HeadlessPlatformEventSource platform_event_source_; | 47 HeadlessPlatformEventSource platform_event_source_; |
| 48 | 48 |
| 49 std::unique_ptr<HeadlessBrowserImpl> browser_; | 49 std::unique_ptr<HeadlessBrowserImpl> browser_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(HeadlessContentMainDelegate); | 51 DISALLOW_COPY_AND_ASSIGN(HeadlessContentMainDelegate); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace headless | 54 } // namespace headless |
| 55 | 55 |
| 56 #endif // HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ | 56 #endif // HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ |
| OLD | NEW |