Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: headless/lib/headless_content_main_delegate.h

Issue 2693943004: headless: Add support for minidump generation on Linux (Closed)
Patch Set: Formatting Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 const content::MainFunctionParams& main_function_params) override; 37 const content::MainFunctionParams& main_function_params) override;
38 void ZygoteForked() override; 38 void ZygoteForked() override;
39 content::ContentBrowserClient* CreateContentBrowserClient() override; 39 content::ContentBrowserClient* CreateContentBrowserClient() override;
40 40
41 HeadlessBrowserImpl* browser() const { return browser_.get(); } 41 HeadlessBrowserImpl* browser() const { return browser_.get(); }
42 42
43 private: 43 private:
44 friend class HeadlessBrowserTest; 44 friend class HeadlessBrowserTest;
45 45
46 void InitLogging(const base::CommandLine& command_line); 46 void InitLogging(const base::CommandLine& command_line);
47 void InitCrashReporter(const base::CommandLine& command_line);
47 static void InitializeResourceBundle(); 48 static void InitializeResourceBundle();
48 49
49 static HeadlessContentMainDelegate* GetInstance(); 50 static HeadlessContentMainDelegate* GetInstance();
50 51
51 std::unique_ptr<HeadlessContentBrowserClient> browser_client_; 52 std::unique_ptr<HeadlessContentBrowserClient> browser_client_;
52 HeadlessContentClient content_client_; 53 HeadlessContentClient content_client_;
53 HeadlessPlatformEventSource platform_event_source_; 54 HeadlessPlatformEventSource platform_event_source_;
54 55
55 std::unique_ptr<HeadlessBrowserImpl> browser_; 56 std::unique_ptr<HeadlessBrowserImpl> browser_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(HeadlessContentMainDelegate); 58 DISALLOW_COPY_AND_ASSIGN(HeadlessContentMainDelegate);
58 }; 59 };
59 60
60 } // namespace headless 61 } // namespace headless
61 62
62 #endif // HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ 63 #endif // HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698