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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 source_map->RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); | 207 source_map->RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); |
208 source_map->RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); | 208 source_map->RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); |
209 #if defined(ENABLE_WEBRTC) | 209 #if defined(ENABLE_WEBRTC) |
210 source_map->RegisterSource("cast.streaming.rtpStream", | 210 source_map->RegisterSource("cast.streaming.rtpStream", |
211 IDR_CAST_STREAMING_RTP_STREAM_CUSTOM_BINDINGS_JS); | 211 IDR_CAST_STREAMING_RTP_STREAM_CUSTOM_BINDINGS_JS); |
212 source_map->RegisterSource("cast.streaming.session", | 212 source_map->RegisterSource("cast.streaming.session", |
213 IDR_CAST_STREAMING_SESSION_CUSTOM_BINDINGS_JS); | 213 IDR_CAST_STREAMING_SESSION_CUSTOM_BINDINGS_JS); |
214 source_map->RegisterSource( | 214 source_map->RegisterSource( |
215 "cast.streaming.udpTransport", | 215 "cast.streaming.udpTransport", |
216 IDR_CAST_STREAMING_UDP_TRANSPORT_CUSTOM_BINDINGS_JS); | 216 IDR_CAST_STREAMING_UDP_TRANSPORT_CUSTOM_BINDINGS_JS); |
| 217 source_map->RegisterSource( |
| 218 "cast.streaming.receiverSession", |
| 219 IDR_CAST_STREAMING_RECEIVER_SESSION_CUSTOM_BINDINGS_JS); |
217 #endif | 220 #endif |
218 source_map->RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); | 221 source_map->RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); |
219 | 222 |
220 // Custom types sources. | 223 // Custom types sources. |
221 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); | 224 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); |
222 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); | 225 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); |
223 source_map->RegisterSource("ChromeDirectSetting", | 226 source_map->RegisterSource("ChromeDirectSetting", |
224 IDR_CHROME_DIRECT_SETTING_JS); | 227 IDR_CHROME_DIRECT_SETTING_JS); |
225 | 228 |
226 // Platform app sources that are not API-specific.. | 229 // Platform app sources that are not API-specific.. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 279 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
277 ::switches::kSingleProcess)) | 280 ::switches::kSingleProcess)) |
278 return; | 281 return; |
279 crash_keys::SetActiveExtensions(extension_ids); | 282 crash_keys::SetActiveExtensions(extension_ids); |
280 } | 283 } |
281 | 284 |
282 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { | 285 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { |
283 extensions::SetCurrentChannel( | 286 extensions::SetCurrentChannel( |
284 static_cast<chrome::VersionInfo::Channel>(channel)); | 287 static_cast<chrome::VersionInfo::Channel>(channel)); |
285 } | 288 } |
OLD | NEW |