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

Unified Diff: extensions/browser/extension_function.h

Issue 885443010: WebstorePrivate extension API cleanup, part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testext_permission_prompt
Patch Set: fix 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: extensions/browser/extension_function.h
diff --git a/extensions/browser/extension_function.h b/extensions/browser/extension_function.h
index 0fccce5b50ea12008452f6f079ba180a305977b0..b16157c52f24ff5c860f2babd466f12883ff57ba 100644
--- a/extensions/browser/extension_function.h
+++ b/extensions/browser/extension_function.h
@@ -308,6 +308,12 @@ class ExtensionFunction
const std::string& s1,
const std::string& s2,
const std::string& s3);
+ // Error with a list of arguments |results| to pass to caller. TAKES OWNERSHIP
+ // - a scoped_ptr<> for convenience, since callers usually get this from the
+ // result of a Create(...) call on the generated Results struct, for example,
+ // alarms::Get::Results::Create(alarm).
not at google - send to devlin 2015/02/05 17:16:17 It's funny actually - this ResponseAction/Response
Marc Treib 2015/02/06 10:26:15 Done.
+ ResponseValue ArgumentListWithError(scoped_ptr<base::ListValue> results,
+ const std::string& error);
// Bad message. A ResponseValue equivalent to EXTENSION_FUNCTION_VALIDATE(),
// so this will actually kill the renderer and not respond at all.
ResponseValue BadMessage();

Powered by Google App Engine
This is Rietveld 408576698