OLD | NEW |
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 Loading... |
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 |
OLD | NEW |