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 "extensions/browser/extension_navigation_ui_data.h" | |
6 | |
7 #include "content/public/browser/navigation_handle.h" | |
8 | |
9 namespace extensions { | |
10 | |
11 ExtensionNavigationUIData::ExtensionNavigationUIData() {} | |
12 | |
13 ExtensionNavigationUIData::ExtensionNavigationUIData( | |
14 content::NavigationHandle* navigation_handle, | |
15 int tab_id, | |
16 int window_id) { | |
17 frame_data_.frame_id = ExtensionApiFrameIdMap::GetFrameId(navigation_handle); | |
Devlin
2016/09/16 16:17:26
It makes me a little sad that we now have two sepa
clamy
2016/09/19 15:10:03
Done.
| |
18 frame_data_.parent_frame_id = | |
19 ExtensionApiFrameIdMap::GetParentFrameId(navigation_handle); | |
20 frame_data_.tab_id = tab_id; | |
21 frame_data_.window_id = window_id; | |
22 } | |
23 | |
24 std::unique_ptr<ExtensionNavigationUIData> ExtensionNavigationUIData::DeepCopy() | |
25 const { | |
26 std::unique_ptr<ExtensionNavigationUIData> copy( | |
27 new ExtensionNavigationUIData()); | |
28 copy->set_frame_data(frame_data_); | |
29 return copy; | |
30 } | |
31 | |
32 } // namespace extensions | |
OLD | NEW |