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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.h

Issue 2338623004: Add Blink setting to block doc.written scripts on 2g-like networks (Closed)
Patch Set: Nit Created 4 years, 3 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 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 340 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
341 341
342 void setFocused(bool); 342 void setFocused(bool);
343 void setInitialFocus(bool); 343 void setInitialFocus(bool);
344 344
345 bool ignoreLayoutWithPendingStylesheets(Document*); 345 bool ignoreLayoutWithPendingStylesheets(Document*);
346 346
347 void setNetworkConnectionInfoOverride(bool, const String&, double downlinkMa xMbps, ExceptionState&); 347 void setNetworkConnectionInfoOverride(bool, const String&, double downlinkMa xMbps, ExceptionState&);
348 void clearNetworkConnectionInfoOverride(); 348 void clearNetworkConnectionInfoOverride();
349 349
350 void setEffectiveConnectionTypeOverride(const String&, ExceptionState&);
351 void clearEffectiveConnectionTypeOverride();
352
350 unsigned countHitRegions(CanvasRenderingContext*); 353 unsigned countHitRegions(CanvasRenderingContext*);
351 354
352 bool isInCanvasFontCache(Document*, const String&); 355 bool isInCanvasFontCache(Document*, const String&);
353 unsigned canvasFontCacheMaxFonts(); 356 unsigned canvasFontCacheMaxFonts();
354 357
355 void setScrollChain(ScrollState*, const HeapVector<Member<Element>>& element s, ExceptionState&); 358 void setScrollChain(ScrollState*, const HeapVector<Member<Element>>& element s, ExceptionState&);
356 359
357 // Schedule a forced Blink GC run (Oilpan) at the end of event loop. 360 // Schedule a forced Blink GC run (Oilpan) at the end of event loop.
358 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e xplicitly measure only Blink GC time. 361 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e xplicitly measure only Blink GC time.
359 // Normal LayoutTests should use gc() instead as it would trigger both Blink GC and V8 GC. 362 // Normal LayoutTests should use gc() instead as it would trigger both Blink GC and V8 GC.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 419
417 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 420 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
418 Member<InternalRuntimeFlags> m_runtimeFlags; 421 Member<InternalRuntimeFlags> m_runtimeFlags;
419 422
420 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 423 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
421 }; 424 };
422 425
423 } // namespace blink 426 } // namespace blink
424 427
425 #endif // Internals_h 428 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698