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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 274443002: Implement PreauthorizePermission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 6 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // PermissionRequestHandlerClient implementation. 142 // PermissionRequestHandlerClient implementation.
143 virtual void OnPermissionRequest(AwPermissionRequest* request) OVERRIDE; 143 virtual void OnPermissionRequest(AwPermissionRequest* request) OVERRIDE;
144 virtual void OnPermissionRequestCanceled( 144 virtual void OnPermissionRequestCanceled(
145 AwPermissionRequest* request) OVERRIDE; 145 AwPermissionRequest* request) OVERRIDE;
146 146
147 PermissionRequestHandler* GetPermissionRequestHandler() { 147 PermissionRequestHandler* GetPermissionRequestHandler() {
148 return permission_request_handler_.get(); 148 return permission_request_handler_.get();
149 } 149 }
150 150
151 void PreauthorizePermission(JNIEnv* env,
152 jobject obj,
153 jstring origin,
154 jlong resources);
155
151 // Find-in-page API and related methods. 156 // Find-in-page API and related methods.
152 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); 157 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string);
153 void FindNext(JNIEnv* env, jobject obj, jboolean forward); 158 void FindNext(JNIEnv* env, jobject obj, jboolean forward);
154 void ClearMatches(JNIEnv* env, jobject obj); 159 void ClearMatches(JNIEnv* env, jobject obj);
155 FindHelper* GetFindHelper(); 160 FindHelper* GetFindHelper();
156 161
157 // FindHelper::Listener implementation. 162 // FindHelper::Listener implementation.
158 virtual void OnFindResultReceived(int active_ordinal, 163 virtual void OnFindResultReceived(int active_ordinal,
159 int match_count, 164 int match_count,
160 bool finished) OVERRIDE; 165 bool finished) OVERRIDE;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 std::list<OriginCallback> pending_geolocation_prompts_; 245 std::list<OriginCallback> pending_geolocation_prompts_;
241 246
242 DISALLOW_COPY_AND_ASSIGN(AwContents); 247 DISALLOW_COPY_AND_ASSIGN(AwContents);
243 }; 248 };
244 249
245 bool RegisterAwContents(JNIEnv* env); 250 bool RegisterAwContents(JNIEnv* env);
246 251
247 } // namespace android_webview 252 } // namespace android_webview
248 253
249 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 254 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwContents.java ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698