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 #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_ | |
OLD | NEW |