Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
benm (inactive)
2013/02/28 14:54:12
nit: 2013
mnaganov (inactive)
2013/02/28 16:33:04
Right. Also, '(c)' is no longer needed.
| |
| 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 CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_ |
| 6 #define CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "content/public/browser/devtools_http_handler_delegate.h" | 12 #include "content/public/browser/devtools_http_handler_delegate.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | |
| 16 class BrowserContext; | 15 class BrowserContext; |
| 17 class DevToolsHttpHandler; | 16 class DevToolsHttpHandler; |
| 17 } | |
| 18 | 18 |
| 19 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate { | 19 namespace android_webview { |
| 20 | |
| 21 class AwDevToolsDelegate : public content::DevToolsHttpHandlerDelegate { | |
| 20 public: | 22 public: |
| 21 ShellDevToolsDelegate(BrowserContext* browser_context, int port); | 23 AwDevToolsDelegate(content::BrowserContext* browser_context); |
| 22 virtual ~ShellDevToolsDelegate(); | 24 virtual ~AwDevToolsDelegate(); |
| 23 | 25 |
| 24 // Stops http server. | 26 // Stops http server. |
| 25 void Stop(); | 27 void Stop(); |
| 26 | 28 |
| 27 // DevToolsHttpProtocolHandler::Delegate overrides. | 29 // DevToolsHttpProtocolHandler::Delegate overrides. |
| 28 virtual std::string GetDiscoveryPageHTML() OVERRIDE; | 30 virtual std::string GetDiscoveryPageHTML() OVERRIDE; |
| 29 virtual bool BundlesFrontendResources() OVERRIDE; | 31 virtual bool BundlesFrontendResources() OVERRIDE; |
| 30 virtual base::FilePath GetDebugFrontendDir() OVERRIDE; | 32 virtual base::FilePath GetDebugFrontendDir() OVERRIDE; |
| 31 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE; | 33 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE; |
| 32 virtual RenderViewHost* CreateNewTarget() OVERRIDE; | 34 virtual content::RenderViewHost* CreateNewTarget() OVERRIDE; |
| 33 virtual TargetType GetTargetType(RenderViewHost*) OVERRIDE; | 35 virtual TargetType GetTargetType(content::RenderViewHost*) OVERRIDE; |
| 34 | 36 |
| 35 DevToolsHttpHandler* devtools_http_handler() { | 37 content::DevToolsHttpHandler* devtools_http_handler() { |
| 36 return devtools_http_handler_; | 38 return devtools_http_handler_; |
| 37 } | 39 } |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 BrowserContext* browser_context_; | 42 content::BrowserContext* browser_context_; |
| 41 DevToolsHttpHandler* devtools_http_handler_; | 43 content::DevToolsHttpHandler* devtools_http_handler_; |
| 42 | 44 |
| 43 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate); | 45 DISALLOW_COPY_AND_ASSIGN(AwDevToolsDelegate); |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 } // namespace content | 48 } // namespace android_webview |
| 47 | 49 |
| 48 #endif // CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ | 50 #endif // ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_ |
| OLD | NEW |