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

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

Issue 758603002: Use Mojo Permission Service when requesting Notifications permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_geolocation_follow_up
Patch Set: fixes to pass tests Created 6 years 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
« 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class RenderViewHostImpl; 60 class RenderViewHostImpl;
61 class RenderWidgetHostImpl; 61 class RenderWidgetHostImpl;
62 class StreamHandle; 62 class StreamHandle;
63 class TimeoutMonitor; 63 class TimeoutMonitor;
64 struct CommitNavigationParams; 64 struct CommitNavigationParams;
65 struct CommonNavigationParams; 65 struct CommonNavigationParams;
66 struct ContextMenuParams; 66 struct ContextMenuParams;
67 struct GlobalRequestID; 67 struct GlobalRequestID;
68 struct Referrer; 68 struct Referrer;
69 struct ResourceResponse; 69 struct ResourceResponse;
70 struct ShowDesktopNotificationHostMsgParams;
71 struct TransitionLayerData; 70 struct TransitionLayerData;
72 71
73 // Flag arguments for RenderFrameHost creation. 72 // Flag arguments for RenderFrameHost creation.
74 enum CreateRenderFrameFlags { 73 enum CreateRenderFrameFlags {
75 // The RFH will be initially placed on the swapped out hosts list. 74 // The RFH will be initially placed on the swapped out hosts list.
76 CREATE_RF_SWAPPED_OUT = 1 << 0, 75 CREATE_RF_SWAPPED_OUT = 1 << 0,
77 // The new RenderFrame is being created for a navigation of the 76 // The new RenderFrame is being created for a navigation of the
78 // top-level frame. 77 // top-level frame.
79 CREATE_RF_FOR_MAIN_FRAME_NAVIGATION = 1 << 1, 78 CREATE_RF_FOR_MAIN_FRAME_NAVIGATION = 1 << 1,
80 // The RenderFrame is initially hidden. 79 // The RenderFrame is initially hidden.
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); 429 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result);
431 void OnRunJavaScriptMessage(const base::string16& message, 430 void OnRunJavaScriptMessage(const base::string16& message,
432 const base::string16& default_prompt, 431 const base::string16& default_prompt,
433 const GURL& frame_url, 432 const GURL& frame_url,
434 JavaScriptMessageType type, 433 JavaScriptMessageType type,
435 IPC::Message* reply_msg); 434 IPC::Message* reply_msg);
436 void OnRunBeforeUnloadConfirm(const GURL& frame_url, 435 void OnRunBeforeUnloadConfirm(const GURL& frame_url,
437 const base::string16& message, 436 const base::string16& message,
438 bool is_reload, 437 bool is_reload,
439 IPC::Message* reply_msg); 438 IPC::Message* reply_msg);
440 void OnRequestPlatformNotificationPermission(const GURL& origin,
441 int request_id);
442 void OnShowDesktopNotification(
443 int notification_id,
444 const ShowDesktopNotificationHostMsgParams& params);
445 void OnCancelDesktopNotification(int notification_id);
446 void OnTextSurroundingSelectionResponse(const base::string16& content, 439 void OnTextSurroundingSelectionResponse(const base::string16& content,
447 size_t start_offset, 440 size_t start_offset,
448 size_t end_offset); 441 size_t end_offset);
449 void OnDidAccessInitialDocument(); 442 void OnDidAccessInitialDocument();
450 void OnDidDisownOpener(); 443 void OnDidDisownOpener();
451 void OnDidAssignPageId(int32 page_id); 444 void OnDidAssignPageId(int32 page_id);
452 void OnUpdateTitle(const base::string16& title, 445 void OnUpdateTitle(const base::string16& title,
453 blink::WebTextDirection title_direction); 446 blink::WebTextDirection title_direction);
454 void OnUpdateEncoding(const std::string& encoding); 447 void OnUpdateEncoding(const std::string& encoding);
455 void OnBeginNavigation(const FrameHostMsg_BeginNavigation_Params& params, 448 void OnBeginNavigation(const FrameHostMsg_BeginNavigation_Params& params,
(...skipping 16 matching lines...) Expand all
472 465
473 // Updates the state of this RenderFrameHost and clears any waiting state 466 // Updates the state of this RenderFrameHost and clears any waiting state
474 // that is no longer relevant. 467 // that is no longer relevant.
475 void SetState(RenderFrameHostImplState rfh_state); 468 void SetState(RenderFrameHostImplState rfh_state);
476 469
477 // Returns whether the given URL is allowed to commit in the current process. 470 // Returns whether the given URL is allowed to commit in the current process.
478 // This is a more conservative check than RenderProcessHost::FilterURL, since 471 // This is a more conservative check than RenderProcessHost::FilterURL, since
479 // it will be used to kill processes that commit unauthorized URLs. 472 // it will be used to kill processes that commit unauthorized URLs.
480 bool CanCommitURL(const GURL& url); 473 bool CanCommitURL(const GURL& url);
481 474
482 void PlatformNotificationPermissionRequestDone(int request_id, bool granted);
483
484 // Update the the singleton FrameAccessibility instance with a map 475 // Update the the singleton FrameAccessibility instance with a map
485 // from accessibility node id to the frame routing id of a cross-process 476 // from accessibility node id to the frame routing id of a cross-process
486 // iframe. 477 // iframe.
487 void UpdateCrossProcessIframeAccessibility( 478 void UpdateCrossProcessIframeAccessibility(
488 const std::map<int32, int>& node_to_frame_routing_id_map); 479 const std::map<int32, int>& node_to_frame_routing_id_map);
489 480
490 // Update the the singleton FrameAccessibility instance with a map 481 // Update the the singleton FrameAccessibility instance with a map
491 // from accessibility node id to the browser plugin instance id of a 482 // from accessibility node id to the browser plugin instance id of a
492 // guest WebContents. 483 // guest WebContents.
493 void UpdateGuestFrameAccessibility( 484 void UpdateGuestFrameAccessibility(
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 608
618 // NOTE: This must be the last member. 609 // NOTE: This must be the last member.
619 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 610 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
620 611
621 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 612 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
622 }; 613 };
623 614
624 } // namespace content 615 } // namespace content
625 616
626 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 617 #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