| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 "See https://goo.gl/rStTGz for more details."; | 344 "See https://goo.gl/rStTGz for more details."; |
| 345 | 345 |
| 346 case UseCounter::GetUserMediaInsecureOrigin: | 346 case UseCounter::GetUserMediaInsecureOrigin: |
| 347 case UseCounter::GetUserMediaInsecureOriginIframe: | 347 case UseCounter::GetUserMediaInsecureOriginIframe: |
| 348 return "getUserMedia() no longer works on insecure origins. To use this " | 348 return "getUserMedia() no longer works on insecure origins. To use this " |
| 349 "feature, you should consider switching your application to a " | 349 "feature, you should consider switching your application to a " |
| 350 "secure origin, such as HTTPS. See https://goo.gl/rStTGz for more " | 350 "secure origin, such as HTTPS. See https://goo.gl/rStTGz for more " |
| 351 "details."; | 351 "details."; |
| 352 | 352 |
| 353 case UseCounter::EncryptedMediaInsecureOrigin: | 353 case UseCounter::EncryptedMediaInsecureOrigin: |
| 354 return "requestMediaKeySystemAccess() is deprecated on insecure origins " | 354 return String::format( |
| 355 "in the specification. Support will be removed in the future. You " | 355 "Using requestMediaKeySystemAccess() on insecure origins is " |
| 356 "should consider switching your application to a secure origin, " | 356 "deprecated and will be removed in %s. You should consider " |
| 357 "such as HTTPS. See https://goo.gl/rStTGz for more details."; | 357 "switching your application to a secure origin, such as HTTPS. See " |
| 358 "https://goo.gl/rStTGz for more details.", |
| 359 milestoneString(M58)); |
| 358 | 360 |
| 359 case UseCounter::MediaSourceAbortRemove: | 361 case UseCounter::MediaSourceAbortRemove: |
| 360 return "Using SourceBuffer.abort() to abort remove()'s asynchronous " | 362 return "Using SourceBuffer.abort() to abort remove()'s asynchronous " |
| 361 "range removal is deprecated due to specification change. Support " | 363 "range removal is deprecated due to specification change. Support " |
| 362 "will be removed in the future. You should instead await " | 364 "will be removed in the future. You should instead await " |
| 363 "'updateend'. abort() is intended to only abort an asynchronous " | 365 "'updateend'. abort() is intended to only abort an asynchronous " |
| 364 "media append or reset parser state. See " | 366 "media append or reset parser state. See " |
| 365 "https://www.chromestatus.com/features/6107495151960064 for more " | 367 "https://www.chromestatus.com/features/6107495151960064 for more " |
| 366 "details."; | 368 "details."; |
| 367 case UseCounter::MediaSourceDurationTruncatingBuffered: | 369 case UseCounter::MediaSourceDurationTruncatingBuffered: |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 case UseCounter::VRDeprecatedGetPose: | 441 case UseCounter::VRDeprecatedGetPose: |
| 440 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); | 442 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); |
| 441 | 443 |
| 442 // Features that aren't deprecated don't have a deprecation message. | 444 // Features that aren't deprecated don't have a deprecation message. |
| 443 default: | 445 default: |
| 444 return String(); | 446 return String(); |
| 445 } | 447 } |
| 446 } | 448 } |
| 447 | 449 |
| 448 } // namespace blink | 450 } // namespace blink |
| OLD | NEW |