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

Unified Diff: headless/lib/browser/headless_web_contents_impl.h

Issue 1858403003: headless: Require the user to pass in an initial URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: headless/lib/browser/headless_web_contents_impl.h
diff --git a/headless/lib/browser/headless_web_contents_impl.h b/headless/lib/browser/headless_web_contents_impl.h
index 2bbaefff770a8b6267783064a6774d92bc799cbe..e1cdc2d1615b59ea3e11d5f88e5d76b93982234b 100644
--- a/headless/lib/browser/headless_web_contents_impl.h
+++ b/headless/lib/browser/headless_web_contents_impl.h
@@ -28,22 +28,19 @@ class WebContentsObserverAdapter;
class HeadlessWebContentsImpl : public HeadlessWebContents {
public:
+ HeadlessWebContentsImpl(content::BrowserContext* context,
+ aura::Window* parent_window,
+ const gfx::Size& initial_size);
~HeadlessWebContentsImpl() override;
// HeadlessWebContents implementation:
- bool OpenURL(const GURL& url) override;
void AddObserver(Observer* observer) override;
void RemoveObserver(Observer* observer) override;
content::WebContents* web_contents() const;
+ bool OpenURL(const GURL& url);
private:
- friend class HeadlessBrowserImpl;
-
- HeadlessWebContentsImpl(content::BrowserContext* context,
- aura::Window* parent_window,
- const gfx::Size& initial_size);
-
class Delegate;
std::unique_ptr<Delegate> web_contents_delegate_;
std::unique_ptr<content::WebContents> web_contents_;

Powered by Google App Engine
This is Rietveld 408576698