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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 571483002: Refactor content client to include a single Request/CancelPermission method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geoloc_permission
Patch Set: Created 6 years, 3 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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 virtual blink::WebNotificationPermission 190 virtual blink::WebNotificationPermission
191 CheckDesktopNotificationPermission( 191 CheckDesktopNotificationPermission(
192 const GURL& source_origin, 192 const GURL& source_origin,
193 content::ResourceContext* context, 193 content::ResourceContext* context,
194 int render_process_id) OVERRIDE; 194 int render_process_id) OVERRIDE;
195 virtual void ShowDesktopNotification( 195 virtual void ShowDesktopNotification(
196 const content::ShowDesktopNotificationHostMsgParams& params, 196 const content::ShowDesktopNotificationHostMsgParams& params,
197 content::RenderFrameHost* render_frame_host, 197 content::RenderFrameHost* render_frame_host,
198 scoped_ptr<content::DesktopNotificationDelegate> delegate, 198 scoped_ptr<content::DesktopNotificationDelegate> delegate,
199 base::Closure* cancel_callback) OVERRIDE; 199 base::Closure* cancel_callback) OVERRIDE;
200 virtual void RequestGeolocationPermission( 200 virtual void RequestPermission(
201 content::WebContents* web_contents, 201 content::PermissionType permission,
202 int bridge_id, 202 content::WebContents* web_contents,
203 const GURL& requesting_frame, 203 int bridge_id,
204 bool user_gesture, 204 const GURL& requesting_frame,
205 const base::Callback<void(bool)>& result_callback) OVERRIDE; 205 bool user_gesture,
206 virtual void CancelGeolocationPermissionRequest( 206 const base::Callback<void(bool)>& result_callback) OVERRIDE;
207
208 virtual void CancelPermissionRequest(
209 content::PermissionType permission,
207 content::WebContents* web_contents, 210 content::WebContents* web_contents,
208 int bridge_id, 211 int bridge_id,
209 const GURL& requesting_frame) OVERRIDE; 212 const GURL& requesting_frame) OVERRIDE;
210 virtual void RequestMidiSysExPermission( 213
211 content::WebContents* web_contents,
212 int bridge_id,
213 const GURL& requesting_frame,
214 bool user_gesture,
215 base::Callback<void(bool)> result_callback,
216 base::Closure* cancel_callback) OVERRIDE;
217 virtual void DidUseGeolocationPermission(content::WebContents* web_contents, 214 virtual void DidUseGeolocationPermission(content::WebContents* web_contents,
218 const GURL& frame_url, 215 const GURL& frame_url,
219 const GURL& main_frame_url) OVERRIDE; 216 const GURL& main_frame_url) OVERRIDE;
220 virtual void RequestProtectedMediaIdentifierPermission( 217
221 content::WebContents* web_contents,
222 const GURL& origin,
223 base::Callback<void(bool)> result_callback,
224 base::Closure* cancel_callback) OVERRIDE;
225 virtual bool CanCreateWindow(const GURL& opener_url, 218 virtual bool CanCreateWindow(const GURL& opener_url,
226 const GURL& opener_top_level_frame_url, 219 const GURL& opener_top_level_frame_url,
227 const GURL& source_origin, 220 const GURL& source_origin,
228 WindowContainerType container_type, 221 WindowContainerType container_type,
229 const GURL& target_url, 222 const GURL& target_url,
230 const content::Referrer& referrer, 223 const content::Referrer& referrer,
231 WindowOpenDisposition disposition, 224 WindowOpenDisposition disposition,
232 const blink::WebWindowFeatures& features, 225 const blink::WebWindowFeatures& features,
233 bool user_gesture, 226 bool user_gesture,
234 bool opener_suppressed, 227 bool opener_suppressed,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 345 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
353 346
354 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 347 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
355 348
356 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 349 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
357 }; 350 };
358 351
359 } // namespace chrome 352 } // namespace chrome
360 353
361 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 354 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698