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

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

Issue 1674263002: headless: Initial headless embedder API implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add pak file generation. Created 4 years, 10 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
(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_WEB_CONTENTS_IMPL_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_
7
8 #include "headless/public/headless_web_contents.h"
9
10 namespace aura {
11 class Window;
12 }
13
14 namespace content {
15 class WebContents;
16 class BrowserContext;
17 }
18
19 namespace gfx {
20 class Size;
21 }
22
23 namespace headless {
24
25 class HeadlessWebContentsImpl : public HeadlessWebContents {
26 public:
27 ~HeadlessWebContentsImpl() override;
28
29 // HeadlessWebContents implementation:
30 void OpenURL(const GURL& url) override;
31
32 content::WebContents* web_contents() const;
33
34 private:
35 friend class HeadlessBrowserImpl;
36
37 HeadlessWebContentsImpl(content::BrowserContext* context,
38 aura::Window* parent_window,
39 const gfx::Size& initial_size);
40
41 class Delegate;
42 scoped_ptr<Delegate> web_contents_delegate_;
43 scoped_ptr<content::WebContents> web_contents_;
44
45 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContentsImpl);
46 };
47
48 } // namespace headless
49
50 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698