Chromium Code Reviews| Index: extensions/browser/extension_navigation_ui_data.h |
| diff --git a/extensions/browser/extension_navigation_ui_data.h b/extensions/browser/extension_navigation_ui_data.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3fd0291894bb11d74d1f3c35736e1a188f43cd4f |
| --- /dev/null |
| +++ b/extensions/browser/extension_navigation_ui_data.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_UI_DATA_H_ |
| +#define EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_UI_DATA_H_ |
| + |
| +#include <memory> |
| + |
| +#include "base/macros.h" |
| +#include "extensions/browser/extension_api_frame_id_map.h" |
| + |
| +namespace content { |
| +class NavigationHandle; |
| +} |
| + |
| +namespace extensions { |
| + |
| +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.
|
| + public: |
| + ExtensionNavigationUIData(); |
| + ExtensionNavigationUIData(content::NavigationHandle* navigation_handle, |
| + int tab_id, |
| + int window_id); |
| + |
| + std::unique_ptr<ExtensionNavigationUIData> DeepCopy() const; |
| + |
| + const ExtensionApiFrameIdMap::FrameData& frame_data() const { |
| + return frame_data_; |
| + } |
| + |
| + 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.
|
| + frame_data_ = frame_data; |
| + } |
| + |
| + private: |
| + ExtensionApiFrameIdMap::FrameData frame_data_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ExtensionNavigationUIData); |
| +}; |
| + |
| +} // namespace extensions |
| + |
| +#endif // EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_UI_DATA_H_ |