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 "content/public/common/serialized_profiler_data.h" |
| 6 |
| 7 #include "base/values.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 //------------------------------------------------------------------------------ |
| 12 SerializedProfilerData::SerializedProfilerData() { |
| 13 } |
| 14 |
| 15 SerializedProfilerData::SerializedProfilerData( |
| 16 content::ProcessType process_type) |
| 17 : process_type(process_type) { |
| 18 } |
| 19 |
| 20 SerializedProfilerData::~SerializedProfilerData() { |
| 21 } |
| 22 |
| 23 void SerializedProfilerData::ToValue(base::DictionaryValue* dictionary) const { |
| 24 tracked_objects::SerializedProcessData::ToValue(dictionary); |
| 25 dictionary->SetString("process_type", |
| 26 content::GetProcessTypeNameInEnglish(process_type)); |
| 27 } |
| 28 |
| 29 } // namespace content |
OLD | NEW |