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

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

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.cc
diff --git a/content/browser/frame_host/navigation_user_data.cc b/content/browser/frame_host/navigation_user_data.cc
new file mode 100644
index 0000000000000000000000000000000000000000..404b1151b1d1073f9e8fb5c35915c87bdb9ba9c3
--- /dev/null
+++ b/content/browser/frame_host/navigation_user_data.cc
@@ -0,0 +1,26 @@
+// 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.
+
+#include "content/browser/frame_host/navigation_user_data.h"
+
+namespace content {
+
+const void* const kNavigationUserDataKey = &kNavigationUserDataKey;
+
+NavigationUserData::NavigationUserData()
+ : navigation_supports_user_data_(new NavigationSupportsUserData()) {}
+
+NavigationUserData::~NavigationUserData() {}
+
+NavigationSupportsUserData*
+NavigationUserData::get_navigation_supports_user_data() {
+ return navigation_supports_user_data_.get();
+}
+
+scoped_ptr<NavigationSupportsUserData>
+NavigationUserData::take_own_navigation_supports_user_data() {
+ return std::move(navigation_supports_user_data_);
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698