1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "content/public/browser/devtools_http_handler_delegate.h"
16 class DevToolsHttpHandler
;
19 namespace android_webview
{
21 class AwDevToolsDelegate
: public content::DevToolsHttpHandlerDelegate
{
23 AwDevToolsDelegate(content::BrowserContext
* browser_context
);
24 virtual ~AwDevToolsDelegate();
29 // DevToolsHttpProtocolHandler::Delegate overrides.
30 virtual std::string
GetDiscoveryPageHTML() OVERRIDE
;
31 virtual bool BundlesFrontendResources() OVERRIDE
;
32 virtual base::FilePath
GetDebugFrontendDir() OVERRIDE
;
33 virtual std::string
GetPageThumbnailData(const GURL
& url
) OVERRIDE
;
34 virtual content::RenderViewHost
* CreateNewTarget() OVERRIDE
;
35 virtual TargetType
GetTargetType(content::RenderViewHost
*) OVERRIDE
;
36 virtual std::string
GetViewDescription(content::RenderViewHost
*) OVERRIDE
;
38 content::DevToolsHttpHandler
* devtools_http_handler() {
39 return devtools_http_handler_
;
43 content::BrowserContext
* browser_context_
;
44 content::DevToolsHttpHandler
* devtools_http_handler_
;
46 DISALLOW_COPY_AND_ASSIGN(AwDevToolsDelegate
);
49 } // namespace android_webview
51 #endif // ANDROID_WEBVIEW_BROWSER_AW_DEV_TOOLS_DELEGATE_H_