content: Fix WebContentsUserData for usage across components.

1354402
This commit is contained in:
deepak1556 2019-01-21 22:26:54 +05:30
parent a864167d46
commit 9439ac108d
16 changed files with 48 additions and 15 deletions

View file

@ -18,11 +18,12 @@ struct ChildWebContentsTracker
GURL url;
std::string frame_name;
explicit ChildWebContentsTracker(content::WebContents* web_contents) {}
private:
explicit ChildWebContentsTracker(content::WebContents* web_contents);
friend class content::WebContentsUserData<ChildWebContentsTracker>;
WEB_CONTENTS_USER_DATA_KEY_DECL();
DISALLOW_COPY_AND_ASSIGN(ChildWebContentsTracker);
};