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

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

Issue 2300703005: DevTools: merge devtools_http_handler into content - it is used in all the embedders anyways. (Closed)
Patch Set: for review Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MANAGER_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 24 matching lines...) Expand all
35 // Returns DevToolsAgentHost title to use for given |host| target. 35 // Returns DevToolsAgentHost title to use for given |host| target.
36 virtual std::string GetTargetTitle(RenderFrameHost* host) = 0; 36 virtual std::string GetTargetTitle(RenderFrameHost* host) = 0;
37 37
38 // Creates new inspectable target given the |url|. 38 // Creates new inspectable target given the |url|.
39 virtual scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) = 0; 39 virtual scoped_refptr<DevToolsAgentHost> CreateNewTarget(const GURL& url) = 0;
40 40
41 // Result ownership is passed to the caller. 41 // Result ownership is passed to the caller.
42 virtual base::DictionaryValue* HandleCommand( 42 virtual base::DictionaryValue* HandleCommand(
43 DevToolsAgentHost* agent_host, 43 DevToolsAgentHost* agent_host,
44 base::DictionaryValue* command) = 0; 44 base::DictionaryValue* command) = 0;
45
46 // Should return discovery page HTML that should list available tabs
47 // and provide attach links.
48 virtual std::string GetDiscoveryPageHTML() = 0;
49
50 // Returns frontend resource data by |path|.
51 virtual std::string GetFrontendResource(const std::string& path) = 0;
45 }; 52 };
46 53
47 } // namespace content 54 } // namespace content
48 55
49 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ 56 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698