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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 IDR_BROWSER_ACTION_CUSTOM_BINDINGS_JS); | 159 IDR_BROWSER_ACTION_CUSTOM_BINDINGS_JS); |
160 source_map->RegisterSource("declarativeContent", | 160 source_map->RegisterSource("declarativeContent", |
161 IDR_DECLARATIVE_CONTENT_CUSTOM_BINDINGS_JS); | 161 IDR_DECLARATIVE_CONTENT_CUSTOM_BINDINGS_JS); |
162 source_map->RegisterSource("declarativeWebRequest", | 162 source_map->RegisterSource("declarativeWebRequest", |
163 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); | 163 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); |
164 source_map->RegisterSource("desktopCapture", | 164 source_map->RegisterSource("desktopCapture", |
165 IDR_DESKTOP_CAPTURE_CUSTOM_BINDINGS_JS); | 165 IDR_DESKTOP_CAPTURE_CUSTOM_BINDINGS_JS); |
166 source_map->RegisterSource("developerPrivate", | 166 source_map->RegisterSource("developerPrivate", |
167 IDR_DEVELOPER_PRIVATE_CUSTOM_BINDINGS_JS); | 167 IDR_DEVELOPER_PRIVATE_CUSTOM_BINDINGS_JS); |
168 source_map->RegisterSource("downloads", IDR_DOWNLOADS_CUSTOM_BINDINGS_JS); | 168 source_map->RegisterSource("downloads", IDR_DOWNLOADS_CUSTOM_BINDINGS_JS); |
| 169 source_map->RegisterSource("enterprise.platformKeys", |
| 170 IDR_ENTERPRISE_PLATFORM_KEYS_CUSTOM_BINDINGS_JS); |
| 171 source_map->RegisterSource("enterprise.platformKeys.internalAPI", |
| 172 IDR_ENTERPRISE_PLATFORM_KEYS_INTERNAL_API_JS); |
| 173 source_map->RegisterSource("enterprise.platformKeys.Key", |
| 174 IDR_ENTERPRISE_PLATFORM_KEYS_KEY_JS); |
| 175 source_map->RegisterSource("enterprise.platformKeys.KeyPair", |
| 176 IDR_ENTERPRISE_PLATFORM_KEYS_KEY_PAIR_JS); |
| 177 source_map->RegisterSource("enterprise.platformKeys.SubtleCrypto", |
| 178 IDR_ENTERPRISE_PLATFORM_KEYS_SUBTLE_CRYPTO_JS); |
| 179 source_map->RegisterSource("enterprise.platformKeys.Token", |
| 180 IDR_ENTERPRISE_PLATFORM_KEYS_TOKEN_JS); |
| 181 source_map->RegisterSource("enterprise.platformKeys.utils", |
| 182 IDR_ENTERPRISE_PLATFORM_KEYS_UTILS_JS); |
169 source_map->RegisterSource("feedbackPrivate", | 183 source_map->RegisterSource("feedbackPrivate", |
170 IDR_FEEDBACK_PRIVATE_CUSTOM_BINDINGS_JS); | 184 IDR_FEEDBACK_PRIVATE_CUSTOM_BINDINGS_JS); |
171 source_map->RegisterSource("fileBrowserHandler", | 185 source_map->RegisterSource("fileBrowserHandler", |
172 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); | 186 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); |
173 source_map->RegisterSource("fileBrowserPrivate", | 187 source_map->RegisterSource("fileBrowserPrivate", |
174 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); | 188 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); |
175 source_map->RegisterSource("fileSystem", IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); | 189 source_map->RegisterSource("fileSystem", IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); |
176 source_map->RegisterSource("fileSystemProvider", | 190 source_map->RegisterSource("fileSystemProvider", |
177 IDR_FILE_SYSTEM_PROVIDER_CUSTOM_BINDINGS_JS); | 191 IDR_FILE_SYSTEM_PROVIDER_CUSTOM_BINDINGS_JS); |
178 source_map->RegisterSource("gcm", IDR_GCM_CUSTOM_BINDINGS_JS); | 192 source_map->RegisterSource("gcm", IDR_GCM_CUSTOM_BINDINGS_JS); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 } | 365 } |
352 | 366 |
353 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( | 367 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( |
354 bool adblock, | 368 bool adblock, |
355 bool adblock_plus, | 369 bool adblock_plus, |
356 bool other) { | 370 bool other) { |
357 webrequest_adblock_ = adblock; | 371 webrequest_adblock_ = adblock; |
358 webrequest_adblock_plus_ = adblock_plus; | 372 webrequest_adblock_plus_ = adblock_plus; |
359 webrequest_other_ = other; | 373 webrequest_other_ = other; |
360 } | 374 } |
OLD | NEW |