1 // Copyright 2014 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 CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_
6 #define CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_
8 #include "content/public/browser/devtools_http_handler_delegate.h"
9 #include "content/public/browser/devtools_manager_delegate.h"
10 #include "net/socket/stream_listen_socket.h"
20 namespace chromecast
{
23 class CastDevToolsDelegate
: public content::DevToolsHttpHandlerDelegate
{
25 CastDevToolsDelegate();
26 ~CastDevToolsDelegate() override
;
28 // DevToolsHttpHandlerDelegate implementation.
29 std::string
GetDiscoveryPageHTML() override
;
30 bool BundlesFrontendResources() override
;
31 base::FilePath
GetDebugFrontendDir() override
;
34 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate
);
37 class CastDevToolsManagerDelegate
: public content::DevToolsManagerDelegate
{
39 CastDevToolsManagerDelegate();
40 ~CastDevToolsManagerDelegate() override
;
42 // DevToolsManagerDelegate implementation.
44 content::BrowserContext
* browser_context
,
45 content::DevToolsAgentHost
* agent_host
) override
{}
46 void DevToolsAgentStateChanged(
47 content::DevToolsAgentHost
* agent_host
,
48 bool attached
) override
{}
49 base::DictionaryValue
* HandleCommand(
50 content::DevToolsAgentHost
* agent_host
,
51 base::DictionaryValue
* command
) override
;
52 scoped_ptr
<content::DevToolsTarget
> CreateNewTarget(const GURL
& url
) override
;
53 void EnumerateTargets(TargetCallback callback
) override
;
54 std::string
GetPageThumbnailData(const GURL
& url
) override
;
57 DISALLOW_COPY_AND_ASSIGN(CastDevToolsManagerDelegate
);
61 } // namespace chromecast
63 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_