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

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

Issue 2531313002: Expose the full API for attaching devtools clients: (Closed)
Patch Set: Addressed code review comments Created 4 years 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_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 static std::unique_ptr<HeadlessWebContentsImpl> CreateFromWebContents( 51 static std::unique_ptr<HeadlessWebContentsImpl> CreateFromWebContents(
52 content::WebContents* web_contents, 52 content::WebContents* web_contents,
53 HeadlessBrowserContextImpl* browser_context); 53 HeadlessBrowserContextImpl* browser_context);
54 54
55 // HeadlessWebContents implementation: 55 // HeadlessWebContents implementation:
56 void AddObserver(Observer* observer) override; 56 void AddObserver(Observer* observer) override;
57 void RemoveObserver(Observer* observer) override; 57 void RemoveObserver(Observer* observer) override;
58 HeadlessDevToolsTarget* GetDevToolsTarget() override; 58 HeadlessDevToolsTarget* GetDevToolsTarget() override;
59 59
60 // HeadlessDevToolsTarget implementation: 60 // HeadlessDevToolsTarget implementation:
61 void AttachClient(HeadlessDevToolsClient* client) override; 61 bool AttachClient(HeadlessDevToolsClient* client) override;
62 void ForceAttachClient(HeadlessDevToolsClient* client) override;
62 void DetachClient(HeadlessDevToolsClient* client) override; 63 void DetachClient(HeadlessDevToolsClient* client) override;
64 bool IsAttached() override;
63 65
64 // RenderProcessHostObserver implementation: 66 // RenderProcessHostObserver implementation:
65 void RenderProcessExited(content::RenderProcessHost* host, 67 void RenderProcessExited(content::RenderProcessHost* host,
66 base::TerminationStatus status, 68 base::TerminationStatus status,
67 int exit_code) override; 69 int exit_code) override;
68 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override; 70 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override;
69 71
70 // content::WebContentsObserver implementation: 72 // content::WebContentsObserver implementation:
71 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; 73 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override;
72 74
(...skipping 30 matching lines...) Expand all
103 std::unordered_map<HeadlessWebContents::Observer*, 105 std::unordered_map<HeadlessWebContents::Observer*,
104 std::unique_ptr<WebContentsObserverAdapter>>; 106 std::unique_ptr<WebContentsObserverAdapter>>;
105 ObserverMap observer_map_; 107 ObserverMap observer_map_;
106 108
107 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContentsImpl); 109 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContentsImpl);
108 }; 110 };
109 111
110 } // namespace headless 112 } // namespace headless
111 113
112 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ 114 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_devtools_client_impl.cc ('k') | headless/lib/browser/headless_web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698