Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / content / shell / shell_devtools_delegate.h
blobd3d63195befcd28b4dcc36f9202b4b032538662d
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_
6 #define CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "content/public/browser/devtools_http_handler_delegate.h"
14 namespace net {
15 class URLRequestContextGetter;
18 namespace content {
20 class DevToolsHttpHandler;
22 class ShellDevToolsDelegate : public DevToolsHttpHandlerDelegate {
23 public:
24 ShellDevToolsDelegate(int port, net::URLRequestContextGetter* context_getter);
25 virtual ~ShellDevToolsDelegate();
27 // Stops http server.
28 void Stop();
30 // DevToolsHttpProtocolHandler::Delegate overrides.
31 virtual std::string GetDiscoveryPageHTML() OVERRIDE;
32 virtual bool BundlesFrontendResources() OVERRIDE;
33 virtual std::string GetFrontendResourcesBaseURL() OVERRIDE;
35 DevToolsHttpHandler* devtools_http_handler() {
36 return devtools_http_handler_;
39 private:
40 net::URLRequestContextGetter* context_getter_;
41 DevToolsHttpHandler* devtools_http_handler_;
43 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsDelegate);
46 } // namespace content
48 #endif // CONTENT_SHELL_SHELL_DEVTOOLS_DELEGATE_H_