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

Side by Side Diff: headless/lib/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: Review comments. 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_HEADLESS_WEB_CONTENTS_IMPL_H_
6 #define HEADLESS_LIB_HEADLESS_WEB_CONTENTS_IMPL_H_
7
8 #include "headless/public/headless_web_contents.h"
9
10 class SkBitmap;
11
12 namespace aura {
13 class WindowTreeHost;
14 }
15
16 namespace content {
17 class WebContents;
18 class BrowserContext;
19 }
20
21 namespace gfx {
22 class Size;
23 }
24
25 namespace headless {
26 class HeadlessServiceContext;
27
28 class HeadlessWebContentsImpl : public HeadlessWebContents {
29 public:
30 ~HeadlessWebContentsImpl() override;
31
32 // HeadlessWebContents implementation:
33 void OpenURL(const GURL& url) override;
34
35 content::WebContents* web_contents();
alex clarke (OOO till 29th) 2016/02/10 17:49:22 const?
Sami 2016/02/10 18:47:38 Done.
36
37 private:
38 friend class HeadlessBrowserImpl;
39
40 HeadlessWebContentsImpl(content::BrowserContext* context,
41 const gfx::Size& initial_size);
42
43 class Delegate;
44 scoped_ptr<Delegate> web_contents_delegate_;
45 scoped_ptr<content::WebContents> web_contents_;
46 scoped_ptr<aura::WindowTreeHost> window_tree_host_;
47
48 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContentsImpl);
49 };
50
51 } // namespace headless
52
53 #endif // HEADLESS_LIB_HEADLESS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698