| 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_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_ | 
| 6 #define CHROME_BROWSER_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_ | 
| 7 | 7 | 
| 8 #include <set> | 8 #include <set> | 
| 9 #include <string> | 9 #include <string> | 
| 10 | 10 | 
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" | 
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" | 
| 13 #include "chrome/browser/ui/host_desktop.h" | 13 #include "chrome/browser/ui/host_desktop.h" | 
| 14 #include "content/public/browser/devtools_http_handler_delegate.h" | 14 #include "content/public/browser/devtools_http_handler_delegate.h" | 
| 15 | 15 | 
| 16 class BrowserListTabContentsProvider | 16 class BrowserListTabContentsProvider | 
| 17     : public content::DevToolsHttpHandlerDelegate { | 17     : public content::DevToolsHttpHandlerDelegate { | 
| 18  public: | 18  public: | 
| 19   explicit BrowserListTabContentsProvider( | 19   explicit BrowserListTabContentsProvider( | 
| 20       chrome::HostDesktopType host_desktop_type); | 20       chrome::HostDesktopType host_desktop_type); | 
| 21   virtual ~BrowserListTabContentsProvider(); | 21   virtual ~BrowserListTabContentsProvider(); | 
| 22 | 22 | 
| 23   // DevToolsHttpProtocolHandler::Delegate overrides. | 23   // DevToolsHttpProtocolHandler::Delegate overrides. | 
| 24   virtual std::string GetDiscoveryPageHTML() OVERRIDE; | 24   virtual std::string GetDiscoveryPageHTML() OVERRIDE; | 
| 25   virtual bool BundlesFrontendResources() OVERRIDE; | 25   virtual bool BundlesFrontendResources() OVERRIDE; | 
| 26   virtual base::FilePath GetDebugFrontendDir() OVERRIDE; | 26   virtual base::FilePath GetDebugFrontendDir() OVERRIDE; | 
| 27   virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE; | 27   virtual bool SupportsPageThumbnails() OVERRIDE; | 
| 28   virtual content::RenderViewHost* CreateNewTarget() OVERRIDE; | 28   virtual std::string GetPageThumbnailData(const std::string& id) OVERRIDE; | 
| 29   virtual TargetType GetTargetType(content::RenderViewHost*) OVERRIDE; | 29   virtual Target* CreateNewTarget() OVERRIDE; | 
| 30   virtual std::string GetViewDescription(content::RenderViewHost*) OVERRIDE; | 30   virtual bool ActivateTarget(const std::string& id) OVERRIDE; | 
|  | 31   virtual bool CloseTarget(const std::string& id) OVERRIDE; | 
|  | 32   virtual scoped_refptr<content::DevToolsAgentHost> GetAgentHost( | 
|  | 33       const std::string& id) OVERRIDE; | 
|  | 34   virtual void RequestTargets(TargetCallback callback) OVERRIDE; | 
| 31   virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering( | 35   virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering( | 
| 32       net::StreamListenSocket::Delegate* delegate, | 36       net::StreamListenSocket::Delegate* delegate, | 
| 33       std::string* name) OVERRIDE; | 37       std::string* name) OVERRIDE; | 
| 34 | 38 | 
| 35  private: | 39  private: | 
|  | 40   TargetList CollectWorkerTargets(); | 
|  | 41   void RespondWithTargetList(TargetCallback callback, | 
|  | 42                              const TargetList& worker_targets); | 
|  | 43 | 
| 36   chrome::HostDesktopType host_desktop_type_; | 44   chrome::HostDesktopType host_desktop_type_; | 
| 37   DISALLOW_COPY_AND_ASSIGN(BrowserListTabContentsProvider); | 45   DISALLOW_COPY_AND_ASSIGN(BrowserListTabContentsProvider); | 
| 38 }; | 46 }; | 
| 39 | 47 | 
| 40 #endif  // CHROME_BROWSER_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_ | 48 #endif  // CHROME_BROWSER_DEVTOOLS_BROWSER_LIST_TABCONTENTS_PROVIDER_H_ | 
| OLD | NEW | 
|---|