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

Unified Diff: chrome/browser/performance_monitor/event.h

Issue 547063003: Remove the unmaintained performance monitor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
Index: chrome/browser/performance_monitor/event.h
diff --git a/chrome/browser/performance_monitor/event.h b/chrome/browser/performance_monitor/event.h
deleted file mode 100644
index 4bde2598ea507b8416f44818ecad765dce77d113..0000000000000000000000000000000000000000
--- a/chrome/browser/performance_monitor/event.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// 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 CHROME_BROWSER_PERFORMANCE_MONITOR_EVENT_H_
-#define CHROME_BROWSER_PERFORMANCE_MONITOR_EVENT_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/time/time.h"
-#include "base/values.h"
-
-#include "chrome/browser/performance_monitor/event_type.h"
-
-namespace performance_monitor {
-
-const char* EventTypeToString(EventType event_type);
-
-// The wrapper class for the JSON-generated event classes for the performance
-// monitor. This class is used so we can pass around events in a single class,
-// rather than having a variety of different types (since JSON does not
-// currently support inheritance). Since the class will occasionally need to
-// be compared against other events, we construct it with type and time. Other
-// information should not be needed commonly, and is stored in a JSON-generated
-// DictionaryValue.
-class Event {
- public:
- Event(const EventType& type,
- const base::Time& time,
- scoped_ptr<base::DictionaryValue> data);
- virtual ~Event();
-
- // Construct an event from the given DictionaryValue; takes ownership of
- // |data|.
- static scoped_ptr<Event> FromValue(scoped_ptr<base::DictionaryValue> data);
-
- // Accessors
- EventType type() const { return type_; }
- base::Time time() const { return time_; }
- base::DictionaryValue* data() const { return data_.get(); }
-
- private:
-
- // The type of the event.
- EventType type_;
- // The time at which the event was recorded.
- base::Time time_;
- // The full JSON-generated value representing the information of the event;
- // these data are described in chrome/browser/performance_monitor/events.json.
- scoped_ptr<base::DictionaryValue> data_;
-};
-
-} // namespace performance_monitor
-
-#endif // CHROME_BROWSER_PERFORMANCE_MONITOR_EVENT_H_
« no previous file with comments | « chrome/browser/performance_monitor/database_unittest.cc ('k') | chrome/browser/performance_monitor/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698