OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chrome_extensions_dispatcher_delegate.h" | 5 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/sha1.h" | 8 #include "base/sha1.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); | 233 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); |
234 source_map->RegisterSource("ChromeDirectSetting", | 234 source_map->RegisterSource("ChromeDirectSetting", |
235 IDR_CHROME_DIRECT_SETTING_JS); | 235 IDR_CHROME_DIRECT_SETTING_JS); |
236 | 236 |
237 // Platform app sources that are not API-specific.. | 237 // Platform app sources that are not API-specific.. |
238 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); | 238 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); |
239 source_map->RegisterSource("webview", IDR_WEBVIEW_CUSTOM_BINDINGS_JS); | 239 source_map->RegisterSource("webview", IDR_WEBVIEW_CUSTOM_BINDINGS_JS); |
240 // Note: webView not webview so that this doesn't interfere with the | 240 // Note: webView not webview so that this doesn't interfere with the |
241 // chrome.webview API bindings. | 241 // chrome.webview API bindings. |
242 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS); | 242 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS); |
| 243 source_map->RegisterSource("webViewEvents", IDR_WEB_VIEW_EVENTS_JS); |
243 source_map->RegisterSource("webViewExperimental", | 244 source_map->RegisterSource("webViewExperimental", |
244 IDR_WEB_VIEW_EXPERIMENTAL_JS); | 245 IDR_WEB_VIEW_EXPERIMENTAL_JS); |
245 source_map->RegisterSource("webViewRequest", | 246 source_map->RegisterSource("webViewRequest", |
246 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS); | 247 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS); |
247 source_map->RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); | 248 source_map->RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); |
248 source_map->RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); | 249 source_map->RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); |
249 } | 250 } |
250 | 251 |
251 void ChromeExtensionsDispatcherDelegate::RequireAdditionalModules( | 252 void ChromeExtensionsDispatcherDelegate::RequireAdditionalModules( |
252 extensions::ModuleSystem* module_system, | 253 extensions::ModuleSystem* module_system, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 new extensions::PermissionSet(extensions::APIPermissionSet(), | 347 new extensions::PermissionSet(extensions::APIPermissionSet(), |
347 extensions::ManifestPermissionSet(), | 348 extensions::ManifestPermissionSet(), |
348 origin_set, | 349 origin_set, |
349 extensions::URLPatternSet())); | 350 extensions::URLPatternSet())); |
350 } | 351 } |
351 | 352 |
352 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( | 353 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( |
353 bool webrequest_used) { | 354 bool webrequest_used) { |
354 webrequest_used_ = webrequest_used; | 355 webrequest_used_ = webrequest_used; |
355 } | 356 } |
OLD | NEW |