OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/chooser_controller/chooser_controller.h" |
| 6 |
| 7 #include "content/public/browser/render_frame_host.h" |
| 8 |
| 9 ChooserController::ChooserController(content::RenderFrameHost* owner) |
| 10 : owning_frame_(owner) {} |
| 11 |
| 12 ChooserController::~ChooserController() {} |
| 13 |
| 14 url::Origin ChooserController::GetOrigin() const { |
| 15 return const_cast<content::RenderFrameHost*>(owning_frame_) |
| 16 ->GetLastCommittedOrigin(); |
| 17 } |
OLD | NEW |