| 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/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 11 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 12 #include "content/public/browser/notification_source.h" | 13 #include "content/public/browser/notification_source.h" |
| 13 #include "content/public/browser/notification_types.h" | 14 #include "content/public/browser/notification_types.h" |
| 14 #include "content/public/browser/render_frame_host.h" | 15 #include "content/public/browser/render_frame_host.h" |
| 15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 16 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
| 17 #include "extensions/browser/extension_function_dispatcher.h" | 18 #include "extensions/browser/extension_function_dispatcher.h" |
| 18 #include "extensions/browser/extension_message_filter.h" | 19 #include "extensions/browser/extension_message_filter.h" |
| 19 #include "extensions/common/error_utils.h" | 20 #include "extensions/common/error_utils.h" |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 ExtensionFunction::ResponseAction SyncIOThreadExtensionFunction::Run() { | 557 ExtensionFunction::ResponseAction SyncIOThreadExtensionFunction::Run() { |
| 557 return RespondNow(RunSync() ? ArgumentList(std::move(results_)) | 558 return RespondNow(RunSync() ? ArgumentList(std::move(results_)) |
| 558 : Error(error_)); | 559 : Error(error_)); |
| 559 } | 560 } |
| 560 | 561 |
| 561 // static | 562 // static |
| 562 bool SyncIOThreadExtensionFunction::ValidationFailure( | 563 bool SyncIOThreadExtensionFunction::ValidationFailure( |
| 563 SyncIOThreadExtensionFunction* function) { | 564 SyncIOThreadExtensionFunction* function) { |
| 564 return false; | 565 return false; |
| 565 } | 566 } |
| OLD | NEW |