| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef InspectorWebSocketEvents_h | 5 #ifndef InspectorWebSocketEvents_h |
| 6 #define InspectorWebSocketEvents_h | 6 #define InspectorWebSocketEvents_h |
| 7 | 7 |
| 8 #include "core/inspector/InspectorTraceEvents.h" | 8 #include "core/inspector/InspectorTraceEvents.h" |
| 9 #include "platform/TraceEvent.h" | 9 #include "platform/TraceEvent.h" |
| 10 #include "platform/TracedValue.h" | 10 #include "platform/TracedValue.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "wtf/Forward.h" | 12 #include "wtf/Forward.h" |
| 13 #include "wtf/Functional.h" | 13 #include "wtf/Functional.h" |
| 14 #include <memory> | |
| 15 | 14 |
| 16 namespace blink { | 15 namespace blink { |
| 17 | 16 |
| 18 class Document; | 17 class Document; |
| 19 class KURL; | 18 class KURL; |
| 20 | 19 |
| 21 class InspectorWebSocketCreateEvent { | 20 class InspectorWebSocketCreateEvent { |
| 22 STATIC_ONLY(InspectorWebSocketCreateEvent); | 21 STATIC_ONLY(InspectorWebSocketCreateEvent); |
| 23 public: | 22 public: |
| 24 static std::unique_ptr<TracedValue> data(Document*, unsigned long identifier
, const KURL&, const String& protocol); | 23 static PassOwnPtr<TracedValue> data(Document*, unsigned long identifier, con
st KURL&, const String& protocol); |
| 25 }; | 24 }; |
| 26 | 25 |
| 27 class InspectorWebSocketEvent { | 26 class InspectorWebSocketEvent { |
| 28 STATIC_ONLY(InspectorWebSocketEvent); | 27 STATIC_ONLY(InspectorWebSocketEvent); |
| 29 public: | 28 public: |
| 30 static std::unique_ptr<TracedValue> data(Document*, unsigned long identifier
); | 29 static PassOwnPtr<TracedValue> data(Document*, unsigned long identifier); |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 } // namespace blink | 32 } // namespace blink |
| 34 | 33 |
| 35 | 34 |
| 36 #endif // !defined(InspectorWebSocketEvents_h) | 35 #endif // !defined(InspectorWebSocketEvents_h) |
| OLD | NEW |