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_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 99 int render_process_id, | 99 int render_process_id, |
| 100 int render_frame_id, | 100 int render_frame_id, |
| 101 const std::string& default_presentation_url, | 101 const std::string& default_presentation_url, |
| 102 const std::string& default_presentation_id) = 0; | 102 const std::string& default_presentation_id) = 0; |
| 103 | 103 |
| 104 // Starts a new presentation session. | 104 // Starts a new presentation session. |
| 105 // Typically, the embedder will allow the user to select a screen to show | 105 // Typically, the embedder will allow the user to select a screen to show |
| 106 // |presentation_url|. | 106 // |presentation_url|. |
| 107 // |render_process_id|, |render_frame_id|: ID of originating frame. | 107 // |render_process_id|, |render_frame_id|: ID of originating frame. |
| 108 // |presentation_url|: URL of the presentation. | 108 // |presentation_url|: URL of the presentation. |
| 109 // |presentation_id|: The caller may provide an non-empty string to be used | |
| 110 // as the ID of the presentation. If empty, the default presentation ID | |
|
whywhat
2015/07/02 19:54:31
Perhaps you want to leave the comment about the de
mlamouri (slow - plz ping)
2015/07/08 14:37:09
Done.
| |
| 111 // will be used. If both are empty, the embedder will automatically generate | |
| 112 // one. | |
| 113 // |success_cb|: Invoked with session info, if presentation session started | 109 // |success_cb|: Invoked with session info, if presentation session started |
| 114 // successfully. | 110 // successfully. |
| 115 // |error_cb|: Invoked with error reason, if presentation session did not | 111 // |error_cb|: Invoked with error reason, if presentation session did not |
| 116 // start. | 112 // start. |
| 117 virtual void StartSession( | 113 virtual void StartSession( |
| 118 int render_process_id, | 114 int render_process_id, |
| 119 int render_frame_id, | 115 int render_frame_id, |
| 120 const std::string& presentation_url, | 116 const std::string& presentation_url, |
| 121 const std::string& presentation_id, | |
| 122 const PresentationSessionSuccessCallback& success_cb, | 117 const PresentationSessionSuccessCallback& success_cb, |
| 123 const PresentationSessionErrorCallback& error_cb) = 0; | 118 const PresentationSessionErrorCallback& error_cb) = 0; |
| 124 | 119 |
| 125 // Joins an existing presentation session. Unlike StartSession(), this | 120 // Joins an existing presentation session. Unlike StartSession(), this |
| 126 // does not bring a screen list UI. | 121 // does not bring a screen list UI. |
| 127 // |render_process_id|, |render_frame_id|: ID for originating frame. | 122 // |render_process_id|, |render_frame_id|: ID for originating frame. |
| 128 // |presentation_url|: URL of the presentation. | 123 // |presentation_url|: URL of the presentation. |
| 129 // |presentation_id|: The ID of the presentation to join. | 124 // |presentation_id|: The ID of the presentation to join. |
| 130 // |success_cb|: Invoked with session info, if presentation session joined | 125 // |success_cb|: Invoked with session info, if presentation session joined |
| 131 // successfully. | 126 // successfully. |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 161 virtual void SendMessage( | 156 virtual void SendMessage( |
| 162 int render_process_id, | 157 int render_process_id, |
| 163 int render_frame_id, | 158 int render_frame_id, |
| 164 scoped_ptr<PresentationSessionMessage> message_request, | 159 scoped_ptr<PresentationSessionMessage> message_request, |
| 165 const SendMessageCallback& send_message_cb) = 0; | 160 const SendMessageCallback& send_message_cb) = 0; |
| 166 }; | 161 }; |
| 167 | 162 |
| 168 } // namespace content | 163 } // namespace content |
| 169 | 164 |
| 170 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 165 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
| OLD | NEW |