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

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

Issue 2796253002: Associated Message Validation (Closed)
Patch Set: Remove encode & decode for Associated Interface/Request. Current test only tests validation. 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
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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 // Note: webView not webview so that this doesn't interfere with the 732 // Note: webView not webview so that this doesn't interfere with the
733 // chrome.webview API bindings. 733 // chrome.webview API bindings.
734 {"webView", IDR_WEB_VIEW_JS}, 734 {"webView", IDR_WEB_VIEW_JS},
735 {"webViewActionRequests", IDR_WEB_VIEW_ACTION_REQUESTS_JS}, 735 {"webViewActionRequests", IDR_WEB_VIEW_ACTION_REQUESTS_JS},
736 {"webViewApiMethods", IDR_WEB_VIEW_API_METHODS_JS}, 736 {"webViewApiMethods", IDR_WEB_VIEW_API_METHODS_JS},
737 {"webViewAttributes", IDR_WEB_VIEW_ATTRIBUTES_JS}, 737 {"webViewAttributes", IDR_WEB_VIEW_ATTRIBUTES_JS},
738 {"webViewConstants", IDR_WEB_VIEW_CONSTANTS_JS}, 738 {"webViewConstants", IDR_WEB_VIEW_CONSTANTS_JS},
739 {"webViewEvents", IDR_WEB_VIEW_EVENTS_JS}, 739 {"webViewEvents", IDR_WEB_VIEW_EVENTS_JS},
740 {"webViewInternal", IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS}, 740 {"webViewInternal", IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS},
741 741
742 {mojo::kAssociatedBindingsModuleName, IDR_MOJO_ASSOCIATED_BINDINGS_JS},
742 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS}, 743 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS},
743 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS}, 744 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS},
744 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS}, 745 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS},
745 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS}, 746 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS},
746 {mojo::kControlMessageHandlerModuleName, 747 {mojo::kControlMessageHandlerModuleName,
747 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS}, 748 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS},
748 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS}, 749 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS},
749 {mojo::kInterfaceControlMessagesMojom, 750 {mojo::kInterfaceControlMessagesMojom,
750 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS}, 751 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS},
751 {mojo::kInterfaceEndpointClientModuleName, 752 {mojo::kInterfaceEndpointClientModuleName,
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 // The "guestViewDeny" module must always be loaded last. It registers 1470 // The "guestViewDeny" module must always be loaded last. It registers
1470 // error-providing custom elements for the GuestView types that are not 1471 // error-providing custom elements for the GuestView types that are not
1471 // available, and thus all of those types must have been checked and loaded 1472 // available, and thus all of those types must have been checked and loaded
1472 // (or not loaded) beforehand. 1473 // (or not loaded) beforehand.
1473 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { 1474 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) {
1474 module_system->Require("guestViewDeny"); 1475 module_system->Require("guestViewDeny");
1475 } 1476 }
1476 } 1477 }
1477 1478
1478 } // namespace extensions 1479 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698