| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 IDR_BROWSER_ACTION_CUSTOM_BINDINGS_JS); | 154 IDR_BROWSER_ACTION_CUSTOM_BINDINGS_JS); |
| 155 source_map->RegisterSource("declarativeContent", | 155 source_map->RegisterSource("declarativeContent", |
| 156 IDR_DECLARATIVE_CONTENT_CUSTOM_BINDINGS_JS); | 156 IDR_DECLARATIVE_CONTENT_CUSTOM_BINDINGS_JS); |
| 157 source_map->RegisterSource("declarativeWebRequest", | 157 source_map->RegisterSource("declarativeWebRequest", |
| 158 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); | 158 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); |
| 159 source_map->RegisterSource("desktopCapture", | 159 source_map->RegisterSource("desktopCapture", |
| 160 IDR_DESKTOP_CAPTURE_CUSTOM_BINDINGS_JS); | 160 IDR_DESKTOP_CAPTURE_CUSTOM_BINDINGS_JS); |
| 161 source_map->RegisterSource("developerPrivate", | 161 source_map->RegisterSource("developerPrivate", |
| 162 IDR_DEVELOPER_PRIVATE_CUSTOM_BINDINGS_JS); | 162 IDR_DEVELOPER_PRIVATE_CUSTOM_BINDINGS_JS); |
| 163 source_map->RegisterSource("downloads", IDR_DOWNLOADS_CUSTOM_BINDINGS_JS); | 163 source_map->RegisterSource("downloads", IDR_DOWNLOADS_CUSTOM_BINDINGS_JS); |
| 164 source_map->RegisterSource("enterprise.platformKeys", |
| 165 IDR_ENTERPRISE_PLATFORM_KEYS_CUSTOM_BINDINGS_JS); |
| 166 source_map->RegisterSource("enterprise.platformKeys.Key", |
| 167 IDR_ENTERPRISE_PLATFORM_KEYS_KEY_JS); |
| 168 source_map->RegisterSource("enterprise.platformKeys.KeyPair", |
| 169 IDR_ENTERPRISE_PLATFORM_KEYS_KEY_PAIR_JS); |
| 170 source_map->RegisterSource("enterprise.platformKeys.SubtleCrypto", |
| 171 IDR_ENTERPRISE_PLATFORM_KEYS_SUBTLE_CRYPTO_JS); |
| 172 source_map->RegisterSource("enterprise.platformKeys.Token", |
| 173 IDR_ENTERPRISE_PLATFORM_KEYS_TOKEN_JS); |
| 174 source_map->RegisterSource("enterprise.platformKeys.utils", |
| 175 IDR_ENTERPRISE_PLATFORM_KEYS_UTILS_JS); |
| 176 source_map->RegisterSource( |
| 177 "enterprise.platformKeysInternal", |
| 178 IDR_ENTERPRISE_PLATFORM_KEYS_INTERNAL_CUSTOM_BINDINGS_JS); |
| 164 source_map->RegisterSource("feedbackPrivate", | 179 source_map->RegisterSource("feedbackPrivate", |
| 165 IDR_FEEDBACK_PRIVATE_CUSTOM_BINDINGS_JS); | 180 IDR_FEEDBACK_PRIVATE_CUSTOM_BINDINGS_JS); |
| 166 source_map->RegisterSource("fileBrowserHandler", | 181 source_map->RegisterSource("fileBrowserHandler", |
| 167 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); | 182 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); |
| 168 source_map->RegisterSource("fileBrowserPrivate", | 183 source_map->RegisterSource("fileBrowserPrivate", |
| 169 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); | 184 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); |
| 170 source_map->RegisterSource("fileSystem", IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); | 185 source_map->RegisterSource("fileSystem", IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); |
| 171 source_map->RegisterSource("fileSystemProvider", | 186 source_map->RegisterSource("fileSystemProvider", |
| 172 IDR_FILE_SYSTEM_PROVIDER_CUSTOM_BINDINGS_JS); | 187 IDR_FILE_SYSTEM_PROVIDER_CUSTOM_BINDINGS_JS); |
| 173 source_map->RegisterSource("gcm", IDR_GCM_CUSTOM_BINDINGS_JS); | 188 source_map->RegisterSource("gcm", IDR_GCM_CUSTOM_BINDINGS_JS); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 } | 361 } |
| 347 | 362 |
| 348 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( | 363 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( |
| 349 bool adblock, | 364 bool adblock, |
| 350 bool adblock_plus, | 365 bool adblock_plus, |
| 351 bool other) { | 366 bool other) { |
| 352 webrequest_adblock_ = adblock; | 367 webrequest_adblock_ = adblock; |
| 353 webrequest_adblock_plus_ = adblock_plus; | 368 webrequest_adblock_plus_ = adblock_plus; |
| 354 webrequest_other_ = other; | 369 webrequest_other_ = other; |
| 355 } | 370 } |
| OLD | NEW |