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/debug/alias.h" | 9 #include "base/debug/alias.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 source_map_.RegisterSource("webRequestInternal", | 968 source_map_.RegisterSource("webRequestInternal", |
969 IDR_WEB_REQUEST_INTERNAL_CUSTOM_BINDINGS_JS); | 969 IDR_WEB_REQUEST_INTERNAL_CUSTOM_BINDINGS_JS); |
970 source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); | 970 source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); |
971 source_map_.RegisterSource("windowControls", IDR_WINDOW_CONTROLS_JS); | 971 source_map_.RegisterSource("windowControls", IDR_WINDOW_CONTROLS_JS); |
972 source_map_.RegisterSource("binding", IDR_BINDING_JS); | 972 source_map_.RegisterSource("binding", IDR_BINDING_JS); |
973 | 973 |
974 // Custom types sources. | 974 // Custom types sources. |
975 source_map_.RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); | 975 source_map_.RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); |
976 source_map_.RegisterSource("StorageArea", IDR_STORAGE_AREA_JS); | 976 source_map_.RegisterSource("StorageArea", IDR_STORAGE_AREA_JS); |
977 source_map_.RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); | 977 source_map_.RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); |
| 978 source_map_.RegisterSource("ChromeDirectSetting", |
| 979 IDR_CHROME_DIRECT_SETTING_JS); |
978 | 980 |
979 // Platform app sources that are not API-specific.. | 981 // Platform app sources that are not API-specific.. |
980 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); | 982 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); |
981 // Note: webView not webview so that this doesn't interfere with the | 983 // Note: webView not webview so that this doesn't interfere with the |
982 // chrome.webview API bindings. | 984 // chrome.webview API bindings. |
983 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS); | 985 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS); |
984 source_map_.RegisterSource("webViewExperimental", | 986 source_map_.RegisterSource("webViewExperimental", |
985 IDR_WEB_VIEW_EXPERIMENTAL_JS); | 987 IDR_WEB_VIEW_EXPERIMENTAL_JS); |
986 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); | 988 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); |
987 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS); | 989 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS); |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1520 RenderView* background_view = | 1522 RenderView* background_view = |
1521 ExtensionHelper::GetBackgroundPage(extension_id); | 1523 ExtensionHelper::GetBackgroundPage(extension_id); |
1522 if (background_view) { | 1524 if (background_view) { |
1523 background_view->Send(new ExtensionHostMsg_EventAck( | 1525 background_view->Send(new ExtensionHostMsg_EventAck( |
1524 background_view->GetRoutingID())); | 1526 background_view->GetRoutingID())); |
1525 } | 1527 } |
1526 } | 1528 } |
1527 } | 1529 } |
1528 | 1530 |
1529 } // namespace extensions | 1531 } // namespace extensions |
OLD | NEW |