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

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

Issue 312253003: Add UseCounters for the types of mixed content we currently don't block. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 VTTCueRenderSizeNot100 = 415, 414 VTTCueRenderSizeNot100 = 415,
415 VTTCueRenderAlignNotMiddle = 416, 415 VTTCueRenderAlignNotMiddle = 416,
416 // The above items are available in M36 branch. 416 // The above items are available in M36 branch.
417 417
418 ElementRequestPointerLock = 417, 418 ElementRequestPointerLock = 417,
419 VTTCueRenderRtl = 418, 419 VTTCueRenderRtl = 418,
420 PostMessageFromSecureToInsecure = 419, 420 PostMessageFromSecureToInsecure = 419,
421 PostMessageFromInsecureToSecure = 420, 421 PostMessageFromInsecureToSecure = 420,
422 DocumentExitPointerLock = 421, 422 DocumentExitPointerLock = 421,
423 DocumentPointerLockElement = 422, 423 DocumentPointerLockElement = 422,
424 MixedContentFont = 423,
425 PrefixedCursorZoomIn = 424, 424 PrefixedCursorZoomIn = 424,
426 PrefixedCursorZoomOut = 425, 425 PrefixedCursorZoomOut = 425,
427 CSSCharsetRuleEncoding = 426, 426 CSSCharsetRuleEncoding = 426,
428 DocumentSetCharset = 427, 427 DocumentSetCharset = 427,
429 DocumentDefaultCharset = 428, 428 DocumentDefaultCharset = 428,
430 TextEncoderConstructor = 429, 429 TextEncoderConstructor = 429,
431 TextEncoderEncode = 430, 430 TextEncoderEncode = 430,
432 TextDecoderConstructor = 431, 431 TextDecoderConstructor = 431,
433 TextDecoderDecode= 432, 432 TextDecoderDecode= 432,
434 FocusInOutEvent = 433, 433 FocusInOutEvent = 433,
435 MouseEventMovementX = 434, 434 MouseEventMovementX = 434,
436 MouseEventMovementY = 435, 435 MouseEventMovementY = 435,
436 MixedContentTextTrack = 436,
437 MixedContentRaw = 437,
438 MixedContentImage = 438,
439 MixedContentMedia = 439,
440
437 // Add new features immediately above this line. Don't change assigned 441 // Add new features immediately above this line. Don't change assigned
438 // numbers of any item, and don't reuse removed slots. 442 // numbers of any item, and don't reuse removed slots.
439 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 443 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
440 // to update the UMA mapping. 444 // to update the UMA mapping.
441 NumberOfFeatures, // This enum value must be last. 445 NumberOfFeatures, // This enum value must be last.
442 }; 446 };
443 447
444 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 448 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
445 static void count(const Document&, Feature); 449 static void count(const Document&, Feature);
446 // This doesn't count for non-Document ExecutionContext. 450 // This doesn't count for non-Document ExecutionContext.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 496
493 void updateMeasurements(); 497 void updateMeasurements();
494 498
495 OwnPtr<BitVector> m_countBits; 499 OwnPtr<BitVector> m_countBits;
496 BitVector m_CSSFeatureBits; 500 BitVector m_CSSFeatureBits;
497 }; 501 };
498 502
499 } // namespace WebCore 503 } // namespace WebCore
500 504
501 #endif // UseCounter_h 505 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698