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

Unified Diff: chrome/browser/extensions/extension_function.cc

Issue 42680: Add more of the server-side plumbing for extension APIs. Also (Closed)
Patch Set: Introduce SyncExtensionFunction Created 11 years, 9 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/extensions/extension_function.cc
diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8eb562fdb18b61da4eb541d3da9bf5d2d2b58e78
--- /dev/null
+++ b/chrome/browser/extensions/extension_function.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/extension_function.h"
+
+#include "chrome/browser/extensions/extension_function_dispatcher.h"
+
+void ExtensionFunction::SendResponse(bool success) {
+ if (success) {
+ dispatcher_->SendResponse(this);
+ } else {
+ // TODO(aa): In case of failure, send the error message to an error
+ // callback.
+ }
+}
« no previous file with comments | « chrome/browser/extensions/extension_function.h ('k') | chrome/browser/extensions/extension_function_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698