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

Side by Side Diff: content/browser/permissions/permission_service_context.cc

Issue 1158813002: Use RenderFrameHost for ::RequestPermission() and ::CancelPermission(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fixes Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/browser/permissions/permission_service_context.h" 5 #include "content/browser/permissions/permission_service_context.h"
6 6
7 #include "content/browser/permissions/permission_service_impl.h" 7 #include "content/browser/permissions/permission_service_impl.h"
8 #include "content/public/browser/navigation_details.h" 8 #include "content/public/browser/navigation_details.h"
9 #include "content/public/browser/render_frame_host.h" 9 #include "content/public/browser/render_frame_host.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return render_process_host_->GetBrowserContext(); 71 return render_process_host_->GetBrowserContext();
72 } 72 }
73 return web_contents()->GetBrowserContext(); 73 return web_contents()->GetBrowserContext();
74 } 74 }
75 75
76 GURL PermissionServiceContext::GetEmbeddingOrigin() const { 76 GURL PermissionServiceContext::GetEmbeddingOrigin() const {
77 return web_contents() ? web_contents()->GetLastCommittedURL().GetOrigin() 77 return web_contents() ? web_contents()->GetLastCommittedURL().GetOrigin()
78 : GURL(); 78 : GURL();
79 } 79 }
80 80
81 RenderFrameHost* PermissionServiceContext::render_frame_host() const {
82 return render_frame_host_;
83 }
84
81 } // namespace content 85 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/permissions/permission_service_context.h ('k') | content/browser/permissions/permission_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698