OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/frame/Deprecation.h" | 5 #include "core/frame/Deprecation.h" |
6 | 6 |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
9 #include "core/frame/FrameConsole.h" | 9 #include "core/frame/FrameConsole.h" |
10 #include "core/frame/FrameHost.h" | 10 #include "core/frame/FrameHost.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 "switching your application to a secure origin, such as HTTPS. " | 314 "switching your application to a secure origin, such as HTTPS. " |
315 "See https://goo.gl/rStTGz for more details."; | 315 "See https://goo.gl/rStTGz for more details."; |
316 | 316 |
317 case UseCounter::GetUserMediaInsecureOrigin: | 317 case UseCounter::GetUserMediaInsecureOrigin: |
318 case UseCounter::GetUserMediaInsecureOriginIframe: | 318 case UseCounter::GetUserMediaInsecureOriginIframe: |
319 return "getUserMedia() no longer works on insecure origins. To use this " | 319 return "getUserMedia() no longer works on insecure origins. To use this " |
320 "feature, you should consider switching your application to a " | 320 "feature, you should consider switching your application to a " |
321 "secure origin, such as HTTPS. See https://goo.gl/rStTGz for more " | 321 "secure origin, such as HTTPS. See https://goo.gl/rStTGz for more " |
322 "details."; | 322 "details."; |
323 | 323 |
324 case UseCounter::EncryptedMediaInsecureOrigin: | |
325 return String::format( | |
326 "Using requestMediaKeySystemAccess() on insecure origins is " | |
327 "deprecated and will be removed in %s. You should consider " | |
328 "switching your application to a secure origin, such as HTTPS. See " | |
329 "https://goo.gl/rStTGz for more details.", | |
330 milestoneString(M58)); | |
331 | |
332 case UseCounter::MediaSourceAbortRemove: | 324 case UseCounter::MediaSourceAbortRemove: |
333 return "Using SourceBuffer.abort() to abort remove()'s asynchronous " | 325 return "Using SourceBuffer.abort() to abort remove()'s asynchronous " |
334 "range removal is deprecated due to specification change. Support " | 326 "range removal is deprecated due to specification change. Support " |
335 "will be removed in the future. You should instead await " | 327 "will be removed in the future. You should instead await " |
336 "'updateend'. abort() is intended to only abort an asynchronous " | 328 "'updateend'. abort() is intended to only abort an asynchronous " |
337 "media append or reset parser state. See " | 329 "media append or reset parser state. See " |
338 "https://www.chromestatus.com/features/6107495151960064 for more " | 330 "https://www.chromestatus.com/features/6107495151960064 for more " |
339 "details."; | 331 "details."; |
340 case UseCounter::MediaSourceDurationTruncatingBuffered: | 332 case UseCounter::MediaSourceDurationTruncatingBuffered: |
341 return "Setting MediaSource.duration below the highest presentation " | 333 return "Setting MediaSource.duration below the highest presentation " |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 "-internal-media-controls-text-track-list* selectors", M59, | 409 "-internal-media-controls-text-track-list* selectors", M59, |
418 "5661431349379072"); | 410 "5661431349379072"); |
419 | 411 |
420 // Features that aren't deprecated don't have a deprecation message. | 412 // Features that aren't deprecated don't have a deprecation message. |
421 default: | 413 default: |
422 return String(); | 414 return String(); |
423 } | 415 } |
424 } | 416 } |
425 | 417 |
426 } // namespace blink | 418 } // namespace blink |
OLD | NEW |