OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.sync; | 5 package org.chromium.chrome.browser.sync; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 | 8 |
9 import com.google.protobuf.nano.InvalidProtocolBufferNanoException; | 9 import com.google.protobuf.nano.InvalidProtocolBufferNanoException; |
10 import com.google.protobuf.nano.MessageNano; | 10 import com.google.protobuf.nano.MessageNano; |
11 | 11 |
12 import org.chromium.base.ThreadUtils; | 12 import org.chromium.base.ThreadUtils; |
13 import org.chromium.sync.protocol.EntitySpecifics; | 13 import org.chromium.components.sync.protocol.EntitySpecifics; |
14 import org.chromium.sync.protocol.SyncEntity; | 14 import org.chromium.components.sync.protocol.SyncEntity; |
15 | 15 |
16 import java.util.ArrayList; | 16 import java.util.ArrayList; |
17 import java.util.List; | 17 import java.util.List; |
18 import java.util.concurrent.Callable; | 18 import java.util.concurrent.Callable; |
19 import java.util.concurrent.ExecutionException; | 19 import java.util.concurrent.ExecutionException; |
20 | 20 |
21 /** | 21 /** |
22 * Assists in Java interaction the native Sync FakeServer. | 22 * Assists in Java interaction the native Sync FakeServer. |
23 */ | 23 */ |
24 public class FakeServerHelper { | 24 public class FakeServerHelper { |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 long nativeFakeServer, String bookmarkId, String title, String url,
String parentId); | 408 long nativeFakeServer, String bookmarkId, String title, String url,
String parentId); |
409 private native void nativeModifyBookmarkFolderEntity(long nativeFakeServerHe
lperAndroid, | 409 private native void nativeModifyBookmarkFolderEntity(long nativeFakeServerHe
lperAndroid, |
410 long nativeFakeServer, String bookmarkId, String title, String paren
tId); | 410 long nativeFakeServer, String bookmarkId, String title, String paren
tId); |
411 private native String nativeGetBookmarkBarFolderId( | 411 private native String nativeGetBookmarkBarFolderId( |
412 long nativeFakeServerHelperAndroid, long nativeFakeServer); | 412 long nativeFakeServerHelperAndroid, long nativeFakeServer); |
413 private native void nativeDeleteEntity( | 413 private native void nativeDeleteEntity( |
414 long nativeFakeServerHelperAndroid, long nativeFakeServer, String id
); | 414 long nativeFakeServerHelperAndroid, long nativeFakeServer, String id
); |
415 private native void nativeClearServerData( | 415 private native void nativeClearServerData( |
416 long nativeFakeServerHelperAndroid, long nativeFakeServer); | 416 long nativeFakeServerHelperAndroid, long nativeFakeServer); |
417 } | 417 } |
OLD | NEW |