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

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

Issue 11033046: DevTools: [remote debugging] introduce json/new and json/close for creating and closing the tabs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Used constants for about:blank Created 8 years, 2 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_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/file_path.h" 11 #include "base/file_path.h"
12 12
13 class GURL; 13 class GURL;
14 14
15 namespace content { 15 namespace content {
16 16
17 class WebContents; 17 class RenderViewHost;
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. Called on the IO thread. 24 // and provide attach links. Called on the IO thread.
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 FilePath GetDebugFrontendDir() = 0; 31 virtual FilePath GetDebugFrontendDir() = 0;
32 32
33 // Get a thumbnail for a given page. Returns non-empty string iff we have the 33 // Get a thumbnail for a given page. Returns non-empty string iff we have the
34 // thumbnail. 34 // thumbnail.
35 virtual std::string GetPageThumbnailData(const GURL& url) = 0; 35 virtual std::string GetPageThumbnailData(const GURL& url) = 0;
36
37 // Creates new inspectable target and returns its render view host.
38 virtual RenderViewHost* CreateNewTarget() = 0;
36 }; 39 };
37 40
38 } // namespace content 41 } // namespace content
39 42
40 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ 43 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/debugger/devtools_http_handler_impl.cc ('k') | content/shell/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698