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 29 matching lines...) Expand all Loading... | |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 using PresentationSessionSuccessCallback = | 42 using PresentationSessionSuccessCallback = |
| 43 base::Callback<void(const PresentationSessionInfo&)>; | 43 base::Callback<void(const PresentationSessionInfo&)>; |
| 44 using PresentationSessionErrorCallback = | 44 using PresentationSessionErrorCallback = |
| 45 base::Callback<void(const PresentationError&)>; | 45 base::Callback<void(const PresentationError&)>; |
| 46 using PresentationSessionMessageCallback = base::Callback<void( | 46 using PresentationSessionMessageCallback = base::Callback<void( |
| 47 scoped_ptr<ScopedVector<PresentationSessionMessage>>)>; | 47 scoped_ptr<ScopedVector<PresentationSessionMessage>>)>; |
| 48 using SendMessageCallback = base::Closure; | 48 using SendMessageCallback = base::Closure; |
| 49 | 49 |
| 50 typedef std::pair<int, int> RenderFrameHostId; | |
|
mark a. foltz
2015/05/14 22:20:47
using
| |
| 51 | |
| 50 virtual ~PresentationServiceDelegate() {} | 52 virtual ~PresentationServiceDelegate() {} |
| 51 | 53 |
| 52 // Registers an observer associated with frame with |render_process_id| | 54 // Registers an observer associated with frame with |render_process_id| |
| 53 // and |render_frame_id| with this class to listen for updates. | 55 // and |render_frame_id| with this class to listen for updates. |
| 54 // This class does not own the observer. | 56 // This class does not own the observer. |
| 55 // It is an error to add an observer if there is already an observer for that | 57 // It is an error to add an observer if there is already an observer for that |
| 56 // frame. | 58 // frame. |
| 57 virtual void AddObserver(int render_process_id, | 59 virtual void AddObserver(int render_process_id, |
| 58 int render_frame_id, | 60 int render_frame_id, |
| 59 Observer* observer) = 0; | 61 Observer* observer) = 0; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 virtual void SendMessage( | 156 virtual void SendMessage( |
| 155 int render_process_id, | 157 int render_process_id, |
| 156 int render_frame_id, | 158 int render_frame_id, |
| 157 scoped_ptr<PresentationSessionMessage> message_request, | 159 scoped_ptr<PresentationSessionMessage> message_request, |
| 158 const SendMessageCallback& send_message_cb) = 0; | 160 const SendMessageCallback& send_message_cb) = 0; |
| 159 }; | 161 }; |
| 160 | 162 |
| 161 } // namespace content | 163 } // namespace content |
| 162 | 164 |
| 163 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 165 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
| OLD | NEW |