| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 source_map->RegisterSource("windowControls", IDR_WINDOW_CONTROLS_JS); | 231 source_map->RegisterSource("windowControls", IDR_WINDOW_CONTROLS_JS); |
| 232 | 232 |
| 233 // Custom types sources. | 233 // Custom types sources. |
| 234 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); | 234 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); |
| 235 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); | 235 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); |
| 236 source_map->RegisterSource("ChromeDirectSetting", | 236 source_map->RegisterSource("ChromeDirectSetting", |
| 237 IDR_CHROME_DIRECT_SETTING_JS); | 237 IDR_CHROME_DIRECT_SETTING_JS); |
| 238 | 238 |
| 239 // Platform app sources that are not API-specific.. | 239 // Platform app sources that are not API-specific.. |
| 240 source_map->RegisterSource("appView", IDR_APP_VIEW_JS); | 240 source_map->RegisterSource("appView", IDR_APP_VIEW_JS); |
| 241 source_map->RegisterSource("extensionOptions", IDR_EXTENSION_OPTIONS_JS); |
| 241 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); | 242 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); |
| 242 source_map->RegisterSource("webViewInternal", | 243 source_map->RegisterSource("webViewInternal", |
| 243 IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); | 244 IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); |
| 244 // Note: webView not webview so that this doesn't interfere with the | 245 // Note: webView not webview so that this doesn't interfere with the |
| 245 // chrome.webview API bindings. | 246 // chrome.webview API bindings. |
| 246 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS); | 247 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS); |
| 247 source_map->RegisterSource("webViewEvents", IDR_WEB_VIEW_EVENTS_JS); | 248 source_map->RegisterSource("webViewEvents", IDR_WEB_VIEW_EVENTS_JS); |
| 248 source_map->RegisterSource("webViewExperimental", | 249 source_map->RegisterSource("webViewExperimental", |
| 249 IDR_WEB_VIEW_EXPERIMENTAL_JS); | 250 IDR_WEB_VIEW_EXPERIMENTAL_JS); |
| 250 source_map->RegisterSource("webViewRequest", | 251 source_map->RegisterSource("webViewRequest", |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 new extensions::PermissionSet(extensions::APIPermissionSet(), | 367 new extensions::PermissionSet(extensions::APIPermissionSet(), |
| 367 extensions::ManifestPermissionSet(), | 368 extensions::ManifestPermissionSet(), |
| 368 origin_set, | 369 origin_set, |
| 369 extensions::URLPatternSet())); | 370 extensions::URLPatternSet())); |
| 370 } | 371 } |
| 371 | 372 |
| 372 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( | 373 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( |
| 373 bool webrequest_used) { | 374 bool webrequest_used) { |
| 374 webrequest_used_ = webrequest_used; | 375 webrequest_used_ = webrequest_used; |
| 375 } | 376 } |
| OLD | NEW |