| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/renderer/extensions/dispatcher.h" | 5 #include "chrome/renderer/extensions/dispatcher.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 source_map_.RegisterSource("contextMenus", | 650 source_map_.RegisterSource("contextMenus", |
| 651 IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS); | 651 IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS); |
| 652 source_map_.RegisterSource("declarativeWebRequest", | 652 source_map_.RegisterSource("declarativeWebRequest", |
| 653 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); | 653 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); |
| 654 source_map_.RegisterSource("devtools", IDR_DEVTOOLS_CUSTOM_BINDINGS_JS); | 654 source_map_.RegisterSource("devtools", IDR_DEVTOOLS_CUSTOM_BINDINGS_JS); |
| 655 source_map_.RegisterSource("experimental.bluetooth", | 655 source_map_.RegisterSource("experimental.bluetooth", |
| 656 IDR_EXPERIMENTAL_BLUETOOTH_CUSTOM_BINDINGS_JS); | 656 IDR_EXPERIMENTAL_BLUETOOTH_CUSTOM_BINDINGS_JS); |
| 657 source_map_.RegisterSource( | 657 source_map_.RegisterSource( |
| 658 "experimental.mediaGalleries", | 658 "experimental.mediaGalleries", |
| 659 IDR_EXPERIMENTAL_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); | 659 IDR_EXPERIMENTAL_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); |
| 660 source_map_.RegisterSource("experimental.tabCapture", |
| 661 IDR_EXPERIMENTAL_TAB_CAPTURE_CUSTOM_BINDINGS_JS); |
| 660 source_map_.RegisterSource("experimental.offscreen", | 662 source_map_.RegisterSource("experimental.offscreen", |
| 661 IDR_EXPERIMENTAL_OFFSCREENTABS_CUSTOM_BINDINGS_JS); | 663 IDR_EXPERIMENTAL_OFFSCREENTABS_CUSTOM_BINDINGS_JS); |
| 662 source_map_.RegisterSource("experimental.usb", | 664 source_map_.RegisterSource("experimental.usb", |
| 663 IDR_EXPERIMENTAL_USB_CUSTOM_BINDINGS_JS); | 665 IDR_EXPERIMENTAL_USB_CUSTOM_BINDINGS_JS); |
| 664 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); | 666 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); |
| 665 source_map_.RegisterSource("fileBrowserHandler", | 667 source_map_.RegisterSource("fileBrowserHandler", |
| 666 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); | 668 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); |
| 667 source_map_.RegisterSource("fileBrowserPrivate", | 669 source_map_.RegisterSource("fileBrowserPrivate", |
| 668 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); | 670 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); |
| 669 source_map_.RegisterSource("fileSystem", | 671 source_map_.RegisterSource("fileSystem", |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 // we should abort. | 1118 // we should abort. |
| 1117 WebKit::WebFrame* frame = context->web_frame(); | 1119 WebKit::WebFrame* frame = context->web_frame(); |
| 1118 ExtensionURLInfo url_info(frame->document().securityOrigin(), | 1120 ExtensionURLInfo url_info(frame->document().securityOrigin(), |
| 1119 UserScriptSlave::GetDataSourceURLForFrame(frame)); | 1121 UserScriptSlave::GetDataSourceURLForFrame(frame)); |
| 1120 CHECK(!extensions_.IsSandboxedPage(url_info)); | 1122 CHECK(!extensions_.IsSandboxedPage(url_info)); |
| 1121 | 1123 |
| 1122 return true; | 1124 return true; |
| 1123 } | 1125 } |
| 1124 | 1126 |
| 1125 } // namespace extensions | 1127 } // namespace extensions |
| OLD | NEW |