| OLD | NEW | 
|---|
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|