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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 source_map_.RegisterSource("contextMenus", | 636 source_map_.RegisterSource("contextMenus", |
637 IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS); | 637 IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS); |
638 source_map_.RegisterSource("declarativeWebRequest", | 638 source_map_.RegisterSource("declarativeWebRequest", |
639 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); | 639 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); |
640 source_map_.RegisterSource("devtools", IDR_DEVTOOLS_CUSTOM_BINDINGS_JS); | 640 source_map_.RegisterSource("devtools", IDR_DEVTOOLS_CUSTOM_BINDINGS_JS); |
641 source_map_.RegisterSource( | 641 source_map_.RegisterSource( |
642 "experimental.mediaGalleries", | 642 "experimental.mediaGalleries", |
643 IDR_EXPERIMENTAL_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); | 643 IDR_EXPERIMENTAL_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); |
644 source_map_.RegisterSource("experimental.offscreen", | 644 source_map_.RegisterSource("experimental.offscreen", |
645 IDR_EXPERIMENTAL_OFFSCREENTABS_CUSTOM_BINDINGS_JS); | 645 IDR_EXPERIMENTAL_OFFSCREENTABS_CUSTOM_BINDINGS_JS); |
| 646 source_map_.RegisterSource( |
| 647 "experimental.systemInfo.storage", |
| 648 IDR_EXPERIMENTAL_SYSTEM_INFO_STORAGE_CUSTOM_BINDINGS_JS); |
646 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); | 649 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); |
647 source_map_.RegisterSource("fileBrowserHandler", | 650 source_map_.RegisterSource("fileBrowserHandler", |
648 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); | 651 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); |
649 source_map_.RegisterSource("fileBrowserPrivate", | 652 source_map_.RegisterSource("fileBrowserPrivate", |
650 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); | 653 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); |
651 source_map_.RegisterSource("fileSystem", | 654 source_map_.RegisterSource("fileSystem", |
652 IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); | 655 IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); |
653 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); | 656 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); |
654 source_map_.RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS); | 657 source_map_.RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS); |
655 source_map_.RegisterSource("mediaGalleries", | 658 source_map_.RegisterSource("mediaGalleries", |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str()); | 1134 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str()); |
1132 v8::ThrowException( | 1135 v8::ThrowException( |
1133 v8::Exception::Error(v8::String::New(error_msg.c_str()))); | 1136 v8::Exception::Error(v8::String::New(error_msg.c_str()))); |
1134 return false; | 1137 return false; |
1135 } | 1138 } |
1136 | 1139 |
1137 return true; | 1140 return true; |
1138 } | 1141 } |
1139 | 1142 |
1140 } // namespace extensions | 1143 } // namespace extensions |
OLD | NEW |