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

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 422743002: Deprecate EventSource.URL and WebSocket.URL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 732
733 case SyncXHRWithCredentials: 733 case SyncXHRWithCredentials:
734 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated."; 734 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated.";
735 735
736 case OpenWebDatabaseInWorker: 736 case OpenWebDatabaseInWorker:
737 return "'openDatabase' in Workers is deprecated. Please switch to Indexe d Database API."; 737 return "'openDatabase' in Workers is deprecated. Please switch to Indexe d Database API.";
738 738
739 case OpenWebDatabaseSyncInWorker: 739 case OpenWebDatabaseSyncInWorker:
740 return "'openDatabaseSync' is deprecated. Please switch to Indexed Datab ase API."; 740 return "'openDatabaseSync' is deprecated. Please switch to Indexed Datab ase API.";
741 741
742 case EventSourceURL:
743 return "'EventSource.URL' is deprecated. Please use 'EventSource.url' in stead.";
744
745 case WebSocketURL:
746 return "'WebSocket.URL' is deprecated. Please use 'WebSocket.url' instea d.";
747
742 // Features that aren't deprecated don't have a deprecation message. 748 // Features that aren't deprecated don't have a deprecation message.
743 default: 749 default:
744 return String(); 750 return String();
745 } 751 }
746 } 752 }
747 753
748 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 754 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
749 { 755 {
750 ASSERT(feature >= firstCSSProperty); 756 ASSERT(feature >= firstCSSProperty);
751 ASSERT(feature <= lastCSSProperty); 757 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
780 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 786 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
781 { 787 {
782 // FIXME: We may want to handle stylesheets that have multiple owners 788 // FIXME: We may want to handle stylesheets that have multiple owners
783 // http://crbug.com/242125 789 // http://crbug.com/242125
784 if (sheetContents && sheetContents->hasSingleOwnerNode()) 790 if (sheetContents && sheetContents->hasSingleOwnerNode())
785 return getFrom(sheetContents->singleOwnerDocument()); 791 return getFrom(sheetContents->singleOwnerDocument());
786 return 0; 792 return 0;
787 } 793 }
788 794
789 } // namespace blink 795 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/websocket/url-parsing-expected.txt ('k') | Source/core/page/EventSource.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698