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

Unified Diff: chrome/browser/devtools/devtools_targets_ui.h

Issue 912863002: [DevTools] Remote JSON requests from javascript (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/devtools/devtools_targets_ui.h
diff --git a/chrome/browser/devtools/devtools_targets_ui.h b/chrome/browser/devtools/devtools_targets_ui.h
index fbe96ed42f9057e0df816a3c3ca2b8cadb6a5efd..894420eae7b218903aa30631374617397c630573 100644
--- a/chrome/browser/devtools/devtools_targets_ui.h
+++ b/chrome/browser/devtools/devtools_targets_ui.h
@@ -22,9 +22,10 @@ class Profile;
class DevToolsTargetsUIHandler {
public:
- typedef base::Callback<void(const std::string&,
- const base::ListValue&)> Callback;
- typedef base::Callback<void(DevToolsTargetImpl*)> TargetCallback;
+ using Callback =
+ base::Callback<void(const std::string&, const base::ListValue&)>;
+ using TargetCallback = base::Callback<void(DevToolsTargetImpl*)>;
+ using JsonCallback = base::Callback<void(int, const std::string&)>;
DevToolsTargetsUIHandler(const std::string& source_id,
const Callback& callback);
@@ -46,6 +47,10 @@ class DevToolsTargetsUIHandler {
virtual scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost(
const std::string& browser_id);
+ virtual void SendJsonRequest(const std::string& browser_id,
+ const std::string& url,
+ const JsonCallback& callback);
+
virtual void ForceUpdate();
protected:

Powered by Google App Engine
This is Rietveld 408576698