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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 "switching your application to a secure origin, such as HTTPS. " | 317 "switching your application to a secure origin, such as HTTPS. " |
318 "See https://goo.gl/rStTGz for more details."; | 318 "See https://goo.gl/rStTGz for more details."; |
319 | 319 |
320 case UseCounter::GetUserMediaInsecureOrigin: | 320 case UseCounter::GetUserMediaInsecureOrigin: |
321 case UseCounter::GetUserMediaInsecureOriginIframe: | 321 case UseCounter::GetUserMediaInsecureOriginIframe: |
322 return "getUserMedia() no longer works on insecure origins. To use this " | 322 return "getUserMedia() no longer works on insecure origins. To use this " |
323 "feature, you should consider switching your application to a " | 323 "feature, you should consider switching your application to a " |
324 "secure origin, such as HTTPS. See https://goo.gl/rStTGz for more " | 324 "secure origin, such as HTTPS. See https://goo.gl/rStTGz for more " |
325 "details."; | 325 "details."; |
326 | 326 |
327 case UseCounter::EncryptedMediaInsecureOrigin: | |
328 return String::format( | |
329 "Using requestMediaKeySystemAccess() on insecure origins is " | |
330 "deprecated and will be removed in %s. You should consider " | |
331 "switching your application to a secure origin, such as HTTPS. See " | |
332 "https://goo.gl/rStTGz for more details.", | |
333 milestoneString(M58)); | |
334 | |
335 case UseCounter::MediaSourceAbortRemove: | 327 case UseCounter::MediaSourceAbortRemove: |
336 return "Using SourceBuffer.abort() to abort remove()'s asynchronous " | 328 return "Using SourceBuffer.abort() to abort remove()'s asynchronous " |
337 "range removal is deprecated due to specification change. Support " | 329 "range removal is deprecated due to specification change. Support " |
338 "will be removed in the future. You should instead await " | 330 "will be removed in the future. You should instead await " |
339 "'updateend'. abort() is intended to only abort an asynchronous " | 331 "'updateend'. abort() is intended to only abort an asynchronous " |
340 "media append or reset parser state. See " | 332 "media append or reset parser state. See " |
341 "https://www.chromestatus.com/features/6107495151960064 for more " | 333 "https://www.chromestatus.com/features/6107495151960064 for more " |
342 "details."; | 334 "details."; |
343 case UseCounter::MediaSourceDurationTruncatingBuffered: | 335 case UseCounter::MediaSourceDurationTruncatingBuffered: |
344 return "Setting MediaSource.duration below the highest presentation " | 336 return "Setting MediaSource.duration below the highest presentation " |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 "-internal-media-controls-text-track-list* selectors", M59, | 422 "-internal-media-controls-text-track-list* selectors", M59, |
431 "5661431349379072"); | 423 "5661431349379072"); |
432 | 424 |
433 // Features that aren't deprecated don't have a deprecation message. | 425 // Features that aren't deprecated don't have a deprecation message. |
434 default: | 426 default: |
435 return String(); | 427 return String(); |
436 } | 428 } |
437 } | 429 } |
438 | 430 |
439 } // namespace blink | 431 } // namespace blink |
OLD | NEW |