| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); | 654 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); |
| 655 source_map_.RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS); | 655 source_map_.RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS); |
| 656 source_map_.RegisterSource("mediaGalleries", | 656 source_map_.RegisterSource("mediaGalleries", |
| 657 IDR_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); | 657 IDR_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); |
| 658 source_map_.RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS); | 658 source_map_.RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS); |
| 659 source_map_.RegisterSource("pageActions", | 659 source_map_.RegisterSource("pageActions", |
| 660 IDR_PAGE_ACTIONS_CUSTOM_BINDINGS_JS); | 660 IDR_PAGE_ACTIONS_CUSTOM_BINDINGS_JS); |
| 661 source_map_.RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS); | 661 source_map_.RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS); |
| 662 source_map_.RegisterSource("pageCapture", | 662 source_map_.RegisterSource("pageCapture", |
| 663 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS); | 663 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS); |
| 664 source_map_.RegisterSource("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS); |
| 664 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); | 665 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); |
| 665 source_map_.RegisterSource("storage", IDR_STORAGE_CUSTOM_BINDINGS_JS); | 666 source_map_.RegisterSource("storage", IDR_STORAGE_CUSTOM_BINDINGS_JS); |
| 666 source_map_.RegisterSource("syncFileSystem", | 667 source_map_.RegisterSource("syncFileSystem", |
| 667 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS); | 668 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS); |
| 668 source_map_.RegisterSource("tabCapture", IDR_TAB_CAPTURE_CUSTOM_BINDINGS_JS); | 669 source_map_.RegisterSource("tabCapture", IDR_TAB_CAPTURE_CUSTOM_BINDINGS_JS); |
| 669 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS); | 670 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS); |
| 670 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); | 671 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); |
| 671 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); | 672 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); |
| 672 source_map_.RegisterSource("types", IDR_TYPES_CUSTOM_BINDINGS_JS); | 673 source_map_.RegisterSource("types", IDR_TYPES_CUSTOM_BINDINGS_JS); |
| 673 source_map_.RegisterSource("webRequest", IDR_WEB_REQUEST_CUSTOM_BINDINGS_JS); | 674 source_map_.RegisterSource("webRequest", IDR_WEB_REQUEST_CUSTOM_BINDINGS_JS); |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 // we should abort. | 1119 // we should abort. |
| 1119 WebKit::WebFrame* frame = context->web_frame(); | 1120 WebKit::WebFrame* frame = context->web_frame(); |
| 1120 ExtensionURLInfo url_info(frame->document().securityOrigin(), | 1121 ExtensionURLInfo url_info(frame->document().securityOrigin(), |
| 1121 UserScriptSlave::GetDataSourceURLForFrame(frame)); | 1122 UserScriptSlave::GetDataSourceURLForFrame(frame)); |
| 1122 CHECK(!extensions_.IsSandboxedPage(url_info)); | 1123 CHECK(!extensions_.IsSandboxedPage(url_info)); |
| 1123 | 1124 |
| 1124 return true; | 1125 return true; |
| 1125 } | 1126 } |
| 1126 | 1127 |
| 1127 } // namespace extensions | 1128 } // namespace extensions |
| OLD | NEW |