Chromium Code Reviews| Index: content/browser/frame_host/navigation_user_data.h |
| diff --git a/content/browser/frame_host/navigation_user_data.h b/content/browser/frame_host/navigation_user_data.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bda0c2439629973f82b4b538e9be2dee487eedc5 |
| --- /dev/null |
| +++ b/content/browser/frame_host/navigation_user_data.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2014 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_BROWSER_FRAME_HOST_NAVIGATION_USER_DATA_H_ |
| +#define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_USER_DATA_H_ |
| + |
| +#include "base/macros.h" |
| +#include "base/supports_user_data.h" |
| + |
| +namespace content { |
| + |
| +extern const void* const kNavigationUserDataKey; |
| + |
| +class NavigationSupportsUserData : public base::SupportsUserData { |
| + public: |
| + NavigationSupportsUserData() {} |
| + ~NavigationSupportsUserData() override {} |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(NavigationSupportsUserData); |
| +}; |
| + |
| +class NavigationUserData : public base::SupportsUserData::Data { |
| + public: |
| + NavigationUserData(); |
| + NavigationSupportsUserData* get_navigation_supports_user_data(); |
|
RyanSturm
2016/03/24 17:43:06
Consider changing to SetUserData(void* key, Data d
|
| + scoped_ptr<NavigationSupportsUserData> |
| + take_own_navigation_supports_user_data(); |
| + |
| + ~NavigationUserData() override; |
| + |
| + private: |
| + scoped_ptr<NavigationSupportsUserData> navigation_supports_user_data_; |
| + DISALLOW_COPY_AND_ASSIGN(NavigationUserData); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_USER_DATA_H_ |