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

Side by Side Diff: android_webview/browser/aw_contents_client_bridge_base.h

Issue 330143002: Simplify geolocation permission request in the Content API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "content/public/browser/javascript_dialog_manager.h" 10 #include "content/public/browser/javascript_dialog_manager.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 58 const content::JavaScriptDialogManager::DialogClosedCallback& callback)
59 = 0; 59 = 0;
60 60
61 virtual void RunBeforeUnloadDialog( 61 virtual void RunBeforeUnloadDialog(
62 const GURL& origin_url, 62 const GURL& origin_url,
63 const base::string16& message_text, 63 const base::string16& message_text,
64 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 64 const content::JavaScriptDialogManager::DialogClosedCallback& callback)
65 = 0; 65 = 0;
66 66
67 virtual bool ShouldOverrideUrlLoading(const base::string16& url) = 0; 67 virtual bool ShouldOverrideUrlLoading(const base::string16& url) = 0;
68
69 virtual void RequestGeolocationPermission(
70 content::WebContents* web_contents,
71 const GURL& requesting_frame,
72 base::Callback<void(bool)> result_callback,
73 base::Closure* cancel_callback) = 0;
68 }; 74 };
69 75
70 } // namespace android_webview 76 } // namespace android_webview
71 77
72 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 78 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | android_webview/browser/jni_dependency_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698