| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 "-internal-media-controls-text-track-list* selectors", M59, | 417 "-internal-media-controls-text-track-list* selectors", M59, |
| 426 "5661431349379072"); | 418 "5661431349379072"); |
| 427 | 419 |
| 428 // Features that aren't deprecated don't have a deprecation message. | 420 // Features that aren't deprecated don't have a deprecation message. |
| 429 default: | 421 default: |
| 430 return String(); | 422 return String(); |
| 431 } | 423 } |
| 432 } | 424 } |
| 433 | 425 |
| 434 } // namespace blink | 426 } // namespace blink |
| OLD | NEW |