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_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ |
6 #define CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ | 6 #define CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | |
9 | |
10 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
12 #include "content/public/browser/devtools_http_handler_delegate.h" | 10 #include "content/public/browser/devtools_http_handler_delegate.h" |
13 | 11 |
14 namespace content { | 12 namespace content { |
15 | 13 |
16 class BrowserContext; | 14 class BrowserContext; |
17 class DevToolsHttpHandler; | 15 class DevToolsHttpHandler; |
18 | 16 |
19 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate { | 17 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate { |
20 public: | 18 public: |
21 ShellDevToolsDelegate(BrowserContext* browser_context, int port); | 19 explicit ShellDevToolsDelegate(BrowserContext* browser_context); |
22 virtual ~ShellDevToolsDelegate(); | 20 virtual ~ShellDevToolsDelegate(); |
23 | 21 |
24 // Stops http server. | 22 // Stops http server. |
25 void Stop(); | 23 void Stop(); |
26 | 24 |
27 // DevToolsHttpProtocolHandler::Delegate overrides. | 25 // DevToolsHttpProtocolHandler::Delegate overrides. |
28 virtual std::string GetDiscoveryPageHTML() OVERRIDE; | 26 virtual std::string GetDiscoveryPageHTML() OVERRIDE; |
29 virtual bool BundlesFrontendResources() OVERRIDE; | 27 virtual bool BundlesFrontendResources() OVERRIDE; |
30 virtual base::FilePath GetDebugFrontendDir() OVERRIDE; | 28 virtual base::FilePath GetDebugFrontendDir() OVERRIDE; |
31 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE; | 29 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE; |
(...skipping 11 matching lines...) Expand all Loading... |
43 private: | 41 private: |
44 BrowserContext* browser_context_; | 42 BrowserContext* browser_context_; |
45 DevToolsHttpHandler* devtools_http_handler_; | 43 DevToolsHttpHandler* devtools_http_handler_; |
46 | 44 |
47 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate); | 45 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate); |
48 }; | 46 }; |
49 | 47 |
50 } // namespace content | 48 } // namespace content |
51 | 49 |
52 #endif // CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ | 50 #endif // CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ |
OLD | NEW |