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

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

Issue 2864103002: [DevTools] Support multiple DevToolsMessageChunkProcessor instances (Closed)
Patch Set: fix Created 3 years, 7 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
« no previous file with comments | « no previous file | content/browser/devtools/devtools_agent_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26 matching lines...) Expand all
37 std::string GetDescription() override; 37 std::string GetDescription() override;
38 GURL GetFaviconURL() override; 38 GURL GetFaviconURL() override;
39 std::string GetFrontendURL() override; 39 std::string GetFrontendURL() override;
40 base::TimeTicks GetLastActivityTime() override; 40 base::TimeTicks GetLastActivityTime() override;
41 BrowserContext* GetBrowserContext() override; 41 BrowserContext* GetBrowserContext() override;
42 WebContents* GetWebContents() override; 42 WebContents* GetWebContents() override;
43 void DisconnectWebContents() override; 43 void DisconnectWebContents() override;
44 void ConnectWebContents(WebContents* wc) override; 44 void ConnectWebContents(WebContents* wc) override;
45 45
46 bool Inspect(); 46 bool Inspect();
47 void SendMessageToClient(int session_id, const std::string& message);
48 47
49 protected: 48 protected:
50 DevToolsAgentHostImpl(const std::string& id); 49 DevToolsAgentHostImpl(const std::string& id);
51 ~DevToolsAgentHostImpl() override; 50 ~DevToolsAgentHostImpl() override;
52 51
53 static bool ShouldForceCreation(); 52 static bool ShouldForceCreation();
54 53
55 virtual void AttachSession(DevToolsSession* session) = 0; 54 virtual void AttachSession(DevToolsSession* session) = 0;
56 virtual void DetachSession(int session_id) = 0; 55 virtual void DetachSession(int session_id) = 0;
57 virtual bool DispatchProtocolMessage( 56 virtual bool DispatchProtocolMessage(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 SendMessageCallback callback_; 99 SendMessageCallback callback_;
101 std::string message_buffer_; 100 std::string message_buffer_;
102 uint32_t message_buffer_size_; 101 uint32_t message_buffer_size_;
103 std::string state_cookie_; 102 std::string state_cookie_;
104 int last_call_id_; 103 int last_call_id_;
105 }; 104 };
106 105
107 } // namespace content 106 } // namespace content
108 107
109 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ 108 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/devtools_agent_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698