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

Side by Side Diff: content/public/browser/devtools_agent_host.h

Issue 2273063002: DevTools: remove DevToolsTargetDescriptor and its implementations, we are now based on devtools age… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 : public base::RefCounted<DevToolsAgentHost> { 36 : public base::RefCounted<DevToolsAgentHost> {
37 public: 37 public:
38 static char kTypePage[]; 38 static char kTypePage[];
39 static char kTypeFrame[]; 39 static char kTypeFrame[];
40 static char kTypeSharedWorker[]; 40 static char kTypeSharedWorker[];
41 static char kTypeServiceWorker[]; 41 static char kTypeServiceWorker[];
42 static char kTypeExternal[]; 42 static char kTypeExternal[];
43 static char kTypeBrowser[]; 43 static char kTypeBrowser[];
44 static char kTypeOther[]; 44 static char kTypeOther[];
45 45
46 using Ptr = scoped_refptr<DevToolsAgentHost>;
dgozman 2016/08/24 17:17:39 Unused?
47
46 // Latest DevTools protocol version supported. 48 // Latest DevTools protocol version supported.
47 static std::string GetProtocolVersion(); 49 static std::string GetProtocolVersion();
48 50
49 // Returns whether particular version of DevTools protocol is supported. 51 // Returns whether particular version of DevTools protocol is supported.
50 static bool IsSupportedProtocolVersion(const std::string& version); 52 static bool IsSupportedProtocolVersion(const std::string& version);
51 53
52 // Returns DevToolsAgentHost with a given |id| or nullptr of it doesn't exist. 54 // Returns DevToolsAgentHost with a given |id| or nullptr of it doesn't exist.
53 static scoped_refptr<DevToolsAgentHost> GetForId(const std::string& id); 55 static scoped_refptr<DevToolsAgentHost> GetForId(const std::string& id);
54 56
55 // Returns DevToolsAgentHost that can be used for inspecting |web_contents|. 57 // Returns DevToolsAgentHost that can be used for inspecting |web_contents|.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 static void RemoveAgentStateCallback(const AgentStateCallback& callback); 186 static void RemoveAgentStateCallback(const AgentStateCallback& callback);
185 187
186 protected: 188 protected:
187 friend class base::RefCounted<DevToolsAgentHost>; 189 friend class base::RefCounted<DevToolsAgentHost>;
188 virtual ~DevToolsAgentHost() {} 190 virtual ~DevToolsAgentHost() {}
189 }; 191 };
190 192
191 } // namespace content 193 } // namespace content
192 194
193 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_ 195 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « components/devtools_http_handler/devtools_http_handler.cc ('k') | content/shell/browser/shell_devtools_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698