Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java

Issue 1263053002: Move JNI annotations to annotations package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.prerender; 5 package org.chromium.chrome.browser.prerender;
6 6
7 import org.chromium.base.JNINamespace; 7 import org.chromium.base.annotations.JNINamespace;
8 import org.chromium.chrome.browser.WebContentsFactory; 8 import org.chromium.chrome.browser.WebContentsFactory;
9 import org.chromium.chrome.browser.profiles.Profile; 9 import org.chromium.chrome.browser.profiles.Profile;
10 import org.chromium.content_public.browser.WebContents; 10 import org.chromium.content_public.browser.WebContents;
11 11
12 /** 12 /**
13 * A handler class for prerender requests coming from other applications. 13 * A handler class for prerender requests coming from other applications.
14 */ 14 */
15 @JNINamespace("prerender") 15 @JNINamespace("prerender")
16 public class ExternalPrerenderHandler { 16 public class ExternalPrerenderHandler {
17 17
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 private static native long nativeInit(); 64 private static native long nativeInit();
65 private static native boolean nativeAddPrerender( 65 private static native boolean nativeAddPrerender(
66 long nativeExternalPrerenderHandlerAndroid, Profile profile, 66 long nativeExternalPrerenderHandlerAndroid, Profile profile,
67 WebContents webContents, String url, String referrer, int width, int height); 67 WebContents webContents, String url, String referrer, int width, int height);
68 private static native boolean nativeHasPrerenderedUrl( 68 private static native boolean nativeHasPrerenderedUrl(
69 Profile profile, String url, WebContents webContents); 69 Profile profile, String url, WebContents webContents);
70 private static native void nativeCancelCurrentPrerender( 70 private static native void nativeCancelCurrentPrerender(
71 long nativeExternalPrerenderHandlerAndroid); 71 long nativeExternalPrerenderHandlerAndroid);
72 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698