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

Side by Side Diff: content/public/browser/devtools_http_handler.h

Issue 10837177: Add a menu item to content_shell to open devtools to make it more discoverable. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android compile, and add gtk support 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
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_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 class GURL;
13
12 namespace net { 14 namespace net {
13 class StreamListenSocketFactory; 15 class StreamListenSocketFactory;
14 class URLRequestContextGetter; 16 class URLRequestContextGetter;
15 } 17 }
16 18
17 namespace content { 19 namespace content {
18 20
19 class DevToolsHttpHandlerDelegate; 21 class DevToolsHttpHandlerDelegate;
20 class RenderViewHost; 22 class RenderViewHost;
21 23
(...skipping 27 matching lines...) Expand all
49 DevToolsHttpHandlerDelegate* delegate); 51 DevToolsHttpHandlerDelegate* delegate);
50 52
51 // Called from the main thread in order to stop protocol handler. 53 // Called from the main thread in order to stop protocol handler.
52 // Automatically destroys the handler instance. 54 // Automatically destroys the handler instance.
53 virtual void Stop() = 0; 55 virtual void Stop() = 0;
54 56
55 // Set the RenderViewHostBinding instance. If no instance is provided the 57 // Set the RenderViewHostBinding instance. If no instance is provided the
56 // default implementation will be used. 58 // default implementation will be used.
57 virtual void SetRenderViewHostBinding(RenderViewHostBinding* binding) = 0; 59 virtual void SetRenderViewHostBinding(RenderViewHostBinding* binding) = 0;
58 60
61 // Returns the URL for the address to debug |render_view_host|.
62 virtual GURL GetFrontendURL(RenderViewHost* render_view_host) = 0;
63
59 protected: 64 protected:
60 virtual ~DevToolsHttpHandler() {} 65 virtual ~DevToolsHttpHandler() {}
61 }; 66 };
62 67
63 } // namespace content 68 } // namespace content
64 69
65 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_ 70 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698