| OLD | NEW |
| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // won't return a valid value until Observer::DevToolsTargetReady has been | 76 // won't return a valid value until Observer::DevToolsTargetReady has been |
| 77 // signaled. | 77 // signaled. |
| 78 virtual HeadlessDevToolsTarget* GetDevToolsTarget() = 0; | 78 virtual HeadlessDevToolsTarget* GetDevToolsTarget() = 0; |
| 79 | 79 |
| 80 // Close this page. |HeadlessWebContents| object will be destroyed. | 80 // Close this page. |HeadlessWebContents| object will be destroyed. |
| 81 virtual void Close() = 0; | 81 virtual void Close() = 0; |
| 82 | 82 |
| 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 frame tree node 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 virtual bool GetFrameTreeNodeIdForDevToolsAgentHostId( | 89 virtual bool GetFrameTreeNodeIdForDevToolsAgentHostId( |
| 89 const std::string& devtools_agent_host_id, | 90 const std::string& devtools_agent_host_id, |
| 90 int* frame_tree_node_id) const = 0; | 91 int* frame_tree_node_id) const = 0; |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 friend class HeadlessWebContentsImpl; | 94 friend class HeadlessWebContentsImpl; |
| 94 HeadlessWebContents() {} | 95 HeadlessWebContents() {} |
| 95 | 96 |
| 96 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContents); | 97 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContents); |
| 97 }; | 98 }; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 gfx::Size window_size_; | 171 gfx::Size window_size_; |
| 171 std::list<MojoService> mojo_services_; | 172 std::list<MojoService> mojo_services_; |
| 172 bool create_tab_socket_ = false; | 173 bool create_tab_socket_ = false; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(Builder); | 175 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace headless | 178 } // namespace headless |
| 178 | 179 |
| 179 #endif // HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_ | 180 #endif // HEADLESS_PUBLIC_HEADLESS_WEB_CONTENTS_H_ |
| OLD | NEW |