OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ |
| 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ |
| 7 |
| 8 #include "content/public/browser/browser_main_parts.h" |
| 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
| 12 namespace devtools_http_handler { |
| 13 class DevToolsHttpHandler; |
| 14 } |
| 15 |
| 16 namespace headless { |
| 17 |
| 18 class HeadlessBrowser; |
| 19 class HeadlessBrowserContext; |
| 20 |
| 21 class HeadlessBrowserMainParts : public content::BrowserMainParts { |
| 22 public: |
| 23 HeadlessBrowserMainParts(); |
| 24 ~HeadlessBrowserMainParts() override; |
| 25 |
| 26 void PreMainMessageLoopRun() override; |
| 27 void PostMainMessageLoopRun() override; |
| 28 |
| 29 HeadlessBrowserContext* browser_context(); |
| 30 private: |
| 31 scoped_ptr<HeadlessBrowserContext> browser_context_; |
| 32 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler
_; |
| 33 }; |
| 34 |
| 35 } // namespace headless |
| 36 |
| 37 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |