Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/org/adblockplus/brazil/RequestHandler.java

Issue 29323464: Issue 2894 - 'archive.org/web' links fail to open on rooted devices (Closed)
Patch Set: Created Aug. 12, 2015, 9:49 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/org/adblockplus/brazil/TransparentProxyHandler.java » ('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 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 * </pre> 78 * </pre>
79 * 79 *
80 * See the description under {@link sunlabs.brazil.server.Handler#respond 80 * See the description under {@link sunlabs.brazil.server.Handler#respond
81 * respond} for a more detailed explanation. 81 * respond} for a more detailed explanation.
82 */ 82 */
83 83
84 public class RequestHandler extends BaseRequestHandler 84 public class RequestHandler extends BaseRequestHandler
85 { 85 {
86 private AdblockPlus application; 86 private AdblockPlus application;
87 private String via; 87 private String via;
88 private static final Pattern RE_HTTP = Pattern.compile("^https?:"); 88 static final Pattern RE_HTTP = Pattern.compile("^https?:");
89 89
90 private static final AtomicLong BLOCKED_REQUESTS = new AtomicLong(); 90 private static final AtomicLong BLOCKED_REQUESTS = new AtomicLong();
91 private static final AtomicLong UNBLOCKED_REQUESTS = new AtomicLong(); 91 private static final AtomicLong UNBLOCKED_REQUESTS = new AtomicLong();
92 92
93 public static long getBlockedRequestCount() 93 public static long getBlockedRequestCount()
94 { 94 {
95 return BLOCKED_REQUESTS.get(); 95 return BLOCKED_REQUESTS.get();
96 } 96 }
97 97
98 public static long getUnblockedRequestCount() 98 public static long getUnblockedRequestCount()
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 request.sendError(500, msg); 402 request.sendError(500, msg);
403 Log.e(prefix, msg, e); 403 Log.e(prefix, msg, e);
404 } 404 }
405 finally 405 finally
406 { 406 {
407 target.close(); 407 target.close();
408 } 408 }
409 return true; 409 return true;
410 } 410 }
411 } 411 }
OLDNEW
« no previous file with comments | « no previous file | src/org/adblockplus/brazil/TransparentProxyHandler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld