OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | 10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 Response CreateBrowserContext(std::string* out_context_id); | 37 Response CreateBrowserContext(std::string* out_context_id); |
38 Response DisposeBrowserContext(const std::string& context_id, | 38 Response DisposeBrowserContext(const std::string& context_id, |
39 bool* out_success); | 39 bool* out_success); |
40 Response CreateTarget(const std::string& url, | 40 Response CreateTarget(const std::string& url, |
41 const int* width, | 41 const int* width, |
42 const int* height, | 42 const int* height, |
43 const std::string* context_id, | 43 const std::string* context_id, |
44 std::string* out_targetId); | 44 std::string* out_targetId); |
45 Response CloseTarget(const std::string& targetId, bool* out_success); | 45 Response CloseTarget(const std::string& targetId, bool* out_success); |
46 Response GetTargets(TargetInfos* infos); | 46 Response GetTargets(TargetInfos* infos); |
| 47 Response GetFrameSize(const std::string& targetId, int* width, int* height); |
| 48 Response SetFrameSize(const std::string& targetId, int width, int height); |
47 Response Attach(const std::string& targetId); | 49 Response Attach(const std::string& targetId); |
48 Response Detach(const std::string& targetId); | 50 Response Detach(const std::string& targetId); |
49 Response SendMessage(const std::string& targetId, const std::string& message); | 51 Response SendMessage(const std::string& targetId, const std::string& message); |
50 | 52 |
51 private: | 53 private: |
52 void DispatchProtocolMessage(DevToolsAgentHost* agent_host, | 54 void DispatchProtocolMessage(DevToolsAgentHost* agent_host, |
53 const std::string& message) override; | 55 const std::string& message) override; |
54 | 56 |
55 void AgentHostClosed(DevToolsAgentHost* agent_host, | 57 void AgentHostClosed(DevToolsAgentHost* agent_host, |
56 bool replaced_with_another_client) override; | 58 bool replaced_with_another_client) override; |
57 | 59 |
58 std::unique_ptr<Client> client_; | 60 std::unique_ptr<Client> client_; |
59 DISALLOW_COPY_AND_ASSIGN(BrowserHandler); | 61 DISALLOW_COPY_AND_ASSIGN(BrowserHandler); |
60 }; | 62 }; |
61 | 63 |
62 } // namespace browser | 64 } // namespace browser |
63 } // namespace devtools | 65 } // namespace devtools |
64 } // namespace content | 66 } // namespace content |
65 | 67 |
66 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ | 68 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ |
OLD | NEW |