Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: content/public/common/serialized_profiler_data.h

Issue 9702014: [UMA] Use proper C++ objects to serialize tracked_objects across process boundaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix base_unittests failures Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/profiler_subscriber.h ('k') | content/public/common/serialized_profiler_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/serialized_profiler_data.h
diff --git a/content/public/common/serialized_profiler_data.h b/content/public/common/serialized_profiler_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..d0d61c03d59bdd624a859886f4429a2e405b726f
--- /dev/null
+++ b/content/public/common/serialized_profiler_data.h
@@ -0,0 +1,36 @@
+// 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.
+
+#ifndef CONTENT_PUBLIC_COMMON_SERIALIZED_PROFILER_DATA_H
+#define CONTENT_PUBLIC_COMMON_SERIALIZED_PROFILER_DATA_H
+#pragma once
+
+#include <string>
+#include <vector>
+
+#include "base/tracked_objects.h"
+#include "content/common/content_export.h"
+#include "content/public/common/process_type.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+namespace content {
+
+// Extends SerializedProcessData with the process's type info.
+struct CONTENT_EXPORT SerializedProfilerData :
+ 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
+ SerializedProfilerData();
+ SerializedProfilerData(content::ProcessType process_type);
+ ~SerializedProfilerData();
+
+ 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
+
+ content::ProcessType process_type;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_SERIALIZED_PROFILER_DATA_H
« no previous file with comments | « content/public/browser/profiler_subscriber.h ('k') | content/public/common/serialized_profiler_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698