Disable flaky testHTTPResponseTimelineRecorder on Mac
[chromium-blink-merge.git] / chromecast / browser / devtools / cast_dev_tools_delegate.h
blob809667b5a2ebeec2e57d40cedf61cee413a9b56f
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"
12 namespace base {
13 class FilePath;
16 namespace content {
17 class BrowserContext;
20 namespace chromecast {
21 namespace shell {
23 class CastDevToolsDelegate : public content::DevToolsHttpHandlerDelegate {
24 public:
25 CastDevToolsDelegate();
26 ~CastDevToolsDelegate() override;
28 // DevToolsHttpHandlerDelegate implementation.
29 std::string GetDiscoveryPageHTML() override;
30 bool BundlesFrontendResources() override;
31 base::FilePath GetDebugFrontendDir() override;
33 private:
34 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate);
37 class CastDevToolsManagerDelegate : public content::DevToolsManagerDelegate {
38 public:
39 CastDevToolsManagerDelegate();
40 ~CastDevToolsManagerDelegate() override;
42 // DevToolsManagerDelegate implementation.
43 void Inspect(
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;
56 private:
57 DISALLOW_COPY_AND_ASSIGN(CastDevToolsManagerDelegate);
60 } // namespace shell
61 } // namespace chromecast
63 #endif // CHROMECAST_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_