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

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

Issue 2775693003: Fix missing HEADLESS_EXPORT defines (Closed)
Patch Set: Do not include changes in BUILD fiel 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
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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "content/public/app/content_main_delegate.h" 13 #include "content/public/app/content_main_delegate.h"
14 #include "headless/lib/browser/headless_platform_event_source.h" 14 #include "headless/lib/browser/headless_platform_event_source.h"
15 #include "headless/lib/headless_content_client.h" 15 #include "headless/lib/headless_content_client.h"
16 #include "headless/public/headless_export.h"
16 17
17 namespace base { 18 namespace base {
18 class CommandLine; 19 class CommandLine;
19 } 20 }
20 21
21 namespace headless { 22 namespace headless {
22 23
23 class HeadlessBrowserImpl; 24 class HeadlessBrowserImpl;
24 class HeadlessContentBrowserClient; 25 class HeadlessContentBrowserClient;
25 26
26 class HeadlessContentMainDelegate : public content::ContentMainDelegate { 27 class HEADLESS_EXPORT HeadlessContentMainDelegate
Sami 2017/03/24 10:28:40 Ditto.
dvallet 2017/03/27 02:44:02 Done.
28 : public content::ContentMainDelegate {
27 public: 29 public:
28 explicit HeadlessContentMainDelegate( 30 explicit HeadlessContentMainDelegate(
29 std::unique_ptr<HeadlessBrowserImpl> browser); 31 std::unique_ptr<HeadlessBrowserImpl> browser);
30 ~HeadlessContentMainDelegate() override; 32 ~HeadlessContentMainDelegate() override;
31 33
32 // content::ContentMainDelegate implementation: 34 // content::ContentMainDelegate implementation:
33 bool BasicStartupComplete(int* exit_code) override; 35 bool BasicStartupComplete(int* exit_code) override;
34 void PreSandboxStartup() override; 36 void PreSandboxStartup() override;
35 int RunProcess( 37 int RunProcess(
36 const std::string& process_type, 38 const std::string& process_type,
(...skipping 20 matching lines...) Expand all
57 HeadlessPlatformEventSource platform_event_source_; 59 HeadlessPlatformEventSource platform_event_source_;
58 60
59 std::unique_ptr<HeadlessBrowserImpl> browser_; 61 std::unique_ptr<HeadlessBrowserImpl> browser_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(HeadlessContentMainDelegate); 63 DISALLOW_COPY_AND_ASSIGN(HeadlessContentMainDelegate);
62 }; 64 };
63 65
64 } // namespace headless 66 } // namespace headless
65 67
66 #endif // HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_ 68 #endif // HEADLESS_LIB_HEADLESS_CONTENT_MAIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698