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

Side by Side Diff: content/shell/shell_devtools_delegate.h

Issue 10829303: Add --remote-debugging-port back to content_shell since nduca mentioned he wants to use it with And… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_browser_main_parts.cc ('k') | content/shell/shell_devtools_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "content/public/browser/devtools_http_handler_delegate.h" 12 #include "content/public/browser/devtools_http_handler_delegate.h"
13 13
14 namespace net { 14 namespace net {
15 class URLRequestContextGetter; 15 class URLRequestContextGetter;
16 } 16 }
17 17
18 namespace content { 18 namespace content {
19 19
20 class DevToolsHttpHandler; 20 class DevToolsHttpHandler;
21 21
22 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate { 22 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate {
23 public: 23 public:
24 explicit ShellDevToolsDelegate(net::URLRequestContextGetter* context_getter); 24 ShellDevToolsDelegate(int port, net::URLRequestContextGetter* context_getter);
25 virtual ~ShellDevToolsDelegate(); 25 virtual ~ShellDevToolsDelegate();
26 26
27 // Stops http server. 27 // Stops http server.
28 void Stop(); 28 void Stop();
29 29
30 // DevToolsHttpProtocolHandler::Delegate overrides. 30 // DevToolsHttpProtocolHandler::Delegate overrides.
31 virtual std::string GetDiscoveryPageHTML() OVERRIDE; 31 virtual std::string GetDiscoveryPageHTML() OVERRIDE;
32 virtual bool BundlesFrontendResources() OVERRIDE; 32 virtual bool BundlesFrontendResources() OVERRIDE;
33 virtual std::string GetFrontendResourcesBaseURL() OVERRIDE; 33 virtual std::string GetFrontendResourcesBaseURL() OVERRIDE;
34 34
35 DevToolsHttpHandler* devtools_http_handler() { 35 DevToolsHttpHandler* devtools_http_handler() {
36 return devtools_http_handler_; 36 return devtools_http_handler_;
37 } 37 }
38 38
39 private: 39 private:
40 net::URLRequestContextGetter* context_getter_; 40 net::URLRequestContextGetter* context_getter_;
41 DevToolsHttpHandler* devtools_http_handler_; 41 DevToolsHttpHandler* devtools_http_handler_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate); 43 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate);
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_ 48 #endif // CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main_parts.cc ('k') | content/shell/shell_devtools_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698