| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/renderer/dispatcher.h" | 5 #include "extensions/renderer/dispatcher.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 std::unique_ptr<NativeHandler>(new UserGesturesNativeHandler(context))); | 873 std::unique_ptr<NativeHandler>(new UserGesturesNativeHandler(context))); |
| 874 module_system->RegisterNativeHandler( | 874 module_system->RegisterNativeHandler( |
| 875 "utils", std::unique_ptr<NativeHandler>(new UtilsNativeHandler(context))); | 875 "utils", std::unique_ptr<NativeHandler>(new UtilsNativeHandler(context))); |
| 876 module_system->RegisterNativeHandler( | 876 module_system->RegisterNativeHandler( |
| 877 "v8_context", | 877 "v8_context", |
| 878 std::unique_ptr<NativeHandler>(new V8ContextNativeHandler(context))); | 878 std::unique_ptr<NativeHandler>(new V8ContextNativeHandler(context))); |
| 879 module_system->RegisterNativeHandler( | 879 module_system->RegisterNativeHandler( |
| 880 "event_natives", | 880 "event_natives", |
| 881 std::unique_ptr<NativeHandler>(new EventBindings(context))); | 881 std::unique_ptr<NativeHandler>(new EventBindings(context))); |
| 882 module_system->RegisterNativeHandler( | 882 module_system->RegisterNativeHandler( |
| 883 "messaging_natives", | 883 "messaging_natives", base::MakeUnique<MessagingBindings>(context)); |
| 884 std::unique_ptr<NativeHandler>(MessagingBindings::Get(context))); | |
| 885 module_system->RegisterNativeHandler( | 884 module_system->RegisterNativeHandler( |
| 886 "apiDefinitions", std::unique_ptr<NativeHandler>( | 885 "apiDefinitions", std::unique_ptr<NativeHandler>( |
| 887 new ApiDefinitionsNatives(dispatcher, context))); | 886 new ApiDefinitionsNatives(dispatcher, context))); |
| 888 module_system->RegisterNativeHandler( | 887 module_system->RegisterNativeHandler( |
| 889 "sendRequest", std::unique_ptr<NativeHandler>( | 888 "sendRequest", std::unique_ptr<NativeHandler>( |
| 890 new SendRequestNatives(request_sender, context))); | 889 new SendRequestNatives(request_sender, context))); |
| 891 module_system->RegisterNativeHandler( | 890 module_system->RegisterNativeHandler( |
| 892 "setIcon", std::unique_ptr<NativeHandler>(new SetIconNatives(context))); | 891 "setIcon", std::unique_ptr<NativeHandler>(new SetIconNatives(context))); |
| 893 module_system->RegisterNativeHandler( | 892 module_system->RegisterNativeHandler( |
| 894 "activityLogger", std::unique_ptr<NativeHandler>( | 893 "activityLogger", std::unique_ptr<NativeHandler>( |
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 // The "guestViewDeny" module must always be loaded last. It registers | 1667 // The "guestViewDeny" module must always be loaded last. It registers |
| 1669 // error-providing custom elements for the GuestView types that are not | 1668 // error-providing custom elements for the GuestView types that are not |
| 1670 // available, and thus all of those types must have been checked and loaded | 1669 // available, and thus all of those types must have been checked and loaded |
| 1671 // (or not loaded) beforehand. | 1670 // (or not loaded) beforehand. |
| 1672 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { | 1671 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
| 1673 module_system->Require("guestViewDeny"); | 1672 module_system->Require("guestViewDeny"); |
| 1674 } | 1673 } |
| 1675 } | 1674 } |
| 1676 | 1675 |
| 1677 } // namespace extensions | 1676 } // namespace extensions |
| OLD | NEW |