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

Side by Side Diff: chrome/browser/ui/webui/inspect_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 (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 CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 21 matching lines...) Expand all
32 virtual ~InspectUI(); 32 virtual ~InspectUI();
33 33
34 void InitUI(); 34 void InitUI();
35 void Inspect(const std::string& source_id, const std::string& target_id); 35 void Inspect(const std::string& source_id, const std::string& target_id);
36 void Activate(const std::string& source_id, const std::string& target_id); 36 void Activate(const std::string& source_id, const std::string& target_id);
37 void Close(const std::string& source_id, const std::string& target_id); 37 void Close(const std::string& source_id, const std::string& target_id);
38 void Reload(const std::string& source_id, const std::string& target_id); 38 void Reload(const std::string& source_id, const std::string& target_id);
39 void Open(const std::string& source_id, 39 void Open(const std::string& source_id,
40 const std::string& browser_id, 40 const std::string& browser_id,
41 const std::string& url); 41 const std::string& url);
42 void InspectBrowserWithCustomFrontend(
43 const std::string& source_id,
44 const std::string& browser_id,
45 const GURL& frontend_url);
42 46
43 static void InspectDevices(Browser* browser); 47 static void InspectDevices(Browser* browser);
44 48
45 private: 49 private:
46 // content::NotificationObserver overrides. 50 // content::NotificationObserver overrides.
47 virtual void Observe(int type, 51 virtual void Observe(int type,
48 const content::NotificationSource& source, 52 const content::NotificationSource& source,
49 const content::NotificationDetails& details) OVERRIDE; 53 const content::NotificationDetails& details) OVERRIDE;
50 54
51 void StartListeningNotifications(); 55 void StartListeningNotifications();
(...skipping 30 matching lines...) Expand all
82 86
83 typedef std::map<std::string, DevToolsTargetsUIHandler*> TargetHandlerMap; 87 typedef std::map<std::string, DevToolsTargetsUIHandler*> TargetHandlerMap;
84 TargetHandlerMap target_handlers_; 88 TargetHandlerMap target_handlers_;
85 89
86 scoped_ptr<PortForwardingStatusSerializer> port_status_serializer_; 90 scoped_ptr<PortForwardingStatusSerializer> port_status_serializer_;
87 91
88 DISALLOW_COPY_AND_ASSIGN(InspectUI); 92 DISALLOW_COPY_AND_ASSIGN(InspectUI);
89 }; 93 };
90 94
91 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ 95 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698