| Index: net/base/net_log.h
|
| diff --git a/net/base/net_log.h b/net/base/net_log.h
|
| index 707c3216f8296cdf656a1fbbfcd2122a6bfd4611..545dcd90022c8521b98997bea4e9b981df4fd579 100644
|
| --- a/net/base/net_log.h
|
| +++ b/net/base/net_log.h
|
| @@ -78,14 +78,18 @@ class NET_EXPORT NetLog {
|
| : public base::RefCountedThreadSafe<EventParameters> {
|
| public:
|
| EventParameters() {}
|
| - virtual ~EventParameters() {}
|
|
|
| // Serializes the parameters to a Value tree. This is intended to be a
|
| // lossless conversion, which is used to serialize the parameters to JSON.
|
| // The caller takes ownership of the returned Value*.
|
| virtual base::Value* ToValue() const = 0;
|
|
|
| + protected:
|
| + virtual ~EventParameters() {}
|
| +
|
| private:
|
| + friend class base::RefCountedThreadSafe<EventParameters>;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(EventParameters);
|
| };
|
|
|
| @@ -321,7 +325,6 @@ class NET_EXPORT NetLogStringParameter : public NetLog::EventParameters {
|
| public:
|
| // |name| must be a string literal.
|
| NetLogStringParameter(const char* name, const std::string& value);
|
| - virtual ~NetLogStringParameter();
|
|
|
| const std::string& value() const {
|
| return value_;
|
| @@ -330,6 +333,8 @@ class NET_EXPORT NetLogStringParameter : public NetLog::EventParameters {
|
| virtual base::Value* ToValue() const OVERRIDE;
|
|
|
| private:
|
| + virtual ~NetLogStringParameter();
|
| +
|
| const char* const name_;
|
| const std::string value_;
|
| };
|
| @@ -349,6 +354,8 @@ class NET_EXPORT NetLogIntegerParameter : public NetLog::EventParameters {
|
| virtual base::Value* ToValue() const OVERRIDE;
|
|
|
| private:
|
| + virtual ~NetLogIntegerParameter() {}
|
| +
|
| const char* name_;
|
| const int value_;
|
| };
|
| @@ -368,6 +375,8 @@ class NET_EXPORT NetLogSourceParameter : public NetLog::EventParameters {
|
| virtual base::Value* ToValue() const OVERRIDE;
|
|
|
| private:
|
| + virtual ~NetLogSourceParameter() {}
|
| +
|
| const char* name_;
|
| const NetLog::Source value_;
|
| };
|
|
|