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

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

Issue 29908555: Issue 7035 - Update libadblockplus dependency (Closed) Base URL: git@github.com:adblockplus/libadblockplus-android.git@d150f08d5d72de8938c7ebbdccd9b0c4e06b4070
Patch Set: Issue 7035 - Update libadblockplus dependency Created Oct. 15, 2018, 9:53 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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 public FilterEngine getFilterEngine() 68 public FilterEngine getFilterEngine()
69 { 69 {
70 // Initially FilterEngine is not constructed when Platform is instantiated 70 // Initially FilterEngine is not constructed when Platform is instantiated
71 // and in addition FilterEngine is being created asynchronously, the call 71 // and in addition FilterEngine is being created asynchronously, the call
72 // of `ensureFilterEngine` causes a construction of FilterEngine if it's 72 // of `ensureFilterEngine` causes a construction of FilterEngine if it's
73 // not created yet and waits for it. 73 // not created yet and waits for it.
74 ensureFilterEngine(this.ptr); 74 ensureFilterEngine(this.ptr);
75 return new FilterEngine(this.ptr); 75 return new FilterEngine(this.ptr);
76 } 76 }
77 77
78 public Updater getUpdater()
79 {
80 ensureUpdater(this.ptr);
81 return new Updater(this.ptr);
82 }
83
78 @Override 84 @Override
79 public void dispose() 85 public void dispose()
80 { 86 {
81 this.disposer.dispose(); 87 this.disposer.dispose();
82 } 88 }
83 89
84 private final static class DisposeWrapper implements Disposable 90 private final static class DisposeWrapper implements Disposable
85 { 91 {
86 private final long ptr; 92 private final long ptr;
87 93
(...skipping 14 matching lines...) Expand all
102 private final static native long ctor(LogSystem logSystem, WebRequest webReque st, String basePath); 108 private final static native long ctor(LogSystem logSystem, WebRequest webReque st, String basePath);
103 109
104 private final static native void setUpJsEngine(long ptr, AppInfo appInfo, long v8IsolateProviderPtr); 110 private final static native void setUpJsEngine(long ptr, AppInfo appInfo, long v8IsolateProviderPtr);
105 111
106 private final static native long getJsEnginePtr(long ptr); 112 private final static native long getJsEnginePtr(long ptr);
107 113
108 private final static native void setUpFilterEngine(long ptr, IsAllowedConnecti onCallback isSubscriptionDownloadAllowedCallback); 114 private final static native void setUpFilterEngine(long ptr, IsAllowedConnecti onCallback isSubscriptionDownloadAllowedCallback);
109 115
110 private final static native void ensureFilterEngine(long ptr); 116 private final static native void ensureFilterEngine(long ptr);
111 117
118 private final static native void ensureUpdater(long ptr);
119
112 private final static native void dtor(long ptr); 120 private final static native void dtor(long ptr);
113 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld