| OLD | NEW |
| 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 Loading... |
| 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 } | |
| OLD | NEW |