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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 433433002: Remove code for the old Web Notification permission-path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 const base::string16& default_prompt, 293 const base::string16& default_prompt,
294 const GURL& frame_url, 294 const GURL& frame_url,
295 JavaScriptMessageType type, 295 JavaScriptMessageType type,
296 IPC::Message* reply_msg); 296 IPC::Message* reply_msg);
297 void OnRunBeforeUnloadConfirm(const GURL& frame_url, 297 void OnRunBeforeUnloadConfirm(const GURL& frame_url,
298 const base::string16& message, 298 const base::string16& message,
299 bool is_reload, 299 bool is_reload,
300 IPC::Message* reply_msg); 300 IPC::Message* reply_msg);
301 void OnRequestPlatformNotificationPermission(const GURL& origin, 301 void OnRequestPlatformNotificationPermission(const GURL& origin,
302 int request_id); 302 int request_id);
303 void OnRequestDesktopNotificationPermission(const GURL& origin,
304 int callback_id);
305 void OnShowDesktopNotification( 303 void OnShowDesktopNotification(
306 int notification_id, 304 int notification_id,
307 const ShowDesktopNotificationHostMsgParams& params); 305 const ShowDesktopNotificationHostMsgParams& params);
308 void OnCancelDesktopNotification(int notification_id); 306 void OnCancelDesktopNotification(int notification_id);
309 void OnTextSurroundingSelectionResponse(const base::string16& content, 307 void OnTextSurroundingSelectionResponse(const base::string16& content,
310 size_t start_offset, 308 size_t start_offset,
311 size_t end_offset); 309 size_t end_offset);
312 void OnDidAccessInitialDocument(); 310 void OnDidAccessInitialDocument();
313 void OnDidDisownOpener(); 311 void OnDidDisownOpener();
314 void OnUpdateTitle(int32 page_id, 312 void OnUpdateTitle(int32 page_id,
315 const base::string16& title, 313 const base::string16& title,
316 blink::WebTextDirection title_direction); 314 blink::WebTextDirection title_direction);
317 void OnUpdateEncoding(const std::string& encoding); 315 void OnUpdateEncoding(const std::string& encoding);
318 void OnBeginNavigation( 316 void OnBeginNavigation(
319 const FrameHostMsg_BeginNavigation_Params& params); 317 const FrameHostMsg_BeginNavigation_Params& params);
320 void OnAccessibilityEvents( 318 void OnAccessibilityEvents(
321 const std::vector<AccessibilityHostMsg_EventParams>& params); 319 const std::vector<AccessibilityHostMsg_EventParams>& params);
322 void OnAccessibilityLocationChanges( 320 void OnAccessibilityLocationChanges(
323 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); 321 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
324 322
325 // Returns whether the given URL is allowed to commit in the current process. 323 // Returns whether the given URL is allowed to commit in the current process.
326 // This is a more conservative check than RenderProcessHost::FilterURL, since 324 // This is a more conservative check than RenderProcessHost::FilterURL, since
327 // it will be used to kill processes that commit unauthorized URLs. 325 // it will be used to kill processes that commit unauthorized URLs.
328 bool CanCommitURL(const GURL& url); 326 bool CanCommitURL(const GURL& url);
329 327
330 void PlatformNotificationPermissionRequestDone( 328 void PlatformNotificationPermissionRequestDone(
331 int request_id, blink::WebNotificationPermission permission); 329 int request_id, blink::WebNotificationPermission permission);
332 void DesktopNotificationPermissionRequestDone(
333 int callback_context, blink::WebNotificationPermission permission);
334 330
335 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a 331 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
336 // refcount that calls Shutdown when it reaches zero. This allows each 332 // refcount that calls Shutdown when it reaches zero. This allows each
337 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring 333 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
338 // we have a RenderViewHost for each RenderFrameHost. 334 // we have a RenderViewHost for each RenderFrameHost.
339 // TODO(creis): RenderViewHost will eventually go away and be replaced with 335 // TODO(creis): RenderViewHost will eventually go away and be replaced with
340 // some form of page context. 336 // some form of page context.
341 RenderViewHostImpl* render_view_host_; 337 RenderViewHostImpl* render_view_host_;
342 338
343 RenderFrameHostDelegate* delegate_; 339 RenderFrameHostDelegate* delegate_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; 388 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_;
393 // The most recently received accessibility tree - for testing only. 389 // The most recently received accessibility tree - for testing only.
394 scoped_ptr<ui::AXTree> ax_tree_for_testing_; 390 scoped_ptr<ui::AXTree> ax_tree_for_testing_;
395 391
396 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 392 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
397 }; 393 };
398 394
399 } // namespace content 395 } // namespace content
400 396
401 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 397 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698