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

Unified Diff: content/browser/android/download_controller.h

Issue 10827125: Use JavaObjectWeakGlobalRef in ContentViewCore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/android/download_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/download_controller.h
diff --git a/content/browser/android/download_controller.h b/content/browser/android/download_controller.h
index a11ed1728ab62698965ef4db9ace5c3d5c09c10a..64389420c541943472d48678f5241001b09de5be 100644
--- a/content/browser/android/download_controller.h
+++ b/content/browser/android/download_controller.h
@@ -22,6 +22,7 @@
#include <string>
#include "base/android/jni_helper.h"
+#include "base/android/scoped_java_ref.h"
#include "base/memory/singleton.h"
#include "content/public/browser/download_item.h"
#include "googleurl/src/gurl.h"
@@ -109,8 +110,11 @@ class DownloadController : public DownloadItem::Observer {
int render_process_id,
int render_view_id);
- jobject GetContentViewCoreFromWebContents(WebContents* web_contents);
- jobject GetContentView(int render_process_id, int render_view_id);
+ base::android::ScopedJavaLocalRef<jobject> GetContentViewCoreFromWebContents(
+ WebContents* web_contents);
+
+ base::android::ScopedJavaLocalRef<jobject> GetContentView(
+ int render_process_id, int render_view_id);
// Creates Java object if it is not created already and returns it.
JavaObject* GetJavaObject();
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/android/download_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698