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_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ |
6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "content/public/browser/browser_main_parts.h" | 10 #include "content/public/browser/browser_main_parts.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class HeadlessBrowserMainParts : public content::BrowserMainParts { | 22 class HeadlessBrowserMainParts : public content::BrowserMainParts { |
23 public: | 23 public: |
24 explicit HeadlessBrowserMainParts(HeadlessBrowserImpl* browser); | 24 explicit HeadlessBrowserMainParts(HeadlessBrowserImpl* browser); |
25 ~HeadlessBrowserMainParts() override; | 25 ~HeadlessBrowserMainParts() override; |
26 | 26 |
27 // content::BrowserMainParts implementation: | 27 // content::BrowserMainParts implementation: |
28 void PreMainMessageLoopRun() override; | 28 void PreMainMessageLoopRun() override; |
29 void PostMainMessageLoopRun() override; | 29 void PostMainMessageLoopRun() override; |
30 | 30 |
31 HeadlessBrowserContextImpl* default_browser_context() const; | |
32 | |
33 private: | 31 private: |
34 HeadlessBrowserImpl* browser_; // Not owned. | 32 HeadlessBrowserImpl* browser_; // Not owned. |
35 std::unique_ptr<HeadlessBrowserContextImpl> browser_context_; | |
36 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler> | 33 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler> |
37 devtools_http_handler_; | 34 devtools_http_handler_; |
38 | 35 |
39 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserMainParts); | 36 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserMainParts); |
40 }; | 37 }; |
41 | 38 |
42 } // namespace headless | 39 } // namespace headless |
43 | 40 |
44 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ | 41 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |