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

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

Issue 2872543002: Headless: Move GetUntrustedDevToolsFrameIdForFrameTreeNodeId to public (Closed)
Patch Set: Created 3 years, 7 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/lib/frame_id_browsertest.cc ('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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Returns the headless tab socket for JS -> C++ if one was created. 83 // Returns the headless tab socket for JS -> C++ if one was created.
84 virtual HeadlessTabSocket* GetHeadlessTabSocket() const = 0; 84 virtual HeadlessTabSocket* GetHeadlessTabSocket() const = 0;
85 85
86 // Returns the FrameTreeNode Id associated with the |devtools_agent_host_id| 86 // Returns the FrameTreeNode Id associated with the |devtools_agent_host_id|
87 // if any. 87 // if any.
88 // TODO(alexclarke): Remove this, it doesn't work as expected. 88 // TODO(alexclarke): Remove this, it doesn't work as expected.
89 virtual bool GetFrameTreeNodeIdForDevToolsAgentHostId( 89 virtual bool GetFrameTreeNodeIdForDevToolsAgentHostId(
90 const std::string& devtools_agent_host_id, 90 const std::string& devtools_agent_host_id,
91 int* frame_tree_node_id) const = 0; 91 int* frame_tree_node_id) const = 0;
92 92
93 // Returns the devtools frame id corresponding to the |frame_tree_node_id|, if
94 // any. Note this relies on an IPC sent from blink during navigation.
95 virtual std::string GetUntrustedDevToolsFrameIdForFrameTreeNodeId(
96 int process_id,
97 int frame_tree_node_id) const = 0;
98
99 virtual int GetMainFrameRenderProcessId() const = 0;
100
93 private: 101 private:
94 friend class HeadlessWebContentsImpl; 102 friend class HeadlessWebContentsImpl;
95 HeadlessWebContents() {} 103 HeadlessWebContents() {}
96 104
97 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContents); 105 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContents);
98 }; 106 };
99 107
100 class HEADLESS_EXPORT HeadlessWebContents::Builder { 108 class HEADLESS_EXPORT HeadlessWebContents::Builder {
101 public: 109 public:
102 ~Builder(); 110 ~Builder();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 gfx::Size window_size_; 179 gfx::Size window_size_;
172 std::list<MojoService> mojo_services_; 180 std::list<MojoService> mojo_services_;
173 bool create_tab_socket_ = false; 181 bool create_tab_socket_ = false;
174 182
175 DISALLOW_COPY_AND_ASSIGN(Builder); 183 DISALLOW_COPY_AND_ASSIGN(Builder);
176 }; 184 };
177 185
178 } // namespace headless 186 } // namespace headless
179 187
180 #endif // HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_ 188 #endif // HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « headless/lib/frame_id_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698