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

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

Issue 398313002: Teach ContentSecurityPolicy about WebURLRequest::RequestContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Excluding RequestContextPlugin. Created 6 years, 5 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') | Source/core/frame/csp/ContentSecurityPolicy.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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 FileGetLastModifiedDate = 212, 223 FileGetLastModifiedDate = 212,
224 HTMLElementInnerText = 213, 224 HTMLElementInnerText = 213,
225 HTMLElementOuterText = 214, 225 HTMLElementOuterText = 214,
226 ReplaceDocumentViaJavaScriptURL = 215, 226 ReplaceDocumentViaJavaScriptURL = 215,
227 ElementSetAttributeNodeNS = 216, // Removed from DOM4. 227 ElementSetAttributeNodeNS = 216, // Removed from DOM4.
228 ElementPrefixedMatchesSelector = 217, 228 ElementPrefixedMatchesSelector = 217,
229 CSSStyleSheetRules = 219, 229 CSSStyleSheetRules = 219,
230 CSSStyleSheetAddRule = 220, 230 CSSStyleSheetAddRule = 220,
231 CSSStyleSheetRemoveRule = 221, 231 CSSStyleSheetRemoveRule = 221,
232 // The above items are available in M33 branch. 232 // The above items are available in M33 branch.
233
jochen (gone - plz use gerrit) 2014/07/21 11:31:24 why delete those nice spacer lines?
Mike West 2014/07/21 12:48:05 `git cl format` :( I'll fix it, thanks for catchi
234 InitMessageEvent = 222, 233 InitMessageEvent = 222,
235 ElementSetPrefix = 224, // Element.prefix is readonly in DOM4. 234 ElementSetPrefix = 224, // Element.prefix is readonly in DOM4.
236 CSSStyleDeclarationGetPropertyCSSValue = 225, 235 CSSStyleDeclarationGetPropertyCSSValue = 225,
237 PrefixedMediaCancelKeyRequest = 229, 236 PrefixedMediaCancelKeyRequest = 229,
238 DOMImplementationHasFeature = 230, 237 DOMImplementationHasFeature = 230,
239 DOMImplementationHasFeatureReturnFalse = 231, 238 DOMImplementationHasFeatureReturnFalse = 231,
240 CanPlayTypeKeySystem = 232, 239 CanPlayTypeKeySystem = 232,
241 PrefixedDevicePixelRatioMediaFeature = 233, 240 PrefixedDevicePixelRatioMediaFeature = 233,
242 PrefixedMaxDevicePixelRatioMediaFeature = 234, 241 PrefixedMaxDevicePixelRatioMediaFeature = 234,
243 PrefixedMinDevicePixelRatioMediaFeature = 235, 242 PrefixedMinDevicePixelRatioMediaFeature = 235,
(...skipping 17 matching lines...) Expand all
261 DeprecatedWebKitRepeatingLinearGradient = 262, 260 DeprecatedWebKitRepeatingLinearGradient = 262,
262 DeprecatedWebKitRadialGradient = 263, 261 DeprecatedWebKitRadialGradient = 263,
263 DeprecatedWebKitRepeatingRadialGradient = 264, 262 DeprecatedWebKitRepeatingRadialGradient = 264,
264 PrefixedImageSmoothingEnabled = 267, 263 PrefixedImageSmoothingEnabled = 267,
265 UnprefixedImageSmoothingEnabled = 268, 264 UnprefixedImageSmoothingEnabled = 268,
266 PromiseConstructor = 270, 265 PromiseConstructor = 270,
267 PromiseCast = 271, 266 PromiseCast = 271,
268 PromiseReject = 272, 267 PromiseReject = 272,
269 PromiseResolve = 273, 268 PromiseResolve = 273,
270 // The above items are available in M34 branch. 269 // The above items are available in M34 branch.
271
272 TextAutosizing = 274, 270 TextAutosizing = 274,
273 TextAutosizingLayout = 275, 271 TextAutosizingLayout = 275,
274 HTMLAnchorElementPingAttribute = 276, 272 HTMLAnchorElementPingAttribute = 276,
275 InsertAdjacentHTML = 278, 273 InsertAdjacentHTML = 278,
276 SVGClassName = 279, 274 SVGClassName = 279,
277 HTMLAppletElement = 280, 275 HTMLAppletElement = 280,
278 HTMLMediaElementSeekToFragmentStart = 281, 276 HTMLMediaElementSeekToFragmentStart = 281,
279 HTMLMediaElementPauseAtFragmentEnd = 282, 277 HTMLMediaElementPauseAtFragmentEnd = 282,
280 PrefixedWindowURL = 283, 278 PrefixedWindowURL = 283,
281 PrefixedWorkerURL = 284, // This didn't work because of crbug.com/376039 . Available since M37. 279 PrefixedWorkerURL = 284, // This didn't work because of crbug.com/376039 . Available since M37.
(...skipping 30 matching lines...) Expand all
312 XHRProgressEventPosition = 316, 310 XHRProgressEventPosition = 316,
313 XHRProgressEventTotalSize = 317, 311 XHRProgressEventTotalSize = 317,
314 PrefixedDocumentIsFullscreen = 318, 312 PrefixedDocumentIsFullscreen = 318,
315 PrefixedDocumentFullScreenKeyboardInputAllowed = 319, 313 PrefixedDocumentFullScreenKeyboardInputAllowed = 319,
316 PrefixedDocumentCurrentFullScreenElement = 320, 314 PrefixedDocumentCurrentFullScreenElement = 320,
317 PrefixedDocumentCancelFullScreen = 321, 315 PrefixedDocumentCancelFullScreen = 321,
318 PrefixedDocumentFullscreenEnabled = 322, 316 PrefixedDocumentFullscreenEnabled = 322,
319 PrefixedDocumentFullscreenElement = 323, 317 PrefixedDocumentFullscreenElement = 323,
320 PrefixedDocumentExitFullscreen = 324, 318 PrefixedDocumentExitFullscreen = 324,
321 // The above items are available in M35 branch. 319 // The above items are available in M35 branch.
322
323 SVGForeignObjectElement = 325, 320 SVGForeignObjectElement = 325,
324 PrefixedElementRequestPointerLock = 326, 321 PrefixedElementRequestPointerLock = 326,
325 SelectionSetPosition = 327, 322 SelectionSetPosition = 327,
326 AnimationPlayerFinishEvent = 328, 323 AnimationPlayerFinishEvent = 328,
327 SVGSVGElementInXMLDocument = 329, 324 SVGSVGElementInXMLDocument = 329,
328 CanvasRenderingContext2DSetAlpha = 330, 325 CanvasRenderingContext2DSetAlpha = 330,
329 CanvasRenderingContext2DSetCompositeOperation = 331, 326 CanvasRenderingContext2DSetCompositeOperation = 331,
330 CanvasRenderingContext2DSetLineWidth = 332, 327 CanvasRenderingContext2DSetLineWidth = 332,
331 CanvasRenderingContext2DSetLineCap = 333, 328 CanvasRenderingContext2DSetLineCap = 333,
332 CanvasRenderingContext2DSetLineJoin = 334, 329 CanvasRenderingContext2DSetLineJoin = 334,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 SVGFEMorphologyElementSetRadius = 408, 403 SVGFEMorphologyElementSetRadius = 408,
407 VTTCue = 409, 404 VTTCue = 409,
408 VTTCueRender = 410, 405 VTTCueRender = 410,
409 VTTCueRenderVertical = 411, 406 VTTCueRenderVertical = 411,
410 VTTCueRenderSnapToLinesFalse = 412, 407 VTTCueRenderSnapToLinesFalse = 412,
411 VTTCueRenderLineNotAuto = 413, 408 VTTCueRenderLineNotAuto = 413,
412 VTTCueRenderPositionNot50 = 414, 409 VTTCueRenderPositionNot50 = 414,
413 VTTCueRenderSizeNot100 = 415, 410 VTTCueRenderSizeNot100 = 415,
414 VTTCueRenderAlignNotMiddle = 416, 411 VTTCueRenderAlignNotMiddle = 416,
415 // The above items are available in M36 branch. 412 // The above items are available in M36 branch.
416
417 ElementRequestPointerLock = 417, 413 ElementRequestPointerLock = 417,
418 VTTCueRenderRtl = 418, 414 VTTCueRenderRtl = 418,
419 PostMessageFromSecureToInsecure = 419, 415 PostMessageFromSecureToInsecure = 419,
420 PostMessageFromInsecureToSecure = 420, 416 PostMessageFromInsecureToSecure = 420,
421 DocumentExitPointerLock = 421, 417 DocumentExitPointerLock = 421,
422 DocumentPointerLockElement = 422, 418 DocumentPointerLockElement = 422,
423 PrefixedCursorZoomIn = 424, 419 PrefixedCursorZoomIn = 424,
424 PrefixedCursorZoomOut = 425, 420 PrefixedCursorZoomOut = 425,
425 CSSCharsetRuleEncoding = 426, 421 CSSCharsetRuleEncoding = 426,
426 DocumentSetCharset = 427, 422 DocumentSetCharset = 427,
427 DocumentDefaultCharset = 428, 423 DocumentDefaultCharset = 428,
428 TextEncoderConstructor = 429, 424 TextEncoderConstructor = 429,
429 TextEncoderEncode = 430, 425 TextEncoderEncode = 430,
430 TextDecoderConstructor = 431, 426 TextDecoderConstructor = 431,
431 TextDecoderDecode= 432, 427 TextDecoderDecode = 432,
432 FocusInOutEvent = 433, 428 FocusInOutEvent = 433,
433 MouseEventMovementX = 434, 429 MouseEventMovementX = 434,
434 MouseEventMovementY = 435, 430 MouseEventMovementY = 435,
435 MixedContentTextTrack = 436, 431 MixedContentTextTrack = 436,
436 MixedContentRaw = 437, 432 MixedContentRaw = 437,
437 MixedContentImage = 438, 433 MixedContentImage = 438,
438 MixedContentMedia = 439, 434 MixedContentMedia = 439,
439 DocumentFonts = 440, 435 DocumentFonts = 440,
440 MixedContentFormsSubmitted = 441, 436 MixedContentFormsSubmitted = 441,
441 FormsSubmitted = 442, 437 FormsSubmitted = 442,
442 TextInputEventOnInput = 443, 438 TextInputEventOnInput = 443,
443 TextInputEventOnTextArea = 444, 439 TextInputEventOnTextArea = 444,
444 TextInputEventOnContentEditable= 445, 440 TextInputEventOnContentEditable = 445,
445 TextInputEventOnNotNode = 446, 441 TextInputEventOnNotNode = 446,
446 WebkitBeforeTextInsertedOnInput = 447, 442 WebkitBeforeTextInsertedOnInput = 447,
447 WebkitBeforeTextInsertedOnTextArea = 448, 443 WebkitBeforeTextInsertedOnTextArea = 448,
448 WebkitBeforeTextInsertedOnContentEditable = 449, 444 WebkitBeforeTextInsertedOnContentEditable = 449,
449 WebkitBeforeTextInsertedOnNotNode = 450, 445 WebkitBeforeTextInsertedOnNotNode = 450,
450 WebkitEditableContentChangedOnInput = 451, 446 WebkitEditableContentChangedOnInput = 451,
451 WebkitEditableContentChangedOnTextArea = 452, 447 WebkitEditableContentChangedOnTextArea = 452,
452 WebkitEditableContentChangedOnContentEditable = 453, 448 WebkitEditableContentChangedOnContentEditable = 453,
453 WebkitEditableContentChangedOnNotNode = 454, 449 WebkitEditableContentChangedOnNotNode = 454,
454 HTMLImports = 455, 450 HTMLImports = 455,
455 ElementCreateShadowRoot = 456, 451 ElementCreateShadowRoot = 456,
456 DocumentRegisterElement = 457, 452 DocumentRegisterElement = 457,
457 EditingAppleInterchangeNewline = 458, 453 EditingAppleInterchangeNewline = 458,
458 EditingAppleConvertedSpace = 459, 454 EditingAppleConvertedSpace = 459,
459 EditingApplePasteAsQuotation = 460, 455 EditingApplePasteAsQuotation = 460,
460 EditingAppleStyleSpanClass = 461, 456 EditingAppleStyleSpanClass = 461,
461 EditingAppleTabSpanClass = 462, 457 EditingAppleTabSpanClass = 462,
462 HTMLImportsAsyncAttribute = 463, 458 HTMLImportsAsyncAttribute = 463,
463 FontFaceSetReady = 464, 459 FontFaceSetReady = 464,
464 XMLHttpRequestSynchronous = 465, 460 XMLHttpRequestSynchronous = 465,
465 CSSSelectorPseudoUnresolved = 466, 461 CSSSelectorPseudoUnresolved = 466,
466 CSSSelectorPseudoShadow = 467, 462 CSSSelectorPseudoShadow = 467,
467 CSSSelectorPseudoContent = 468, 463 CSSSelectorPseudoContent = 468,
468 CSSSelectorPseudoHost = 469, 464 CSSSelectorPseudoHost = 469,
469 CSSSelectorPseudoHostContext = 470, 465 CSSSelectorPseudoHostContext = 470,
470 CSSDeepCombinator = 471, 466 CSSDeepCombinator = 471,
471 SyncXHRWithCredentials = 472, 467 SyncXHRWithCredentials = 472,
472 // The above items are available in M37 branch. 468 // The above items are available in M37 branch.
473
474 UseAsm = 473, 469 UseAsm = 473,
475 KeyEventNotAllowedInFullScreen = 474, 470 KeyEventNotAllowedInFullScreen = 474,
476 DOMWindowOpen = 475, 471 DOMWindowOpen = 475,
477 DOMWindowOpenFeatures = 476, 472 DOMWindowOpenFeatures = 476,
478 LegacyFullScreenErrorExemption = 477, 473 LegacyFullScreenErrorExemption = 477,
479 MediaStreamTrackGetSources = 478, 474 MediaStreamTrackGetSources = 478,
480 AspectRatioFlexItem = 479, 475 AspectRatioFlexItem = 479,
481 DetailsElement = 480, 476 DetailsElement = 480,
482 DialogElement = 481, 477 DialogElement = 481,
483 MapElement = 482, 478 MapElement = 482,
484 MeterElement = 483, 479 MeterElement = 483,
485 ProgressElement = 484, 480 ProgressElement = 484,
486 VideoFullscreenAllowedExemption = 485, 481 VideoFullscreenAllowedExemption = 485,
482 PPAPIRequestAllowedByObjectSrc = 486,
483 PPAPIRequestBypassedObjectSrc = 487,
487 // Add new features immediately above this line. Don't change assigned 484 // Add new features immediately above this line. Don't change assigned
488 // numbers of any item, and don't reuse removed slots. 485 // numbers of any item, and don't reuse removed slots.
489 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 486 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
490 // to update the UMA mapping. 487 // to update the UMA mapping.
491 NumberOfFeatures, // This enum value must be last. 488 NumberOfFeatures, // This enum value must be last.
492 }; 489 };
493 490
494 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 491 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
495 static void count(const Document&, Feature); 492 static void count(const Document&, Feature);
496 // This doesn't count for ExecutionContexts for shared workers and service 493 // This doesn't count for ExecutionContexts for shared workers and service
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 544
548 void updateMeasurements(); 545 void updateMeasurements();
549 546
550 OwnPtr<BitVector> m_countBits; 547 OwnPtr<BitVector> m_countBits;
551 BitVector m_CSSFeatureBits; 548 BitVector m_CSSFeatureBits;
552 }; 549 };
553 550
554 } // namespace blink 551 } // namespace blink
555 552
556 #endif // UseCounter_h 553 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/frame/csp/ContentSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698