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

Side by Side Diff: content/public/browser/web_contents_source.cc

Issue 1432143002: Track where WebContents are created in order to better understand issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 2015 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 #include "content/public/browser/web_contents_source.h"
6
7 // DEFINE_WEB_CONTENTS_USER_DATA_KEY(WebContentsSource);
8 // Can't use the regular macro because this must be CONTENT_EXPORTed.
9 template <>
10 CONTENT_EXPORT int
11 content::WebContentsUserData<WebContentsSource>::kLocatorKey = 0;
12
13 // static
14 void WebContentsSource::CreateForWebContentsAndLocation(
15 content::WebContents* contents,
16 const tracked_objects::Location& created_location) {
17 WebContentsSource::CreateForWebContents(contents);
18 WebContentsSource* self = WebContentsSource::FromWebContents(contents);
19 self->created_location_ = created_location;
20 }
21
22 WebContentsSource::WebContentsSource(content::WebContents* contents) {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698