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

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.h

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: simplify Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 public: 63 public:
64 enum Context { 64 enum Context {
65 DefaultContext, 65 DefaultContext,
66 // Counters for SVGImages (lifetime independent from other pages). 66 // Counters for SVGImages (lifetime independent from other pages).
67 SVGImageContext 67 SVGImageContext
68 }; 68 };
69 69
70 UseCounter(Context = DefaultContext); 70 UseCounter(Context = DefaultContext);
71 71
72 enum Feature { 72 enum Feature : uint32_t {
73 // Do not change assigned numbers of existing items: add new features 73 // Do not change assigned numbers of existing items: add new features
74 // to the end of the list. 74 // to the end of the list.
75 OBSOLETE_PageDestruction = 0, 75 OBSOLETE_PageDestruction = 0,
76 WorkerStart = 4, 76 WorkerStart = 4,
77 SharedWorkerStart = 5, 77 SharedWorkerStart = 5,
78 UnprefixedIndexedDB = 9, 78 UnprefixedIndexedDB = 9,
79 OpenWebDatabase = 10, 79 OpenWebDatabase = 10,
80 UnprefixedRequestAnimationFrame = 13, 80 UnprefixedRequestAnimationFrame = 13,
81 PrefixedRequestAnimationFrame = 14, 81 PrefixedRequestAnimationFrame = 14,
82 ContentSecurityPolicy = 15, 82 ContentSecurityPolicy = 15,
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 // Tracks what features/properties need to be reported to the legacy 1536 // Tracks what features/properties need to be reported to the legacy
1537 // histograms. 1537 // histograms.
1538 BitVector m_featureBits; 1538 BitVector m_featureBits;
1539 BitVector m_CSSBits; 1539 BitVector m_CSSBits;
1540 } m_legacyCounter; 1540 } m_legacyCounter;
1541 }; 1541 };
1542 1542
1543 } // namespace blink 1543 } // namespace blink
1544 1544
1545 #endif // UseCounter_h 1545 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698