Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: chromecast/shell/browser/devtools/cast_dev_tools_delegate.h

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROMECAST_SHELL_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_
6 #define CHROMECAST_SHELL_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_
7
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"
11
12 namespace base {
13 class FilePath;
14 }
15
16 namespace content {
17 class BrowserContext;
18 }
19
20 namespace chromecast {
21 namespace shell {
22
23 class CastDevToolsDelegate : public content::DevToolsHttpHandlerDelegate {
24 public:
25 CastDevToolsDelegate();
26 virtual ~CastDevToolsDelegate();
27
28 // DevToolsHttpHandlerDelegate implementation.
29 virtual std::string GetDiscoveryPageHTML() override;
30 virtual bool BundlesFrontendResources() override;
31 virtual base::FilePath GetDebugFrontendDir() override;
32 virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering(
33 net::StreamListenSocket::Delegate* delegate,
34 std::string* name) override;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(CastDevToolsDelegate);
38 };
39
40 class CastDevToolsManagerDelegate : public content::DevToolsManagerDelegate {
41 public:
42 CastDevToolsManagerDelegate();
43 virtual ~CastDevToolsManagerDelegate();
44
45 // DevToolsManagerDelegate implementation.
46 virtual void Inspect(
47 content::BrowserContext* browser_context,
48 content::DevToolsAgentHost* agent_host) override {}
49 virtual void DevToolsAgentStateChanged(
50 content::DevToolsAgentHost* agent_host,
51 bool attached) override {}
52 virtual base::DictionaryValue* HandleCommand(
53 content::DevToolsAgentHost* agent_host,
54 base::DictionaryValue* command) override;
55 virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget(
56 const GURL& url) override;
57 virtual void EnumerateTargets(TargetCallback callback) override;
58 virtual std::string GetPageThumbnailData(const GURL& url) override;
59
60 private:
61 DISALLOW_COPY_AND_ASSIGN(CastDevToolsManagerDelegate);
62 };
63
64 } // namespace shell
65 } // namespace chromecast
66
67 #endif // CHROMECAST_SHELL_BROWSER_DEVTOOLS_CAST_DEV_TOOLS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chromecast/shell/browser/cast_network_delegate_simple.cc ('k') | chromecast/shell/browser/devtools/cast_dev_tools_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698