| 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_UI_DATA_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_UI_DATA_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 namespace content { |
| 11 |
| 12 // PlzNavigate |
| 13 // Copyable interface for embedders to pass opaque data to content/. It is |
| 14 // expected to be created on the UI thread at the start of the navigation, and |
| 15 // content/ will transfer it to the IO thread as a clone. |
| 16 class NavigationUIData { |
| 17 public: |
| 18 virtual ~NavigationUIData(){}; |
| 19 |
| 20 // Creates a new NavigationData that is a deep copy of the original. |
| 21 virtual std::unique_ptr<NavigationUIData> Clone() const = 0; |
| 22 }; |
| 23 |
| 24 } // namespace content |
| 25 |
| 26 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_UI_DATA_H_ |
| OLD | NEW |