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

Side by Side Diff: extensions/browser/extension_function.cc

Issue 2294943002: [Extensions] Remove SyncExtensionFunction (Closed)
Patch Set: 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
« no previous file with comments | « extensions/browser/extension_function.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "extensions/browser/extension_function.h" 5 #include "extensions/browser/extension_function.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 613
614 ExtensionFunction::ResponseAction AsyncExtensionFunction::Run() { 614 ExtensionFunction::ResponseAction AsyncExtensionFunction::Run() {
615 return RunAsync() ? RespondLater() : RespondNow(Error(error_)); 615 return RunAsync() ? RespondLater() : RespondNow(Error(error_));
616 } 616 }
617 617
618 // static 618 // static
619 bool AsyncExtensionFunction::ValidationFailure( 619 bool AsyncExtensionFunction::ValidationFailure(
620 AsyncExtensionFunction* function) { 620 AsyncExtensionFunction* function) {
621 return false; 621 return false;
622 } 622 }
623
624 SyncExtensionFunction::SyncExtensionFunction() {
625 }
626
627 SyncExtensionFunction::~SyncExtensionFunction() {
628 }
629
630 ExtensionFunction::ResponseAction SyncExtensionFunction::Run() {
631 return RespondNow(RunSync() ? ArgumentList(std::move(results_))
632 : Error(error_));
633 }
634
635 // static
636 bool SyncExtensionFunction::ValidationFailure(SyncExtensionFunction* function) {
637 return false;
638 }
OLDNEW
« no previous file with comments | « extensions/browser/extension_function.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698