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 "chrome/browser/net/data_use_user_data.h" |
| 8 |
| 9 DataUseUserData::DataUseUserData(std::string service_name) |
| 10 : service_name_(service_name) {} |
| 11 |
| 12 DataUseUserData::~DataUseUserData() {} |
| 13 |
| 14 // static |
| 15 const void* DataUseUserData::kUserDataKey = |
| 16 static_cast<const void*>(&DataUseUserData::kUserDataKey); |
| 17 |
| 18 // Helper function to create DataUseUserData. |
| 19 base::SupportsUserData::Data* CreateDataUseUserData( |
| 20 std::string service_name) { |
| 21 return new DataUseUserData(service_name); |
| 22 } |
OLD | NEW |