| OLD | NEW | 
|---|
| 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 #ifndef CHROME_BROWSER_PRERENDER_EXTERNAL_PRERENDER_HANDLER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_EXTERNAL_PRERENDER_HANDLER_ANDROID_H_ | 
| 6 #define CHROME_BROWSER_PRERENDER_EXTERNAL_PRERENDER_HANDLER_ANDROID_H_ | 6 #define CHROME_BROWSER_PRERENDER_EXTERNAL_PRERENDER_HANDLER_ANDROID_H_ | 
| 7 | 7 | 
| 8 #include <jni.h> | 8 #include <jni.h> | 
| 9 | 9 | 
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
| 41   void CancelCurrentPrerender( | 41   void CancelCurrentPrerender( | 
| 42       JNIEnv* env, | 42       JNIEnv* env, | 
| 43       const base::android::JavaParamRef<jobject>& object); | 43       const base::android::JavaParamRef<jobject>& object); | 
| 44 | 44 | 
| 45   // Whether the PrerenderManager associated with the given profile has any | 45   // Whether the PrerenderManager associated with the given profile has any | 
| 46   // prerenders for the url. | 46   // prerenders for the url. | 
| 47   static bool HasPrerenderedUrl(Profile* profile, | 47   static bool HasPrerenderedUrl(Profile* profile, | 
| 48                                 GURL url, | 48                                 GURL url, | 
| 49                                 content::WebContents* web_contents); | 49                                 content::WebContents* web_contents); | 
| 50 | 50 | 
|  | 51   // Whether the PrerenderManager associated with the given profile has any | 
|  | 52   // prerenders for the url, and the prerender has finished loading. | 
|  | 53   static bool HasPrerenderedAndFinishedLoadingUrl( | 
|  | 54       Profile* profile, | 
|  | 55       GURL url, | 
|  | 56       content::WebContents* web_contents); | 
|  | 57 | 
| 51   static bool RegisterExternalPrerenderHandlerAndroid(JNIEnv* env); | 58   static bool RegisterExternalPrerenderHandlerAndroid(JNIEnv* env); | 
| 52 | 59 | 
| 53  private: | 60  private: | 
| 54   virtual ~ExternalPrerenderHandlerAndroid(); | 61   virtual ~ExternalPrerenderHandlerAndroid(); | 
| 55   scoped_ptr<prerender::PrerenderHandle> prerender_handle_; | 62   scoped_ptr<prerender::PrerenderHandle> prerender_handle_; | 
| 56 | 63 | 
| 57   DISALLOW_COPY_AND_ASSIGN(ExternalPrerenderHandlerAndroid); | 64   DISALLOW_COPY_AND_ASSIGN(ExternalPrerenderHandlerAndroid); | 
| 58 }; | 65 }; | 
| 59 | 66 | 
| 60 } // namespace prerender | 67 } // namespace prerender | 
| 61 | 68 | 
| 62 #endif  // CHROME_BROWSER_PRERENDER_EXTERNAL_PRERENDER_HANDLER_ANDROID_H_ | 69 #endif  // CHROME_BROWSER_PRERENDER_EXTERNAL_PRERENDER_HANDLER_ANDROID_H_ | 
| OLD | NEW | 
|---|