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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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_BROWSER_FRAME_HOST_NAVIGATION_USER_DATA_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_USER_DATA_H_
7
8 #include "base/macros.h"
9 #include "base/supports_user_data.h"
10
11 namespace content {
12
13 extern const void* const kNavigationUserDataKey;
14
15 class NavigationSupportsUserData : public base::SupportsUserData {
16 public:
17 NavigationSupportsUserData() {}
18 ~NavigationSupportsUserData() override {}
19
20 private:
21 DISALLOW_COPY_AND_ASSIGN(NavigationSupportsUserData);
22 };
23
24 class NavigationUserData : public base::SupportsUserData::Data {
25 public:
26 NavigationUserData();
27 NavigationSupportsUserData* get_navigation_supports_user_data();
RyanSturm 2016/03/24 17:43:06 Consider changing to SetUserData(void* key, Data d
28 scoped_ptr<NavigationSupportsUserData>
29 take_own_navigation_supports_user_data();
30
31 ~NavigationUserData() override;
32
33 private:
34 scoped_ptr<NavigationSupportsUserData> navigation_supports_user_data_;
35 DISALLOW_COPY_AND_ASSIGN(NavigationUserData);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_USER_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698