| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GOOGLE_APIS_GCM_ENGINE_CONNECTION_HANDLER_H_ | 5 #ifndef GOOGLE_APIS_GCM_ENGINE_CONNECTION_HANDLER_H_ |
| 6 #define GOOGLE_APIS_GCM_ENGINE_CONNECTION_HANDLER_H_ | 6 #define GOOGLE_APIS_GCM_ENGINE_CONNECTION_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "google_apis/gcm/base/gcm_export.h" | 10 #include "google_apis/gcm/base/gcm_export.h" |
| 10 | 11 |
| 11 namespace net{ | 12 namespace net{ |
| 12 class StreamSocket; | 13 class StreamSocket; |
| 13 } // namespace net | 14 } // namespace net |
| 14 | 15 |
| 15 namespace google { | 16 namespace google { |
| 16 namespace protobuf { | 17 namespace protobuf { |
| 17 class MessageLite; | 18 class MessageLite; |
| 18 } // namespace protobuf | 19 } // namespace protobuf |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // in flight. | 59 // in flight. |
| 59 virtual bool CanSendMessage() const = 0; | 60 virtual bool CanSendMessage() const = 0; |
| 60 | 61 |
| 61 // Send an MCS protobuf message. CanSendMessage() must be true. | 62 // Send an MCS protobuf message. CanSendMessage() must be true. |
| 62 virtual void SendMessage(const google::protobuf::MessageLite& message) = 0; | 63 virtual void SendMessage(const google::protobuf::MessageLite& message) = 0; |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace gcm | 66 } // namespace gcm |
| 66 | 67 |
| 67 #endif // GOOGLE_APIS_GCM_ENGINE_CONNECTION_HANDLER_H_ | 68 #endif // GOOGLE_APIS_GCM_ENGINE_CONNECTION_HANDLER_H_ |
| OLD | NEW |