Chromium Code Reviews| Index: content/public/browser/navigation_data.h |
| diff --git a/content/public/browser/navigation_data.h b/content/public/browser/navigation_data.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..148cd474e60bcb313f77dd6f1af943b60d27200c |
| --- /dev/null |
| +++ b/content/public/browser/navigation_data.h |
| @@ -0,0 +1,25 @@ |
| +// 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_DATA_H_ |
| +#define CONTENT_PUBLIC_BROWSER_NAVIGATION_DATA_H_ |
| + |
| +#include <memory> |
| + |
| +namespace content { |
| + |
| +// Copyable interface for embedders to pass opaque data to content. It is |
| +// expected to be created on the IO thread, and content will transfer it to the |
|
nasko
2016/05/02 22:02:49
nit: "content/" so it is clear what is meant.
RyanSturm
2016/05/02 23:02:56
Done.
|
| +// UI thread as a clone. |
| +class NavigationData { |
| + public: |
| + virtual ~NavigationData(){}; |
| + |
| + // Creates a new NavigationData that is a deep copy of the original |
| + virtual std::unique_ptr<NavigationData> Clone() const = 0; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_DATA_H_ |