Chromium Code Reviews| 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 #ifndef CONTENT_PUBLIC_COMMON_SERIALIZED_PROFILER_DATA_H | |
| 6 #define CONTENT_PUBLIC_COMMON_SERIALIZED_PROFILER_DATA_H | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 #include <vector> | |
| 11 | |
| 12 #include "base/tracked_objects.h" | |
| 13 #include "content/common/content_export.h" | |
| 14 #include "content/public/common/process_type.h" | |
| 15 | |
| 16 namespace base { | |
| 17 class DictionaryValue; | |
| 18 } | |
| 19 | |
| 20 namespace content { | |
| 21 | |
| 22 // Extends SerializedProcessData with the process's type info. | |
| 23 struct CONTENT_EXPORT SerializedProfilerData : | |
| 24 public tracked_objects::SerializedProcessData { | |
|
jam
2012/03/14 17:45:31
in content/public we put interfaces and dont deriv
Ilya Sherman
2012/03/14 18:01:28
This is currently a struct, which is just a dumb d
Ilya Sherman
2012/03/16 22:56:42
Ok, removed this struct entirely in favor of passi
| |
| 25 SerializedProfilerData(); | |
| 26 SerializedProfilerData(content::ProcessType process_type); | |
| 27 ~SerializedProfilerData(); | |
| 28 | |
| 29 void ToValue(base::DictionaryValue* dictionary) const; | |
|
jam
2012/03/14 19:14:03
one more note: this is against the style guide for
Ilya Sherman
2012/03/16 22:56:42
Very well, extracted this out to a static function
| |
| 30 | |
| 31 content::ProcessType process_type; | |
| 32 }; | |
| 33 | |
| 34 } // namespace content | |
| 35 | |
| 36 #endif // CONTENT_PUBLIC_COMMON_SERIALIZED_PROFILER_DATA_H | |
| OLD | NEW |