| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 RemoteObjectId_h | 5 #ifndef RemoteObjectId_h |
| 6 #define RemoteObjectId_h | 6 #define RemoteObjectId_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
| 9 #include "wtf/Forward.h" | 9 #include "wtf/Forward.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 namespace protocol { | 13 namespace protocol { |
| 14 class DictionaryValue; | 14 class DictionaryValue; |
| 15 } | 15 } |
| 16 | 16 |
| 17 class RemoteObjectIdBase { | 17 class RemoteObjectIdBase { |
| 18 USING_FAST_MALLOC(RemoteObjectIdBase); | 18 USING_FAST_MALLOC(RemoteObjectIdBase); |
| 19 public: | 19 public: |
| 20 int contextId() const { return m_injectedScriptId; } | 20 int contextId() const { return m_injectedScriptId; } |
| 21 | 21 |
| 22 protected: | 22 protected: |
| 23 RemoteObjectIdBase(); | 23 RemoteObjectIdBase(); |
| 24 ~RemoteObjectIdBase() { } | 24 ~RemoteObjectIdBase() { } |
| 25 | 25 |
| 26 PassRefPtr<protocol::DictionaryValue> parseInjectedScriptId(const String&); | 26 PassOwnPtr<protocol::DictionaryValue> parseInjectedScriptId(const String&); |
| 27 | 27 |
| 28 int m_injectedScriptId; | 28 int m_injectedScriptId; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 class RemoteObjectId final : public RemoteObjectIdBase { | 31 class RemoteObjectId final : public RemoteObjectIdBase { |
| 32 public: | 32 public: |
| 33 static PassOwnPtr<RemoteObjectId> parse(const String&); | 33 static PassOwnPtr<RemoteObjectId> parse(const String&); |
| 34 ~RemoteObjectId() { } | 34 ~RemoteObjectId() { } |
| 35 int id() const { return m_id; } | 35 int id() const { return m_id; } |
| 36 | 36 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 51 private: | 51 private: |
| 52 RemoteCallFrameId(); | 52 RemoteCallFrameId(); |
| 53 | 53 |
| 54 int m_frameOrdinal; | 54 int m_frameOrdinal; |
| 55 int m_asyncStackOrdinal; | 55 int m_asyncStackOrdinal; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif // !defined(RemoteObjectId_h) | 60 #endif // !defined(RemoteObjectId_h) |
| OLD | NEW |