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

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

Issue 785133004: Mixed Content: Add use counters for content types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/loader/MixedContentChecker.h » ('j') | 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 TextWholeText = 599, 543 TextWholeText = 599,
544 AttrChildAccess = 600, 544 AttrChildAccess = 600,
545 AttrChildChange = 601, 545 AttrChildChange = 601,
546 DocumentGetOverrideStyle = 602, 546 DocumentGetOverrideStyle = 602,
547 NotificationCloseEvent = 603, 547 NotificationCloseEvent = 603,
548 CSSKeyframesRuleAppendRule = 604, 548 CSSKeyframesRuleAppendRule = 604,
549 CSSKeyframesRuleInsertRule = 605, 549 CSSKeyframesRuleInsertRule = 605,
550 StyleMedia = 606, 550 StyleMedia = 606,
551 StyleMediaType = 607, 551 StyleMediaType = 607,
552 StyleMediaMatchMedium = 608, 552 StyleMediaMatchMedium = 608,
553 MixedContentPresent = 609,
554 MixedContentBlockable = 610,
555 MixedContentAudio = 611,
556 MixedContentDownload = 612,
557 MixedContentFavicon = 613,
558 MixedContentImage = 614,
559 MixedContentInternal = 615,
560 MixedContentPlugin = 616,
561 MixedContentPrefetch = 617,
562 MixedContentVideo = 618,
553 563
554 // Add new features immediately above this line. Don't change assigned 564 // Add new features immediately above this line. Don't change assigned
555 // numbers of any item, and don't reuse removed slots. 565 // numbers of any item, and don't reuse removed slots.
556 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 566 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
557 // to update the UMA mapping. 567 // to update the UMA mapping.
558 NumberOfFeatures, // This enum value must be last. 568 NumberOfFeatures, // This enum value must be last.
559 }; 569 };
560 570
561 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 571 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
562 static void count(const Frame*, Feature); 572 static void count(const Frame*, Feature);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 636
627 void updateMeasurements(); 637 void updateMeasurements();
628 638
629 OwnPtr<BitVector> m_countBits; 639 OwnPtr<BitVector> m_countBits;
630 BitVector m_CSSFeatureBits; 640 BitVector m_CSSFeatureBits;
631 }; 641 };
632 642
633 } // namespace blink 643 } // namespace blink
634 644
635 #endif // UseCounter_h 645 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/MixedContentChecker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698