OLD | NEW |
1 // This file is generated | 1 // This file is generated |
2 | 2 |
3 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 3 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style license that can be | 4 // Use of this source code is governed by a BSD-style license that can be |
5 // found in the LICENSE file. | 5 // found in the LICENSE file. |
6 | 6 |
7 #ifndef {{class_name}}_h | 7 #ifndef {{class_name}}_h |
8 #define {{class_name}}_h | 8 #define {{class_name}}_h |
9 | 9 |
10 #include "platform/inspector_protocol/TypeBuilder.h" | 10 #include "platform/inspector_protocol/TypeBuilder.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 virtual ~Dispatcher() { } | 22 virtual ~Dispatcher() { } |
23 | 23 |
24 class PLATFORM_EXPORT CallbackBase: public RefCounted<CallbackBase> { | 24 class PLATFORM_EXPORT CallbackBase: public RefCounted<CallbackBase> { |
25 public: | 25 public: |
26 CallbackBase(PassRefPtr<DispatcherImpl> backendImpl, int sessionId, int
id); | 26 CallbackBase(PassRefPtr<DispatcherImpl> backendImpl, int sessionId, int
id); |
27 virtual ~CallbackBase(); | 27 virtual ~CallbackBase(); |
28 void sendFailure(const ErrorString&); | 28 void sendFailure(const ErrorString&); |
29 bool isActive(); | 29 bool isActive(); |
30 | 30 |
31 protected: | 31 protected: |
32 void sendIfActive(PassRefPtr<JSONObject> partialMessage, const ErrorStri
ng& invocationError); | 32 void sendIfActive(PassRefPtr<protocol::DictionaryValue> partialMessage,
const ErrorString& invocationError); |
33 | 33 |
34 private: | 34 private: |
35 void disable() { m_alreadySent = true; } | 35 void disable() { m_alreadySent = true; } |
36 | 36 |
37 RefPtr<DispatcherImpl> m_backendImpl; | 37 RefPtr<DispatcherImpl> m_backendImpl; |
38 int m_sessionId; | 38 int m_sessionId; |
39 int m_id; | 39 int m_id; |
40 bool m_alreadySent; | 40 bool m_alreadySent; |
41 | 41 |
42 friend class DispatcherImpl; | 42 friend class DispatcherImpl; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual void dispatch(int sessionId, const String& message) = 0; | 112 virtual void dispatch(int sessionId, const String& message) = 0; |
113 static bool getCommandName(const String& message, String* result); | 113 static bool getCommandName(const String& message, String* result); |
114 }; | 114 }; |
115 | 115 |
116 } // namespace protocol | 116 } // namespace protocol |
117 } // namespace blink | 117 } // namespace blink |
118 | 118 |
119 using blink::protocol::ErrorString; | 119 using blink::protocol::ErrorString; |
120 | 120 |
121 #endif // !defined({{class_name}}_h) | 121 #endif // !defined({{class_name}}_h) |
OLD | NEW |