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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Added missing comment 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 #ifndef EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_UI_DATA_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_UI_DATA_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "extensions/browser/extension_api_frame_id_map.h"
12
13 namespace content {
14 class NavigationHandle;
15 }
16
17 namespace extensions {
18
19 class ExtensionNavigationUIData {
nasko 2016/09/22 18:32:51 Class level comment about what this is used for? A
clamy 2016/09/26 15:37:51 Done.
20 public:
21 ExtensionNavigationUIData();
22 ExtensionNavigationUIData(content::NavigationHandle* navigation_handle,
23 int tab_id,
24 int window_id);
25
26 std::unique_ptr<ExtensionNavigationUIData> DeepCopy() const;
27
28 const ExtensionApiFrameIdMap::FrameData& frame_data() const {
29 return frame_data_;
30 }
31
32 void set_frame_data(const ExtensionApiFrameIdMap::FrameData& frame_data) {
nasko 2016/09/22 18:32:51 Does this need to be a public method?
clamy 2016/09/26 15:37:51 Done.
33 frame_data_ = frame_data;
34 }
35
36 private:
37 ExtensionApiFrameIdMap::FrameData frame_data_;
38
39 DISALLOW_COPY_AND_ASSIGN(ExtensionNavigationUIData);
40 };
41
42 } // namespace extensions
43
44 #endif // EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_UI_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698