| Index: content/public/common/serialized_profiler_data.cc
|
| diff --git a/content/public/common/serialized_profiler_data.cc b/content/public/common/serialized_profiler_data.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c29d8a9faa77ed45a84676c63ece2cb396c258ee
|
| --- /dev/null
|
| +++ b/content/public/common/serialized_profiler_data.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/public/common/serialized_profiler_data.h"
|
| +
|
| +#include "base/values.h"
|
| +
|
| +namespace content {
|
| +
|
| +//------------------------------------------------------------------------------
|
| +SerializedProfilerData::SerializedProfilerData() {
|
| +}
|
| +
|
| +SerializedProfilerData::SerializedProfilerData(
|
| + content::ProcessType process_type)
|
| + : process_type(process_type) {
|
| +}
|
| +
|
| +SerializedProfilerData::~SerializedProfilerData() {
|
| +}
|
| +
|
| +void SerializedProfilerData::ToValue(base::DictionaryValue* dictionary) const {
|
| + tracked_objects::SerializedProcessData::ToValue(dictionary);
|
| + dictionary->SetString("process_type",
|
| + content::GetProcessTypeNameInEnglish(process_type));
|
| +}
|
| +
|
| +} // namespace content
|
|
|