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

Side by Side Diff: extensions/renderer/dispatcher.cc

Issue 2796253002: Associated Message Validation (Closed)
Patch Set: Validate payloadInterfaceIds before getting it. Use [0] for dimensions for validateArrayPointer. Ca… Created 3 years, 8 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 | « content/renderer/mojo_context_state.cc ('k') | ios/web/ios_web_resources.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 // Note: webView not webview so that this doesn't interfere with the 733 // Note: webView not webview so that this doesn't interfere with the
734 // chrome.webview API bindings. 734 // chrome.webview API bindings.
735 {"webView", IDR_WEB_VIEW_JS}, 735 {"webView", IDR_WEB_VIEW_JS},
736 {"webViewActionRequests", IDR_WEB_VIEW_ACTION_REQUESTS_JS}, 736 {"webViewActionRequests", IDR_WEB_VIEW_ACTION_REQUESTS_JS},
737 {"webViewApiMethods", IDR_WEB_VIEW_API_METHODS_JS}, 737 {"webViewApiMethods", IDR_WEB_VIEW_API_METHODS_JS},
738 {"webViewAttributes", IDR_WEB_VIEW_ATTRIBUTES_JS}, 738 {"webViewAttributes", IDR_WEB_VIEW_ATTRIBUTES_JS},
739 {"webViewConstants", IDR_WEB_VIEW_CONSTANTS_JS}, 739 {"webViewConstants", IDR_WEB_VIEW_CONSTANTS_JS},
740 {"webViewEvents", IDR_WEB_VIEW_EVENTS_JS}, 740 {"webViewEvents", IDR_WEB_VIEW_EVENTS_JS},
741 {"webViewInternal", IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS}, 741 {"webViewInternal", IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS},
742 742
743 {mojo::kAssociatedBindingsModuleName, IDR_MOJO_ASSOCIATED_BINDINGS_JS},
743 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS}, 744 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS},
744 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS}, 745 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS},
745 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS}, 746 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS},
746 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS}, 747 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS},
747 {mojo::kControlMessageHandlerModuleName, 748 {mojo::kControlMessageHandlerModuleName,
748 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS}, 749 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS},
749 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS}, 750 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS},
750 {mojo::kInterfaceControlMessagesMojom, 751 {mojo::kInterfaceControlMessagesMojom,
751 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS}, 752 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS},
752 {mojo::kInterfaceEndpointClientModuleName, 753 {mojo::kInterfaceEndpointClientModuleName,
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 // The "guestViewDeny" module must always be loaded last. It registers 1467 // The "guestViewDeny" module must always be loaded last. It registers
1467 // error-providing custom elements for the GuestView types that are not 1468 // error-providing custom elements for the GuestView types that are not
1468 // available, and thus all of those types must have been checked and loaded 1469 // available, and thus all of those types must have been checked and loaded
1469 // (or not loaded) beforehand. 1470 // (or not loaded) beforehand.
1470 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { 1471 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) {
1471 module_system->Require("guestViewDeny"); 1472 module_system->Require("guestViewDeny");
1472 } 1473 }
1473 } 1474 }
1474 1475
1475 } // namespace extensions 1476 } // namespace extensions
OLDNEW
« no previous file with comments | « content/renderer/mojo_context_state.cc ('k') | ios/web/ios_web_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698