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

Side by Side Diff: headless/lib/browser/headless_browser_main_parts.h

Issue 2745323003: Add CrAppProtocol for headless on Mac (Closed)
Patch Set: updated upstream, small nit Created 3 years, 9 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
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_main_parts_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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"
11 #include "headless/public/headless_browser.h" 11 #include "headless/public/headless_browser.h"
12 12
13 namespace headless { 13 namespace headless {
14 14
15 class HeadlessBrowserImpl; 15 class HeadlessBrowserImpl;
16 16
17 class HeadlessBrowserMainParts : public content::BrowserMainParts { 17 class HeadlessBrowserMainParts : public content::BrowserMainParts {
18 public: 18 public:
19 explicit HeadlessBrowserMainParts(HeadlessBrowserImpl* browser); 19 explicit HeadlessBrowserMainParts(HeadlessBrowserImpl* browser);
20 ~HeadlessBrowserMainParts() override; 20 ~HeadlessBrowserMainParts() override;
21 21
22 // content::BrowserMainParts implementation: 22 // content::BrowserMainParts implementation:
23 void PreMainMessageLoopRun() override; 23 void PreMainMessageLoopRun() override;
24 void PostMainMessageLoopRun() override; 24 void PostMainMessageLoopRun() override;
25 #if defined(OS_MACOSX)
26 void PreMainMessageLoopStart() override;
27 #endif
25 28
26 private: 29 private:
27 HeadlessBrowserImpl* browser_; // Not owned. 30 HeadlessBrowserImpl* browser_; // Not owned.
28 31
29 bool devtools_http_handler_started_; 32 bool devtools_http_handler_started_;
30 33
31 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserMainParts); 34 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserMainParts);
32 }; 35 };
33 36
34 } // namespace headless 37 } // namespace headless
35 38
36 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_ 39 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_main_parts_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698