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

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

Issue 2263843002: DevTools: merge devtools target with devtools host, part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for review Created 4 years, 4 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 25 matching lines...) Expand all
36 36
37 // Opens the inspector for this host. 37 // Opens the inspector for this host.
38 bool Inspect(BrowserContext* browser_context); 38 bool Inspect(BrowserContext* browser_context);
39 39
40 // DevToolsAgentHost implementation. 40 // DevToolsAgentHost implementation.
41 bool AttachClient(DevToolsAgentHostClient* client) override; 41 bool AttachClient(DevToolsAgentHostClient* client) override;
42 void ForceAttachClient(DevToolsAgentHostClient* client) override; 42 void ForceAttachClient(DevToolsAgentHostClient* client) override;
43 bool DetachClient(DevToolsAgentHostClient* client) override; 43 bool DetachClient(DevToolsAgentHostClient* client) override;
44 bool DispatchProtocolMessage(DevToolsAgentHostClient* client, 44 bool DispatchProtocolMessage(DevToolsAgentHostClient* client,
45 const std::string& message) override; 45 const std::string& message) override;
46
47 bool IsAttached() override; 46 bool IsAttached() override;
48 void InspectElement(DevToolsAgentHostClient* client, int x, int y) override; 47 void InspectElement(DevToolsAgentHostClient* client, int x, int y) override;
49 std::string GetId() override; 48 std::string GetId() override;
49 std::string GetParentId() override;
50 std::string GetDescription() override;
51 GURL GetFaviconURL() override;
52 base::TimeTicks GetLastActivityTime() override;
50 BrowserContext* GetBrowserContext() override; 53 BrowserContext* GetBrowserContext() override;
51 WebContents* GetWebContents() override; 54 WebContents* GetWebContents() override;
52 void DisconnectWebContents() override; 55 void DisconnectWebContents() override;
53 void ConnectWebContents(WebContents* wc) override; 56 void ConnectWebContents(WebContents* wc) override;
57 void Inspect() override;
54 58
55 // DevToolsProtocolDelegate implementation. 59 // DevToolsProtocolDelegate implementation.
56 void SendProtocolResponse(int session_id, 60 void SendProtocolResponse(int session_id,
57 const std::string& message) override; 61 const std::string& message) override;
58 void SendProtocolNotification(const std::string& message) override; 62 void SendProtocolNotification(const std::string& message) override;
59 63
60 protected: 64 protected:
61 DevToolsAgentHostImpl(); 65 DevToolsAgentHostImpl();
62 ~DevToolsAgentHostImpl() override; 66 ~DevToolsAgentHostImpl() override;
63 67
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 SendMessageCallback callback_; 102 SendMessageCallback callback_;
99 std::string message_buffer_; 103 std::string message_buffer_;
100 uint32_t message_buffer_size_; 104 uint32_t message_buffer_size_;
101 std::string state_cookie_; 105 std::string state_cookie_;
102 int last_call_id_; 106 int last_call_id_;
103 }; 107 };
104 108
105 } // namespace content 109 } // namespace content
106 110
107 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ 111 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698