| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "net/socket/stream_listen_socket.h" | 13 #include "net/socket/server_socket.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 class DevToolsTarget; | 17 class DevToolsTarget; |
| 18 | 18 |
| 19 class DevToolsHttpHandlerDelegate { | 19 class DevToolsHttpHandlerDelegate { |
| 20 public: | 20 public: |
| 21 virtual ~DevToolsHttpHandlerDelegate() {} | 21 virtual ~DevToolsHttpHandlerDelegate() {} |
| 22 | 22 |
| 23 // Should return discovery page HTML that should list available tabs | 23 // Should return discovery page HTML that should list available tabs |
| 24 // and provide attach links. | 24 // and provide attach links. |
| 25 virtual std::string GetDiscoveryPageHTML() = 0; | 25 virtual std::string GetDiscoveryPageHTML() = 0; |
| 26 | 26 |
| 27 // Returns true if and only if frontend resources are bundled. | 27 // Returns true if and only if frontend resources are bundled. |
| 28 virtual bool BundlesFrontendResources() = 0; | 28 virtual bool BundlesFrontendResources() = 0; |
| 29 | 29 |
| 30 // Returns path to the front-end files on the local filesystem for debugging. | 30 // Returns path to the front-end files on the local filesystem for debugging. |
| 31 virtual base::FilePath GetDebugFrontendDir() = 0; | 31 virtual base::FilePath GetDebugFrontendDir() = 0; |
| 32 | 32 |
| 33 // Creates named socket for reversed tethering implementation (used with | 33 // Creates named socket for reversed tethering implementation (used with |
| 34 // remote debugging, primarily for mobile). | 34 // remote debugging, primarily for mobile). |
| 35 virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering( | 35 virtual scoped_ptr<net::ServerSocket> CreateSocketForTethering( |
| 36 net::StreamListenSocket::Delegate* delegate, | |
| 37 std::string* name) = 0; | 36 std::string* name) = 0; |
| 38 }; | 37 }; |
| 39 | 38 |
| 40 } // namespace content | 39 } // namespace content |
| 41 | 40 |
| 42 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ | 41 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ |
| OLD | NEW |