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

Side by Side Diff: chrome/browser/ui/android/context_menu_helper.h

Issue 2945903002: Rendering the image in the sandbox for security (Closed)
Patch Set: Created 3 years, 6 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 #ifndef CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_
6 #define CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_ 6 #define CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 void SetPopulator(jobject jpopulator); 35 void SetPopulator(jobject jpopulator);
36 36
37 // Methods called from Java via JNI ------------------------------------------ 37 // Methods called from Java via JNI ------------------------------------------
38 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents( 38 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents(
39 JNIEnv* env, 39 JNIEnv* env,
40 const base::android::JavaParamRef<jobject>& obj); 40 const base::android::JavaParamRef<jobject>& obj);
41 void OnStartDownload(JNIEnv* env, 41 void OnStartDownload(JNIEnv* env,
42 const base::android::JavaParamRef<jobject>& obj, 42 const base::android::JavaParamRef<jobject>& obj,
43 jboolean jis_link, 43 jboolean jis_link,
44 jboolean jis_data_reduction_proxy_enabled); 44 jboolean jis_data_reduction_proxy_enabled);
45 void RetrieveImage(JNIEnv* env, 45 void RetrieveImageForShare(
46 const base::android::JavaParamRef<jobject>& obj, 46 JNIEnv* env,
47 const base::android::JavaParamRef<jobject>& jcallback, 47 const base::android::JavaParamRef<jobject>& obj,
48 jint max_dimen_px); 48 const base::android::JavaParamRef<jobject>& jcallback,
49 jint max_dimen_px);
50 void RetrieveImageForContextMenu(
51 JNIEnv* env,
52 const base::android::JavaParamRef<jobject>& obj,
53 const base::android::JavaParamRef<jobject>& jcallback,
54 jint max_dimen_px);
49 void SearchForImage(JNIEnv* env, 55 void SearchForImage(JNIEnv* env,
50 const base::android::JavaParamRef<jobject>& obj); 56 const base::android::JavaParamRef<jobject>& obj);
51 57
52 private: 58 private:
53 explicit ContextMenuHelper(content::WebContents* web_contents); 59 explicit ContextMenuHelper(content::WebContents* web_contents);
54 friend class content::WebContentsUserData<ContextMenuHelper>; 60 friend class content::WebContentsUserData<ContextMenuHelper>;
55 61
56 static base::android::ScopedJavaLocalRef<jobject> CreateJavaContextMenuParams( 62 static base::android::ScopedJavaLocalRef<jobject> CreateJavaContextMenuParams(
57 const content::ContextMenuParams& params); 63 const content::ContextMenuParams& params);
58 64
59 base::android::ScopedJavaGlobalRef<jobject> java_obj_; 65 base::android::ScopedJavaGlobalRef<jobject> java_obj_;
60 content::WebContents* web_contents_; 66 content::WebContents* web_contents_;
61 67
62 content::ContextMenuParams context_menu_params_; 68 content::ContextMenuParams context_menu_params_;
63 int render_frame_id_; 69 int render_frame_id_;
64 int render_process_id_; 70 int render_process_id_;
65 71
66 DISALLOW_COPY_AND_ASSIGN(ContextMenuHelper); 72 DISALLOW_COPY_AND_ASSIGN(ContextMenuHelper);
67 }; 73 };
68 74
69 bool RegisterContextMenuHelper(JNIEnv* env); 75 bool RegisterContextMenuHelper(JNIEnv* env);
70 76
71 #endif // CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_ 77 #endif // CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698