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

Side by Side Diff: extensions/browser/extension_navigation_ui_data.cc

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: PlzNavigate: support the WebRequest API Created 4 years, 3 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698