| 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 CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 const PresentationSessionInfo& session_info); | 239 const PresentationSessionInfo& session_info); |
| 240 void OnStartSessionError( | 240 void OnStartSessionError( |
| 241 int request_session_id, | 241 int request_session_id, |
| 242 const PresentationError& error); | 242 const PresentationError& error); |
| 243 void OnJoinSessionSucceeded( | 243 void OnJoinSessionSucceeded( |
| 244 int request_session_id, | 244 int request_session_id, |
| 245 const PresentationSessionInfo& session_info); | 245 const PresentationSessionInfo& session_info); |
| 246 void OnJoinSessionError( | 246 void OnJoinSessionError( |
| 247 int request_session_id, | 247 int request_session_id, |
| 248 const PresentationError& error); | 248 const PresentationError& error); |
| 249 void OnSendMessageCallback(); | 249 void OnSendMessageCallback(bool sent); |
| 250 | 250 |
| 251 // Passed to embedder's implementation of PresentationServiceDelegate for | 251 // Passed to embedder's implementation of PresentationServiceDelegate for |
| 252 // later invocation when session messages arrive. | 252 // later invocation when session messages arrive. |
| 253 // For optimization purposes, this method will empty the messages | 253 // For optimization purposes, this method will empty the messages |
| 254 // passed to it. | 254 // passed to it. |
| 255 void OnSessionMessages( | 255 void OnSessionMessages( |
| 256 scoped_ptr<ScopedVector<PresentationSessionMessage>> messages); | 256 scoped_ptr<ScopedVector<PresentationSessionMessage>> messages); |
| 257 | 257 |
| 258 // Associates a JoinSession |callback| with a unique request ID and | 258 // Associates a JoinSession |callback| with a unique request ID and |
| 259 // stores it in a map. | 259 // stores it in a map. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 // NOTE: Weak pointers must be invalidated before all other member variables. | 303 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 304 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; | 304 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; |
| 305 | 305 |
| 306 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); | 306 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
| 307 }; | 307 }; |
| 308 | 308 |
| 309 } // namespace content | 309 } // namespace content |
| 310 | 310 |
| 311 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 311 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
| OLD | NEW |