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

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

Issue 2812253002: Headless: Support sending and receiving of raw protocol messages (Closed)
Patch Set: Fix tests 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
« no previous file with comments | « headless/public/headless_devtools_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // won't return a valid value until Observer::DevToolsTargetReady has been 68 // won't return a valid value until Observer::DevToolsTargetReady has been
69 // signaled. 69 // signaled.
70 virtual HeadlessDevToolsTarget* GetDevToolsTarget() = 0; 70 virtual HeadlessDevToolsTarget* GetDevToolsTarget() = 0;
71 71
72 // Close this page. |HeadlessWebContents| object will be destroyed. 72 // Close this page. |HeadlessWebContents| object will be destroyed.
73 virtual void Close() = 0; 73 virtual void Close() = 0;
74 74
75 // Returns the headless tab socket for JS -> C++ if one was created. 75 // Returns the headless tab socket for JS -> C++ if one was created.
76 virtual HeadlessTabSocket* GetHeadlessTabSocket() const = 0; 76 virtual HeadlessTabSocket* GetHeadlessTabSocket() const = 0;
77 77
78 // Returns the frame tree node id associated with the |devtools_agent_host_id|
79 // if any.
80 virtual bool GetFrameTreeNodeIdForDevToolsAgentHostId(
81 const std::string& devtools_agent_host_id,
82 int* frame_tree_node_id) const = 0;
83
78 private: 84 private:
79 friend class HeadlessWebContentsImpl; 85 friend class HeadlessWebContentsImpl;
80 HeadlessWebContents() {} 86 HeadlessWebContents() {}
81 87
82 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContents); 88 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContents);
83 }; 89 };
84 90
85 class HEADLESS_EXPORT HeadlessWebContents::Builder { 91 class HEADLESS_EXPORT HeadlessWebContents::Builder {
86 public: 92 public:
87 ~Builder(); 93 ~Builder();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 gfx::Size window_size_; 162 gfx::Size window_size_;
157 std::list<MojoService> mojo_services_; 163 std::list<MojoService> mojo_services_;
158 bool create_tab_socket_ = false; 164 bool create_tab_socket_ = false;
159 165
160 DISALLOW_COPY_AND_ASSIGN(Builder); 166 DISALLOW_COPY_AND_ASSIGN(Builder);
161 }; 167 };
162 168
163 } // namespace headless 169 } // namespace headless
164 170
165 #endif // HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_ 171 #endif // HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « headless/public/headless_devtools_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698