Chromium Code Reviews| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 void ListenForDefaultSessionStart( | 156 void ListenForDefaultSessionStart( |
| 157 const DefaultSessionMojoCallback& callback) override; | 157 const DefaultSessionMojoCallback& callback) override; |
| 158 void StartSession( | 158 void StartSession( |
| 159 const mojo::String& presentation_url, | 159 const mojo::String& presentation_url, |
| 160 const mojo::String& presentation_id, | 160 const mojo::String& presentation_id, |
| 161 const NewSessionMojoCallback& callback) override; | 161 const NewSessionMojoCallback& callback) override; |
| 162 void JoinSession( | 162 void JoinSession( |
| 163 const mojo::String& presentation_url, | 163 const mojo::String& presentation_url, |
| 164 const mojo::String& presentation_id, | 164 const mojo::String& presentation_id, |
| 165 const NewSessionMojoCallback& callback) override; | 165 const NewSessionMojoCallback& callback) override; |
| 166 void PostMessages( | |
|
mark a. foltz
2015/04/02 20:46:26
For all types that can be sent/received, we need t
imcheng
2015/04/02 23:57:24
We must limit the size of the messages. 64k sounds
USE s.singapati at gmail.com
2015/04/07 17:45:16
Acknowledged. Do we want to stop sending messages
| |
| 167 const mojo::String& presentation_url, | |
| 168 const mojo::String& presentation_id, | |
| 169 mojo::Array<mojo::String> string_messages) override; | |
|
mark a. foltz
2015/04/02 20:46:26
Mojo guarantees FIFO order for messages sent throu
USE s.singapati at gmail.com
2015/04/07 17:45:16
I've created a patch with new queuing approach to
| |
| 166 void CloseSession( | 170 void CloseSession( |
| 167 const mojo::String& presentation_url, | 171 const mojo::String& presentation_url, |
| 168 const mojo::String& presentation_id) override; | 172 const mojo::String& presentation_id) override; |
| 169 | 173 |
| 170 // mojo::InterfaceImpl override. | 174 // mojo::InterfaceImpl override. |
| 171 // Note that this is called when the RenderFrameHost is deleted. | 175 // Note that this is called when the RenderFrameHost is deleted. |
| 172 void OnConnectionError() override; | 176 void OnConnectionError() override; |
| 173 | 177 |
| 174 // WebContentsObserver override. | 178 // WebContentsObserver override. |
| 175 void DidNavigateAnyFrame( | 179 void DidNavigateAnyFrame( |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 | 241 |
| 238 // NOTE: Weak pointers must be invalidated before all other member variables. | 242 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 239 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; | 243 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; |
| 240 | 244 |
| 241 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); | 245 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
| 242 }; | 246 }; |
| 243 | 247 |
| 244 } // namespace content | 248 } // namespace content |
| 245 | 249 |
| 246 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 250 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
| OLD | NEW |