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

Unified Diff: content/public/browser/devtools_manager_delegate.h

Issue 2780433002: add print to pdf for headless (Closed)
Patch Set: improve comments as suggested Created 3 years, 8 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: content/public/browser/devtools_manager_delegate.h
diff --git a/content/public/browser/devtools_manager_delegate.h b/content/public/browser/devtools_manager_delegate.h
index 69d2b06be4d429aa90838f6bb210452c54c1ab48..19c0dbefbb5c568e29a634a0f2a8746ea5f01734 100644
--- a/content/public/browser/devtools_manager_delegate.h
+++ b/content/public/browser/devtools_manager_delegate.h
@@ -51,9 +51,11 @@ class CONTENT_EXPORT DevToolsManagerDelegate {
using CommandCallback =
base::Callback<void(std::unique_ptr<base::DictionaryValue> response)>;
+ // Handle async command, feed response to CommandCallback when it is ready.
virtual bool HandleAsyncCommand(DevToolsAgentHost* agent_host,
base::DictionaryValue* command,
- CommandCallback callback);
+ const CommandCallback& callback);
+
// Should return discovery page HTML that should list available tabs
// and provide attach links.
virtual std::string GetDiscoveryPageHTML();

Powered by Google App Engine
This is Rietveld 408576698