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

Side by Side Diff: headless/public/headless_web_contents.h

Issue 2775693003: Fix missing HEADLESS_EXPORT defines (Closed)
Patch Set: Added extra headless_export Created 3 years, 8 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_PUBLIC_HEADLESS_WEB_CONTENTS_H_ 5 #ifndef HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_
6 #define HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_ 6 #define HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/process/kill.h" 14 #include "base/process/kill.h"
15 #include "headless/public/headless_export.h" 15 #include "headless/public/headless_export.h"
16 #include "mojo/public/cpp/bindings/interface_request.h" 16 #include "mojo/public/cpp/bindings/interface_request.h"
17 #include "ui/gfx/geometry/size.h" 17 #include "ui/gfx/geometry/size.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace headless { 20 namespace headless {
21 class HeadlessBrowserContextImpl; 21 class HeadlessBrowserContextImpl;
22 class HeadlessBrowserImpl; 22 class HeadlessBrowserImpl;
23 class HeadlessDevToolsTarget; 23 class HeadlessDevToolsTarget;
24 24
25 // Class representing contents of a browser tab. Should be accessed from browser 25 // Class representing contents of a browser tab. Should be accessed from browser
26 // main thread. 26 // main thread.
27 class HEADLESS_EXPORT HeadlessWebContents { 27 class HEADLESS_EXPORT HeadlessWebContents {
28 public: 28 public:
29 class Builder; 29 class HEADLESS_EXPORT Builder;
30 30
31 virtual ~HeadlessWebContents() {} 31 virtual ~HeadlessWebContents() {}
32 32
33 class Observer { 33 class HEADLESS_EXPORT Observer {
34 public: 34 public:
35 // All the following notifications will be called on browser main thread. 35 // All the following notifications will be called on browser main thread.
36 36
37 // Indicates that this HeadlessWebContents instance is now ready to be 37 // Indicates that this HeadlessWebContents instance is now ready to be
38 // inspected using a HeadlessDevToolsClient. 38 // inspected using a HeadlessDevToolsClient.
39 // 39 //
40 // TODO(altimin): Support this event for pages that aren't created by us. 40 // TODO(altimin): Support this event for pages that aren't created by us.
41 virtual void DevToolsTargetReady() {} 41 virtual void DevToolsTargetReady() {}
42 42
43 // This method is invoked when the process of the observed RenderProcessHost 43 // This method is invoked when the process of the observed RenderProcessHost
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 GURL initial_url_ = GURL("about:blank"); 146 GURL initial_url_ = GURL("about:blank");
147 gfx::Size window_size_; 147 gfx::Size window_size_;
148 std::list<MojoService> mojo_services_; 148 std::list<MojoService> mojo_services_;
149 149
150 DISALLOW_COPY_AND_ASSIGN(Builder); 150 DISALLOW_COPY_AND_ASSIGN(Builder);
151 }; 151 };
152 152
153 } // namespace headless 153 } // namespace headless
154 154
155 #endif // HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_ 155 #endif // HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « headless/lib/headless_content_main_delegate.h ('k') | headless/public/util/deterministic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698