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

Side by Side Diff: content/browser/devtools/devtools_agent_host_impl.h

Issue 2361613002: DevTools: untangle device discovery request from the devtools android bridge. (Closed)
Patch Set: for landing Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DEVTOOLS_AGENT_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 void ForceAttachClient(DevToolsAgentHostClient* client) override; 39 void ForceAttachClient(DevToolsAgentHostClient* client) override;
40 bool DetachClient(DevToolsAgentHostClient* client) override; 40 bool DetachClient(DevToolsAgentHostClient* client) override;
41 bool DispatchProtocolMessage(DevToolsAgentHostClient* client, 41 bool DispatchProtocolMessage(DevToolsAgentHostClient* client,
42 const std::string& message) override; 42 const std::string& message) override;
43 bool IsAttached() override; 43 bool IsAttached() override;
44 void InspectElement(DevToolsAgentHostClient* client, int x, int y) override; 44 void InspectElement(DevToolsAgentHostClient* client, int x, int y) override;
45 std::string GetId() override; 45 std::string GetId() override;
46 std::string GetParentId() override; 46 std::string GetParentId() override;
47 std::string GetDescription() override; 47 std::string GetDescription() override;
48 GURL GetFaviconURL() override; 48 GURL GetFaviconURL() override;
49 std::string GetFrontendURL() override;
49 base::TimeTicks GetLastActivityTime() override; 50 base::TimeTicks GetLastActivityTime() override;
50 BrowserContext* GetBrowserContext() override; 51 BrowserContext* GetBrowserContext() override;
51 WebContents* GetWebContents() override; 52 WebContents* GetWebContents() override;
52 void DisconnectWebContents() override; 53 void DisconnectWebContents() override;
53 void ConnectWebContents(WebContents* wc) override; 54 void ConnectWebContents(WebContents* wc) override;
54 bool Inspect() override; 55
56 bool Inspect();
55 57
56 // DevToolsProtocolDelegate implementation. 58 // DevToolsProtocolDelegate implementation.
57 void SendProtocolResponse(int session_id, 59 void SendProtocolResponse(int session_id,
58 const std::string& message) override; 60 const std::string& message) override;
59 void SendProtocolNotification(const std::string& message) override; 61 void SendProtocolNotification(const std::string& message) override;
60 62
61 protected: 63 protected:
62 DevToolsAgentHostImpl(const std::string& id); 64 DevToolsAgentHostImpl(const std::string& id);
63 ~DevToolsAgentHostImpl() override; 65 ~DevToolsAgentHostImpl() override;
64 66
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 SendMessageCallback callback_; 101 SendMessageCallback callback_;
100 std::string message_buffer_; 102 std::string message_buffer_;
101 uint32_t message_buffer_size_; 103 uint32_t message_buffer_size_;
102 std::string state_cookie_; 104 std::string state_cookie_;
103 int last_call_id_; 105 int last_call_id_;
104 }; 106 };
105 107
106 } // namespace content 108 } // namespace content
107 109
108 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ 110 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698