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

Unified Diff: Source/core/page/PageConsole.h

Issue 14146021: Move deprecation messages to UseCounter::measureDeprecatedFeature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/ContentSecurityPolicy.cpp ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PageConsole.h
diff --git a/Source/core/page/PageConsole.h b/Source/core/page/PageConsole.h
index 52cc723fa7d3082a1775f25247a95223f455a533..7a4fe4e1748cc063707aae8e4bafc32b2f40c898 100644
--- a/Source/core/page/PageConsole.h
+++ b/Source/core/page/PageConsole.h
@@ -45,28 +45,6 @@ class ScriptExecutionContext;
class PageConsole {
public:
- enum DeprecatedFeature {
- // CSP
- PrefixedContentSecurityPolicyHeader,
-
- // HTMLMediaElement
- PrefixedMediaAddKey,
- PrefixedMediaGenerateKeyRequest,
-
- // Performance
- PrefixedPerformanceTimeline,
- PrefixedUserTiming,
-
- // Quota
- PrefixedStorageInfo,
-
- // Web Audio
- WebAudioLooping,
-
- // Add newly deprecated features above this line.
- NumberOfFeatures, // Sentinel.
- };
-
static PassOwnPtr<PageConsole> create(Page* page) { return adoptPtr(new PageConsole(page)); }
virtual ~PageConsole();
@@ -74,22 +52,15 @@ public:
void addMessage(MessageSource, MessageLevel, const String& message, PassRefPtr<ScriptCallStack>);
void addMessage(MessageSource, MessageLevel, const String& message, unsigned long requestIdentifier = 0, Document* = 0);
- static void reportDeprecation(DOMWindow*, DeprecatedFeature);
- static void reportDeprecation(ScriptExecutionContext*, DeprecatedFeature);
- static void reportDeprecation(Document*, DeprecatedFeature);
-
static void mute();
static void unmute();
private:
PageConsole(Page*);
- void addDeprecationMessage(DeprecatedFeature);
-
Page* page() { return m_page; };
Page* m_page;
- BitVector m_deprecationNotifications;
};
} // namespace WebCore
« no previous file with comments | « Source/core/page/ContentSecurityPolicy.cpp ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698