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 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 #if !defined(OS_MACOSX) && defined(OS_POSIX) && !defined(OS_ANDROID) | 47 #if !defined(OS_MACOSX) && defined(OS_POSIX) && !defined(OS_ANDROID) |
48 void ZygoteForked() override; | 48 void ZygoteForked() override; |
49 #endif | 49 #endif |
50 | 50 |
51 private: | 51 private: |
52 friend class HeadlessBrowserTest; | 52 friend class HeadlessBrowserTest; |
53 | 53 |
54 void InitLogging(const base::CommandLine& command_line); | 54 void InitLogging(const base::CommandLine& command_line); |
55 void InitCrashReporter(const base::CommandLine& command_line); | 55 void InitCrashReporter(const base::CommandLine& command_line); |
| 56 #if defined(OS_MACOSX) |
| 57 void InitMacCrashReporter(const base::CommandLine& command_line, |
| 58 const std::string& process_type); |
| 59 #endif |
56 static void InitializeResourceBundle(); | 60 static void InitializeResourceBundle(); |
57 | 61 |
58 static HeadlessContentMainDelegate* GetInstance(); | 62 static HeadlessContentMainDelegate* GetInstance(); |
59 | 63 |
60 std::unique_ptr<HeadlessContentBrowserClient> browser_client_; | 64 std::unique_ptr<HeadlessContentBrowserClient> browser_client_; |
61 std::unique_ptr<HeadlessContentRendererClient> renderer_client_; | 65 std::unique_ptr<HeadlessContentRendererClient> renderer_client_; |
62 HeadlessContentClient content_client_; | 66 HeadlessContentClient content_client_; |
63 HeadlessPlatformEventSource platform_event_source_; | 67 HeadlessPlatformEventSource platform_event_source_; |
64 | 68 |
65 std::unique_ptr<HeadlessBrowserImpl> browser_; | 69 std::unique_ptr<HeadlessBrowserImpl> browser_; |
66 | 70 |
67 DISALLOW_COPY_AND_ASSIGN(HeadlessContentMainDelegate); | 71 DISALLOW_COPY_AND_ASSIGN(HeadlessContentMainDelegate); |
68 }; | 72 }; |
69 | 73 |
70 } // namespace headless | 74 } // namespace headless |
71 | 75 |
72 #endif // HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ | 76 #endif // HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ |
OLD | NEW |