Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: chrome/browser/media/router/presentation_service_delegate_impl.h

Issue 2174693004: [Presentation API] Add support to content/ for multiple URLs per PresentationRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/media/router/presentation_service_delegate_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector>
12 13
13 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
14 #include "base/macros.h" 15 #include "base/macros.h"
15 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
16 #include "base/observer_list.h" 17 #include "base/observer_list.h"
17 #include "chrome/browser/media/router/media_router.h" 18 #include "chrome/browser/media/router/media_router.h"
18 #include "chrome/browser/media/router/media_source.h" 19 #include "chrome/browser/media/router/media_source.h"
19 #include "chrome/browser/media/router/presentation_request.h" 20 #include "chrome/browser/media/router/presentation_request.h"
20 #include "chrome/browser/media/router/render_frame_host_id.h" 21 #include "chrome/browser/media/router/render_frame_host_id.h"
21 #include "content/public/browser/presentation_service_delegate.h" 22 #include "content/public/browser/presentation_service_delegate.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void RemoveObserver(int render_process_id, int render_frame_id) override; 83 void RemoveObserver(int render_process_id, int render_frame_id) override;
83 bool AddScreenAvailabilityListener( 84 bool AddScreenAvailabilityListener(
84 int render_process_id, 85 int render_process_id,
85 int render_frame_id, 86 int render_frame_id,
86 content::PresentationScreenAvailabilityListener* listener) override; 87 content::PresentationScreenAvailabilityListener* listener) override;
87 void RemoveScreenAvailabilityListener( 88 void RemoveScreenAvailabilityListener(
88 int render_process_id, 89 int render_process_id,
89 int render_frame_id, 90 int render_frame_id,
90 content::PresentationScreenAvailabilityListener* listener) override; 91 content::PresentationScreenAvailabilityListener* listener) override;
91 void Reset(int render_process_id, int render_frame_id) override; 92 void Reset(int render_process_id, int render_frame_id) override;
92 void SetDefaultPresentationUrl( 93 void SetDefaultPresentationUrls(
93 int render_process_id, 94 int render_process_id,
94 int render_frame_id, 95 int render_frame_id,
95 const std::string& default_presentation_url, 96 const std::vector<std::string>& default_presentation_urls,
96 const content::PresentationSessionStartedCallback& callback) override; 97 const content::PresentationSessionStartedCallback& callback) override;
97 void StartSession( 98 void StartSession(
98 int render_process_id, 99 int render_process_id,
99 int render_frame_id, 100 int render_frame_id,
100 const std::string& presentation_url, 101 const std::vector<std::string>& presentation_urls,
101 const content::PresentationSessionStartedCallback& success_cb, 102 const content::PresentationSessionStartedCallback& success_cb,
102 const content::PresentationSessionErrorCallback& error_cb) override; 103 const content::PresentationSessionErrorCallback& error_cb) override;
103 void JoinSession( 104 void JoinSession(
104 int render_process_id, 105 int render_process_id,
105 int render_frame_id, 106 int render_frame_id,
106 const std::string& presentation_url, 107 const std::vector<std::string>& presentation_urls,
107 const std::string& presentation_id, 108 const std::string& presentation_id,
108 const content::PresentationSessionStartedCallback& success_cb, 109 const content::PresentationSessionStartedCallback& success_cb,
109 const content::PresentationSessionErrorCallback& error_cb) override; 110 const content::PresentationSessionErrorCallback& error_cb) override;
110 void CloseConnection(int render_process_id, 111 void CloseConnection(int render_process_id,
111 int render_frame_id, 112 int render_frame_id,
112 const std::string& presentation_id) override; 113 const std::string& presentation_id) override;
113 void Terminate(int render_process_id, 114 void Terminate(int render_process_id,
114 int render_frame_id, 115 int render_frame_id,
115 const std::string& presentation_id) override; 116 const std::string& presentation_id) override;
116 void ListenForSessionMessages( 117 void ListenForSessionMessages(
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 std::unique_ptr<PresentationFrameManager> frame_manager_; 205 std::unique_ptr<PresentationFrameManager> frame_manager_;
205 206
206 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; 207 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_;
207 208
208 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); 209 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl);
209 }; 210 };
210 211
211 } // namespace media_router 212 } // namespace media_router
212 213
213 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 214 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/router/presentation_service_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698