| 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 | 634 |
| 635 ExtensionFunction::ResponseAction SyncExtensionFunction::Run() { | 635 ExtensionFunction::ResponseAction SyncExtensionFunction::Run() { |
| 636 return RespondNow(RunSync() ? ArgumentList(std::move(results_)) | 636 return RespondNow(RunSync() ? ArgumentList(std::move(results_)) |
| 637 : Error(error_)); | 637 : Error(error_)); |
| 638 } | 638 } |
| 639 | 639 |
| 640 // static | 640 // static |
| 641 bool SyncExtensionFunction::ValidationFailure(SyncExtensionFunction* function) { | 641 bool SyncExtensionFunction::ValidationFailure(SyncExtensionFunction* function) { |
| 642 return false; | 642 return false; |
| 643 } | 643 } |
| 644 | |
| 645 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { | |
| 646 } | |
| 647 | |
| 648 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { | |
| 649 } | |
| 650 | |
| 651 ExtensionFunction::ResponseAction SyncIOThreadExtensionFunction::Run() { | |
| 652 return RespondNow(RunSync() ? ArgumentList(std::move(results_)) | |
| 653 : Error(error_)); | |
| 654 } | |
| 655 | |
| 656 // static | |
| 657 bool SyncIOThreadExtensionFunction::ValidationFailure( | |
| 658 SyncIOThreadExtensionFunction* function) { | |
| 659 return false; | |
| 660 } | |
| OLD | NEW |