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

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

Issue 29600561: Issue 6001 - Pass IV8IsolateProvider to Helper (Closed)
Patch Set: Created Nov. 7, 2017, 7:42 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 27 matching lines...) Expand all
38 { 38 {
39 this(ctor(logSystem, webRequest, basePath)); 39 this(ctor(logSystem, webRequest, basePath));
40 } 40 }
41 41
42 protected Platform(final long ptr) 42 protected Platform(final long ptr)
43 { 43 {
44 this.ptr = ptr; 44 this.ptr = ptr;
45 this.disposer = new Disposer(this, new DisposeWrapper(ptr)); 45 this.disposer = new Disposer(this, new DisposeWrapper(ptr));
46 } 46 }
47 47
48 public void setUpJsEngine(final AppInfo appInfo, final long v8IsolatePtr) 48 public void setUpJsEngine(final AppInfo appInfo, final long v8IsolateProviderP tr)
49 { 49 {
50 setUpJsEngine(this.ptr, appInfo, v8IsolatePtr); 50 setUpJsEngine(this.ptr, appInfo, v8IsolateProviderPtr);
51 } 51 }
52 52
53 public void setUpJsEngine(final AppInfo appInfo) 53 public void setUpJsEngine(final AppInfo appInfo)
54 { 54 {
55 setUpJsEngine(appInfo, 0L); 55 setUpJsEngine(appInfo, 0L);
56 } 56 }
57 57
58 public JsEngine getJsEngine() 58 public JsEngine getJsEngine()
59 { 59 {
60 return new JsEngine(getJsEnginePtr(this.ptr)); 60 return new JsEngine(getJsEnginePtr(this.ptr));
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 public void dispose() 94 public void dispose()
95 { 95 {
96 dtor(this.ptr); 96 dtor(this.ptr);
97 } 97 }
98 } 98 }
99 99
100 private final static native void registerNatives(); 100 private final static native void registerNatives();
101 101
102 private final static native long ctor(LogSystem logSystem, WebRequest webReque st, String basePath); 102 private final static native long ctor(LogSystem logSystem, WebRequest webReque st, String basePath);
103 103
104 private final static native void setUpJsEngine(long ptr, AppInfo appInfo, long v8IsolatePtr); 104 private final static native void setUpJsEngine(long ptr, AppInfo appInfo, long v8IsolateProviderPtr);
105 105
106 private final static native long getJsEnginePtr(long ptr); 106 private final static native long getJsEnginePtr(long ptr);
107 107
108 private final static native void setUpFilterEngine(long ptr, IsAllowedConnecti onCallback isSubscriptionDownloadAllowedCallback); 108 private final static native void setUpFilterEngine(long ptr, IsAllowedConnecti onCallback isSubscriptionDownloadAllowedCallback);
109 109
110 private final static native void ensureFilterEngine(long ptr); 110 private final static native void ensureFilterEngine(long ptr);
111 111
112 private final static native void dtor(long ptr); 112 private final static native void dtor(long ptr);
113 } 113 }
OLDNEW

Powered by Google App Engine
This is Rietveld