OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 <string> |
| 6 |
| 7 #include "components/data_use_measurement/content/data_use_user_data.h" |
| 8 |
| 9 namespace data_use_measurement { |
| 10 DataUseUserData::DataUseUserData(std::string service_name) |
| 11 : service_name_(service_name) {} |
| 12 |
| 13 DataUseUserData::~DataUseUserData() {} |
| 14 |
| 15 // static |
| 16 const void* DataUseUserData::kUserDataKey = |
| 17 static_cast<const void*>(&DataUseUserData::kUserDataKey); |
| 18 |
| 19 // Helper function to create DataUseUserData. |
| 20 base::SupportsUserData::Data* CreateDataUseUserData( |
| 21 std::string service_name) { |
| 22 return new DataUseUserData(service_name); |
| 23 } |
| 24 } // data_use_measurement namespace |
OLD | NEW |