Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(880)

Side by Side Diff: third_party/WebKit/Source/core/frame/Deprecation.cpp

Issue 2823833002: Deprecate RTCPeerConnection.getStreamById (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
11 #include "core/inspector/ConsoleMessage.h" 11 #include "core/inspector/ConsoleMessage.h"
12 #include "core/page/Page.h" 12 #include "core/page/Page.h"
13 #include "core/workers/WorkerOrWorkletGlobalScope.h" 13 #include "core/workers/WorkerOrWorkletGlobalScope.h"
14 14
15 namespace { 15 namespace {
16 16
17 enum Milestone { 17 enum Milestone {
18 M58, 18 M58,
19 M59, 19 M59,
20 M60, 20 M60,
21 M61, 21 M61,
22 M62,
22 }; 23 };
23 24
24 const char* milestoneString(Milestone milestone) { 25 const char* milestoneString(Milestone milestone) {
25 // These are the Estimated Stable Dates: 26 // These are the Estimated Stable Dates:
26 // https://www.chromium.org/developers/calendar 27 // https://www.chromium.org/developers/calendar
27 28
28 switch (milestone) { 29 switch (milestone) {
29 case M58: 30 case M58:
30 return "M58, around April 2017"; 31 return "M58, around April 2017";
31 case M59: 32 case M59:
32 return "M59, around June 2017"; 33 return "M59, around June 2017";
33 case M60: 34 case M60:
34 return "M60, around August 2017"; 35 return "M60, around August 2017";
35 case M61: 36 case M61:
36 return "M61, around September 2017"; 37 return "M61, around September 2017";
38 case M62:
39 return "M62, around October 2017";
37 } 40 }
38 41
39 ASSERT_NOT_REACHED(); 42 ASSERT_NOT_REACHED();
40 return nullptr; 43 return nullptr;
41 } 44 }
42 45
43 String replacedBy(const char* feature, const char* replacement) { 46 String replacedBy(const char* feature, const char* replacement) {
44 return String::Format("%s is deprecated. Please use %s instead.", feature, 47 return String::Format("%s is deprecated. Please use %s instead.", feature,
45 replacement); 48 replacement);
46 } 49 }
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 case UseCounter::kCanRequestURLHTTPContainingNewline: 437 case UseCounter::kCanRequestURLHTTPContainingNewline:
435 return String::Format( 438 return String::Format(
436 "Resource requests whose URLs contain raw newline characters are " 439 "Resource requests whose URLs contain raw newline characters are "
437 "deprecated, and may be blocked in %s. Please remove newlines from " 440 "deprecated, and may be blocked in %s. Please remove newlines from "
438 "places like element attribute values in order to continue loading " 441 "places like element attribute values in order to continue loading "
439 "those resources. See " 442 "those resources. See "
440 "https://www.chromestatus.com/features/5735596811091968 for more " 443 "https://www.chromestatus.com/features/5735596811091968 for more "
441 "details.", 444 "details.",
442 milestoneString(M60)); 445 milestoneString(M60));
443 446
447 case UseCounter::kV8RTCPeerConnection_GetStreamById_Method:
448 return willBeRemoved("RTCPeerConnection.getStreamById()", M62,
449 "5751819573657600");
450
444 // Features that aren't deprecated don't have a deprecation message. 451 // Features that aren't deprecated don't have a deprecation message.
445 default: 452 default:
446 return String(); 453 return String();
447 } 454 }
448 } 455 }
449 456
450 } // namespace blink 457 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698