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

Side by Side Diff: android_webview/browser/aw_content_browser_client.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) 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_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "android_webview/browser/aw_web_preferences_populater.h" 8 #include "android_webview/browser/aw_web_preferences_populater.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual blink::WebNotificationPresenter::Permission 112 virtual blink::WebNotificationPresenter::Permission
113 CheckDesktopNotificationPermission( 113 CheckDesktopNotificationPermission(
114 const GURL& source_url, 114 const GURL& source_url,
115 content::ResourceContext* context, 115 content::ResourceContext* context,
116 int render_process_id) OVERRIDE; 116 int render_process_id) OVERRIDE;
117 virtual void ShowDesktopNotification( 117 virtual void ShowDesktopNotification(
118 const content::ShowDesktopNotificationHostMsgParams& params, 118 const content::ShowDesktopNotificationHostMsgParams& params,
119 content::RenderFrameHost* render_frame_host, 119 content::RenderFrameHost* render_frame_host,
120 content::DesktopNotificationDelegate* delegate, 120 content::DesktopNotificationDelegate* delegate,
121 base::Closure* cancel_callback) OVERRIDE; 121 base::Closure* cancel_callback) OVERRIDE;
122 virtual void RequestGeolocationPermission(
123 content::WebContents* web_contents,
124 int bridge_id,
125 const GURL& requesting_frame,
126 bool user_gesture,
127 base::Callback<void(bool)> result_callback,
128 base::Closure* cancel_callback) OVERRIDE;
122 virtual bool CanCreateWindow(const GURL& opener_url, 129 virtual bool CanCreateWindow(const GURL& opener_url,
123 const GURL& opener_top_level_frame_url, 130 const GURL& opener_top_level_frame_url,
124 const GURL& source_origin, 131 const GURL& source_origin,
125 WindowContainerType container_type, 132 WindowContainerType container_type,
126 const GURL& target_url, 133 const GURL& target_url,
127 const content::Referrer& referrer, 134 const content::Referrer& referrer,
128 WindowOpenDisposition disposition, 135 WindowOpenDisposition disposition,
129 const blink::WebWindowFeatures& features, 136 const blink::WebWindowFeatures& features,
130 bool user_gesture, 137 bool user_gesture,
131 bool opener_suppressed, 138 bool opener_suppressed,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; 177 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_;
171 178
172 JniDependencyFactory* native_factory_; 179 JniDependencyFactory* native_factory_;
173 180
174 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); 181 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient);
175 }; 182 };
176 183
177 } // namespace android_webview 184 } // namespace android_webview
178 185
179 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 186 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698