Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1096)

Unified Diff: content/browser/frame_host/navigation_user_data.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing lifetime of NavigationSupportsUserData for Draft Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698