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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/misc/resources/image-checks-for-device-ram.php

Issue 2860093003: Implement device-ram client hints header (Closed)
Patch Set: Rebase UseCounter.h Created 3 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
OLDNEW
(Empty)
1 <?php
2 $device_ram = $_SERVER["HTTP_DEVICE_RAM"];
3
4 if(isset($device_ram) && $device_ram != 0
5 && ($device_ram & ($device_ram - 1)) == 0) {
6 $fn = fopen("compass.jpg", "r");
7 fpassthru($fn);
8 fclose($fn);
9 exit;
10 }
11 header("HTTP/1.1 417 Expectation failed");
12 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698