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

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

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 // numbers of any item, and don't reuse removed slots. 1390 // numbers of any item, and don't reuse removed slots.
1391 // Also, run update_use_counter_feature_enum.py in 1391 // Also, run update_use_counter_feature_enum.py in
1392 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1392 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1393 NumberOfFeatures, // This enum value must be last. 1393 NumberOfFeatures, // This enum value must be last.
1394 }; 1394 };
1395 1395
1396 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1396 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1397 static void count(const Frame*, Feature); 1397 static void count(const Frame*, Feature);
1398 static void count(const Document&, Feature); 1398 static void count(const Document&, Feature);
1399 static void count(ExecutionContext*, Feature); 1399 static void count(ExecutionContext*, Feature);
1400 // Use countIfNotPrivateScript() instead of count() if you don't want
1401 // to count metrics in private scripts. You should use
1402 // countIfNotPrivateScript() in a binding layer.
1403 static void countIfNotPrivateScript(v8::Isolate*, const Frame*, Feature);
1404 static void countIfNotPrivateScript(v8::Isolate*, const Document&, Feature);
1405 static void countIfNotPrivateScript(v8::Isolate*, ExecutionContext*, Feature);
1406 1400
1407 void count(CSSParserMode, CSSPropertyID); 1401 void count(CSSParserMode, CSSPropertyID);
1408 void count(Feature); 1402 void count(Feature);
1409 1403
1410 // Count only features if they're being used in an iframe which does not 1404 // Count only features if they're being used in an iframe which does not
1411 // have script access into the top level document. 1405 // have script access into the top level document.
1412 static void countCrossOriginIframe(const Document&, Feature); 1406 static void countCrossOriginIframe(const Document&, Feature);
1413 1407
1414 // Return whether the Feature was previously counted for this document. 1408 // Return whether the Feature was previously counted for this document.
1415 // NOTE: only for use in testing. 1409 // NOTE: only for use in testing.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 // Tracks what features/properties need to be reported to the legacy 1456 // Tracks what features/properties need to be reported to the legacy
1463 // histograms. 1457 // histograms.
1464 BitVector m_featureBits; 1458 BitVector m_featureBits;
1465 BitVector m_CSSBits; 1459 BitVector m_CSSBits;
1466 } m_legacyCounter; 1460 } m_legacyCounter;
1467 }; 1461 };
1468 1462
1469 } // namespace blink 1463 } // namespace blink
1470 1464
1471 #endif // UseCounter_h 1465 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | third_party/WebKit/Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698