| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_ |
| 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/public/browser/devtools_http_handler_delegate.h" | 10 #include "content/public/browser/devtools_http_handler_delegate.h" |
| 11 #include "content/public/browser/devtools_manager_delegate.h" | 11 #include "content/public/browser/devtools_manager_delegate.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 class BrowserContext; | 15 class BrowserContext; |
| 16 class DevToolsHttpHandler; | 16 class DevToolsHttpHandler; |
| 17 | 17 |
| 18 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate { | 18 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate { |
| 19 public: | 19 public: |
| 20 explicit ShellDevToolsDelegate(BrowserContext* browser_context); | 20 explicit ShellDevToolsDelegate(BrowserContext* browser_context); |
| 21 ~ShellDevToolsDelegate() override; | 21 ~ShellDevToolsDelegate() override; |
| 22 | 22 |
| 23 // Stops http server. | 23 // Stops http server. |
| 24 void Stop(); | 24 void Stop(); |
| 25 | 25 |
| 26 // DevToolsHttpHandlerDelegate implementation. | 26 // DevToolsHttpHandlerDelegate implementation. |
| 27 std::string GetDiscoveryPageHTML() override; | 27 std::string GetDiscoveryPageHTML() override; |
| 28 bool BundlesFrontendResources() override; | 28 bool BundlesFrontendResources() override; |
| 29 base::FilePath GetDebugFrontendDir() override; | 29 base::FilePath GetDebugFrontendDir() override; |
| 30 scoped_ptr<net::StreamListenSocket> CreateSocketForTethering( | 30 scoped_ptr<net::ServerSocket> CreateSocketForTethering( |
| 31 net::StreamListenSocket::Delegate* delegate, | |
| 32 std::string* name) override; | 31 std::string* name) override; |
| 33 | 32 |
| 34 DevToolsHttpHandler* devtools_http_handler() { | 33 DevToolsHttpHandler* devtools_http_handler() { |
| 35 return devtools_http_handler_; | 34 return devtools_http_handler_; |
| 36 } | 35 } |
| 37 | 36 |
| 38 private: | 37 private: |
| 39 BrowserContext* browser_context_; | 38 BrowserContext* browser_context_; |
| 40 DevToolsHttpHandler* devtools_http_handler_; | 39 DevToolsHttpHandler* devtools_http_handler_; |
| 41 | 40 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 60 | 59 |
| 61 private: | 60 private: |
| 62 BrowserContext* browser_context_; | 61 BrowserContext* browser_context_; |
| 63 | 62 |
| 64 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsManagerDelegate); | 63 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsManagerDelegate); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace content | 66 } // namespace content |
| 68 | 67 |
| 69 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_ | 68 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_DELEGATE_H_ |
| OLD | NEW |