OLD | NEW |
(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) {} |
OLD | NEW |