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

Side by Side Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java

Issue 29382555: Issue 4977 - Request for compressed response in AndroidWebRequest (Closed)
Patch Set: Created March 13, 2017, 6:59 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
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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 Log.w(TAG, "Create"); 110 Log.w(TAG, "Create");
111 111
112 final AdblockEngine engine = new AdblockEngine(enableElemhide); 112 final AdblockEngine engine = new AdblockEngine(enableElemhide);
113 113
114 engine.jsEngine = new JsEngine(appInfo); 114 engine.jsEngine = new JsEngine(appInfo);
115 engine.jsEngine.setDefaultFileSystem(basePath); 115 engine.jsEngine.setDefaultFileSystem(basePath);
116 116
117 engine.logSystem = new AndroidLogSystem(); 117 engine.logSystem = new AndroidLogSystem();
118 engine.jsEngine.setLogSystem(engine.logSystem); 118 engine.jsEngine.setLogSystem(engine.logSystem);
119 119
120 engine.webRequest = new AndroidWebRequest(enableElemhide); 120 engine.webRequest = new AndroidWebRequest(enableElemhide, true);
121 engine.jsEngine.setWebRequest(engine.webRequest); 121 engine.jsEngine.setWebRequest(engine.webRequest);
122 122
123 engine.filterEngine = new FilterEngine(engine.jsEngine); 123 engine.filterEngine = new FilterEngine(engine.jsEngine);
124 124
125 engine.updateAvailableCallback = updateAvailableCallback; 125 engine.updateAvailableCallback = updateAvailableCallback;
126 if (engine.updateAvailableCallback != null) 126 if (engine.updateAvailableCallback != null)
127 { 127 {
128 engine.filterEngine.setUpdateAvailableCallback(updateAvailableCallback); 128 engine.filterEngine.setUpdateAvailableCallback(updateAvailableCallback);
129 } 129 }
130 130
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 public void setWhitelistedDomains(List<String> domains) 464 public void setWhitelistedDomains(List<String> domains)
465 { 465 {
466 this.whitelistedDomains = domains; 466 this.whitelistedDomains = domains;
467 } 467 }
468 468
469 public List<String> getWhitelistedDomains() 469 public List<String> getWhitelistedDomains()
470 { 470 {
471 return whitelistedDomains; 471 return whitelistedDomains;
472 } 472 }
473 } 473 }
OLDNEW

Powered by Google App Engine
This is Rietveld