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

Side by Side Diff: content/browser/devtools/protocol/browser_handler.h

Issue 2119063002: Add commands to manage tabs and contexts to Browser Domain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes for Sami Created 4 years, 5 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
OLDNEW
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 15 matching lines...) Expand all
26 class BrowserHandler : public DevToolsAgentHostClient { 26 class BrowserHandler : public DevToolsAgentHostClient {
27 public: 27 public:
28 using Response = DevToolsProtocolClient::Response; 28 using Response = DevToolsProtocolClient::Response;
29 29
30 BrowserHandler(); 30 BrowserHandler();
31 ~BrowserHandler() override; 31 ~BrowserHandler() override;
32 32
33 void SetClient(std::unique_ptr<Client> client); 33 void SetClient(std::unique_ptr<Client> client);
34 34
35 using TargetInfos = std::vector<scoped_refptr<devtools::browser::TargetInfo>>; 35 using TargetInfos = std::vector<scoped_refptr<devtools::browser::TargetInfo>>;
36
37 Response NewBrowserContext(std::string* out_contextId);
38 Response CloseBrowserContext(const std::string& contextId, bool* out_success);
pfeldman 2016/07/06 17:38:09 context_id
alex clarke (OOO till 29th) 2016/07/06 20:25:06 Done.
39 Response NewPage(const std::string& in_initialUrl,
pfeldman 2016/07/06 17:38:09 ditto
alex clarke (OOO till 29th) 2016/07/06 20:25:06 Done.
40 const int* in_width,
pfeldman 2016/07/06 17:38:09 Providing a subset of the device metrics data seem
alex clarke (OOO till 29th) 2016/07/06 20:25:06 I'm not quite sure what you are suggesting. I not
41 const int* in_height,
42 const std::string* in_context,
43 std::string* out_targetId);
44 Response ClosePage(const std::string& targetId, bool* out_success);
36 Response GetTargets(TargetInfos* infos); 45 Response GetTargets(TargetInfos* infos);
37 Response Attach(const std::string& targetId); 46 Response Attach(const std::string& targetId);
38 Response Detach(const std::string& targetId); 47 Response Detach(const std::string& targetId);
39 Response SendMessage(const std::string& targetId, const std::string& message); 48 Response SendMessage(const std::string& targetId, const std::string& message);
40 49
41 private: 50 private:
42 void DispatchProtocolMessage(DevToolsAgentHost* agent_host, 51 void DispatchProtocolMessage(DevToolsAgentHost* agent_host,
43 const std::string& message) override; 52 const std::string& message) override;
44 53
45 void AgentHostClosed(DevToolsAgentHost* agent_host, 54 void AgentHostClosed(DevToolsAgentHost* agent_host,
46 bool replaced_with_another_client) override; 55 bool replaced_with_another_client) override;
47 56
48 std::unique_ptr<Client> client_; 57 std::unique_ptr<Client> client_;
49 DISALLOW_COPY_AND_ASSIGN(BrowserHandler); 58 DISALLOW_COPY_AND_ASSIGN(BrowserHandler);
50 }; 59 };
51 60
52 } // namespace browser 61 } // namespace browser
53 } // namespace devtools 62 } // namespace devtools
54 } // namespace content 63 } // namespace content
55 64
56 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ 65 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698