| 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 source_map_.RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS); | 663 source_map_.RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS); |
| 664 source_map_.RegisterSource("pageActions", | 664 source_map_.RegisterSource("pageActions", |
| 665 IDR_PAGE_ACTIONS_CUSTOM_BINDINGS_JS); | 665 IDR_PAGE_ACTIONS_CUSTOM_BINDINGS_JS); |
| 666 source_map_.RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS); | 666 source_map_.RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS); |
| 667 source_map_.RegisterSource("pageCapture", | 667 source_map_.RegisterSource("pageCapture", |
| 668 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS); | 668 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS); |
| 669 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); | 669 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); |
| 670 source_map_.RegisterSource("storage", IDR_STORAGE_CUSTOM_BINDINGS_JS); | 670 source_map_.RegisterSource("storage", IDR_STORAGE_CUSTOM_BINDINGS_JS); |
| 671 source_map_.RegisterSource("syncFileSystem", | 671 source_map_.RegisterSource("syncFileSystem", |
| 672 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS); | 672 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS); |
| 673 source_map_.RegisterSource("tabCapture", IDR_TAB_CAPTURE_CUSTOM_BINDINGS_JS); |
| 673 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS); | 674 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS); |
| 674 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); | 675 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); |
| 675 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); | 676 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); |
| 676 source_map_.RegisterSource("types", IDR_TYPES_CUSTOM_BINDINGS_JS); | 677 source_map_.RegisterSource("types", IDR_TYPES_CUSTOM_BINDINGS_JS); |
| 677 source_map_.RegisterSource("webRequest", IDR_WEB_REQUEST_CUSTOM_BINDINGS_JS); | 678 source_map_.RegisterSource("webRequest", IDR_WEB_REQUEST_CUSTOM_BINDINGS_JS); |
| 678 source_map_.RegisterSource("webRequestInternal", | 679 source_map_.RegisterSource("webRequestInternal", |
| 679 IDR_WEB_REQUEST_INTERNAL_CUSTOM_BINDINGS_JS); | 680 IDR_WEB_REQUEST_INTERNAL_CUSTOM_BINDINGS_JS); |
| 680 source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); | 681 source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); |
| 681 | 682 |
| 682 // Platform app sources that are not API-specific.. | 683 // Platform app sources that are not API-specific.. |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 // we should abort. | 1128 // we should abort. |
| 1128 WebKit::WebFrame* frame = context->web_frame(); | 1129 WebKit::WebFrame* frame = context->web_frame(); |
| 1129 ExtensionURLInfo url_info(frame->document().securityOrigin(), | 1130 ExtensionURLInfo url_info(frame->document().securityOrigin(), |
| 1130 UserScriptSlave::GetDataSourceURLForFrame(frame)); | 1131 UserScriptSlave::GetDataSourceURLForFrame(frame)); |
| 1131 CHECK(!extensions_.IsSandboxedPage(url_info)); | 1132 CHECK(!extensions_.IsSandboxedPage(url_info)); |
| 1132 | 1133 |
| 1133 return true; | 1134 return true; |
| 1134 } | 1135 } |
| 1135 | 1136 |
| 1136 } // namespace extensions | 1137 } // namespace extensions |
| OLD | NEW |