Chromium Code Reviews| 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", | |
|
pneubeck (no reviews)
2014/05/14 15:49:14
@Benjamin, should these resources be registered on
not at google - send to devlin
2014/05/14 17:16:10
we don't do that here for some reason. it doesn't
| |
| 165 IDR_ENTERPRISE_PLATFORM_KEYS_CUSTOM_BINDINGS_JS); | |
| 166 source_map->RegisterSource("enterprise.platformKeys.internalAPI", | |
| 167 IDR_ENTERPRISE_PLATFORM_KEYS_INTERNAL_API_JS); | |
| 168 source_map->RegisterSource("enterprise.platformKeys.Key", | |
| 169 IDR_ENTERPRISE_PLATFORM_KEYS_KEY_JS); | |
| 170 source_map->RegisterSource("enterprise.platformKeys.KeyPair", | |
| 171 IDR_ENTERPRISE_PLATFORM_KEYS_KEY_PAIR_JS); | |
| 172 source_map->RegisterSource("enterprise.platformKeys.SubtleCrypto", | |
| 173 IDR_ENTERPRISE_PLATFORM_KEYS_SUBTLE_CRYPTO_JS); | |
| 174 source_map->RegisterSource("enterprise.platformKeys.Token", | |
| 175 IDR_ENTERPRISE_PLATFORM_KEYS_TOKEN_JS); | |
| 176 source_map->RegisterSource("enterprise.platformKeys.utils", | |
| 177 IDR_ENTERPRISE_PLATFORM_KEYS_UTILS_JS); | |
| 164 source_map->RegisterSource("feedbackPrivate", | 178 source_map->RegisterSource("feedbackPrivate", |
| 165 IDR_FEEDBACK_PRIVATE_CUSTOM_BINDINGS_JS); | 179 IDR_FEEDBACK_PRIVATE_CUSTOM_BINDINGS_JS); |
| 166 source_map->RegisterSource("fileBrowserHandler", | 180 source_map->RegisterSource("fileBrowserHandler", |
| 167 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); | 181 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); |
| 168 source_map->RegisterSource("fileBrowserPrivate", | 182 source_map->RegisterSource("fileBrowserPrivate", |
| 169 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); | 183 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); |
| 170 source_map->RegisterSource("fileSystem", IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); | 184 source_map->RegisterSource("fileSystem", IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); |
| 171 source_map->RegisterSource("fileSystemProvider", | 185 source_map->RegisterSource("fileSystemProvider", |
| 172 IDR_FILE_SYSTEM_PROVIDER_CUSTOM_BINDINGS_JS); | 186 IDR_FILE_SYSTEM_PROVIDER_CUSTOM_BINDINGS_JS); |
| 173 source_map->RegisterSource("gcm", IDR_GCM_CUSTOM_BINDINGS_JS); | 187 source_map->RegisterSource("gcm", IDR_GCM_CUSTOM_BINDINGS_JS); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 } | 360 } |
| 347 | 361 |
| 348 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( | 362 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( |
| 349 bool adblock, | 363 bool adblock, |
| 350 bool adblock_plus, | 364 bool adblock_plus, |
| 351 bool other) { | 365 bool other) { |
| 352 webrequest_adblock_ = adblock; | 366 webrequest_adblock_ = adblock; |
| 353 webrequest_adblock_plus_ = adblock_plus; | 367 webrequest_adblock_plus_ = adblock_plus; |
| 354 webrequest_other_ = other; | 368 webrequest_other_ = other; |
| 355 } | 369 } |
| OLD | NEW |