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

Side by Side Diff: chrome/browser/devtools/devtools_targets_ui.h

Issue 278953002: DevTools: allow inspecting browsers using custom front-ends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Manually tested end-to-end. Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 Callback callback); 38 Callback callback);
39 39
40 static scoped_ptr<DevToolsTargetsUIHandler> CreateForAdb( 40 static scoped_ptr<DevToolsTargetsUIHandler> CreateForAdb(
41 Callback callback, Profile* profile); 41 Callback callback, Profile* profile);
42 42
43 DevToolsTargetImpl* GetTarget(const std::string& target_id); 43 DevToolsTargetImpl* GetTarget(const std::string& target_id);
44 44
45 virtual void Open(const std::string& browser_id, const std::string& url, 45 virtual void Open(const std::string& browser_id, const std::string& url,
46 const TargetCallback& callback); 46 const TargetCallback& callback);
47 47
48 virtual scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost(
49 const std::string& browser_id);
50
48 protected: 51 protected:
49 base::DictionaryValue* Serialize(const DevToolsTargetImpl& target); 52 base::DictionaryValue* Serialize(const DevToolsTargetImpl& target);
50 void SendSerializedTargets(scoped_ptr<base::ListValue> list); 53 void SendSerializedTargets(scoped_ptr<base::ListValue> list);
51 54
52 typedef std::map<std::string, DevToolsTargetImpl*> TargetMap; 55 typedef std::map<std::string, DevToolsTargetImpl*> TargetMap;
53 TargetMap targets_; 56 TargetMap targets_;
54 57
55 private: 58 private:
56 const std::string source_id_; 59 const std::string source_id_;
57 Callback callback_; 60 Callback callback_;
(...skipping 10 matching lines...) Expand all
68 virtual ~PortForwardingStatusSerializer(); 71 virtual ~PortForwardingStatusSerializer();
69 72
70 virtual void PortStatusChanged(const DevicesStatus&) OVERRIDE; 73 virtual void PortStatusChanged(const DevicesStatus&) OVERRIDE;
71 74
72 private: 75 private:
73 Callback callback_; 76 Callback callback_;
74 Profile* profile_; 77 Profile* profile_;
75 }; 78 };
76 79
77 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ 80 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698