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

Side by Side Diff: chrome/browser/ui/webui/inspect_ui.h

Issue 12586010: DevTools: extract ADB command classes, change objects' lifetimes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win build fixed. Created 7 years, 9 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
« no previous file with comments | « chrome/browser/resources/inspect/inspect.js ('k') | chrome/browser/ui/webui/inspect_ui.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 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 26 matching lines...) Expand all
37 const content::NotificationDetails& details) OVERRIDE; 37 const content::NotificationDetails& details) OVERRIDE;
38 38
39 void StopListeningNotifications(); 39 void StopListeningNotifications();
40 40
41 content::WebUIDataSource* CreateInspectUIHTMLSource(); 41 content::WebUIDataSource* CreateInspectUIHTMLSource();
42 42
43 bool HandleRequestCallback( 43 bool HandleRequestCallback(
44 const std::string& path, 44 const std::string& path,
45 const content::WebUIDataSource::GotDataCallback& callback); 45 const content::WebUIDataSource::GotDataCallback& callback);
46 46
47 bool HandleAdbDevicesCallback( 47 bool HandleAdbPagesCallback(
48 const std::string& path, 48 const std::string& path,
49 const content::WebUIDataSource::GotDataCallback& callback); 49 const content::WebUIDataSource::GotDataCallback& callback);
50 50
51 bool HandleAdbQueryCallback( 51 bool HandleAdbQueryCallback(
52 const std::string& path, 52 const std::string& path,
53 const content::WebUIDataSource::GotDataCallback& callback); 53 const content::WebUIDataSource::GotDataCallback& callback);
54 54
55 bool HandleLocalXhrCallback( 55 bool HandleLocalXhrCallback(
56 const std::string& path, 56 const std::string& path,
57 const content::WebUIDataSource::GotDataCallback& callback); 57 const content::WebUIDataSource::GotDataCallback& callback);
58 58
59 void RespondOnUIThread( 59 void RespondOnUIThread(
60 const content::WebUIDataSource::GotDataCallback& callback, 60 const content::WebUIDataSource::GotDataCallback& callback,
61 int result, 61 int result,
62 const std::string& response); 62 const std::string& response);
63 63
64 void OnAdbPages(const content::WebUIDataSource::GotDataCallback& callback,
65 int result,
66 DevToolsAdbBridge::RemotePages* pages);
64 67
65 scoped_refptr<WorkerCreationDestructionListener> observer_; 68 scoped_refptr<WorkerCreationDestructionListener> observer_;
66 69
67 // A scoped container for notification registries. 70 // A scoped container for notification registries.
68 content::NotificationRegistrar registrar_; 71 content::NotificationRegistrar registrar_;
69 72
70 DevToolsAdbBridge* adb_bridge_; 73 scoped_ptr<DevToolsAdbBridge> adb_bridge_;
71 base::WeakPtrFactory<InspectUI> weak_factory_; 74 base::WeakPtrFactory<InspectUI> weak_factory_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(InspectUI); 76 DISALLOW_COPY_AND_ASSIGN(InspectUI);
74 }; 77 };
75 78
76 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ 79 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/inspect/inspect.js ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698