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

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

Issue 1149293008: [MediaRouter] Adds GetPresentationServiceDelegate impl to ChromeContentBrowserClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 28 matching lines...) Expand all
39 // Router to handle presentation API calls forwarded from 39 // Router to handle presentation API calls forwarded from
40 // PresentationServiceImpl. In addition, it also 40 // PresentationServiceImpl. In addition, it also
41 // provides default presentation URL that is required for creating 41 // provides default presentation URL that is required for creating
42 // browser-initiated sessions. 42 // browser-initiated sessions.
43 // It is scoped to the lifetime of a WebContents, and is managed by the 43 // It is scoped to the lifetime of a WebContents, and is managed by the
44 // associated WebContents. 44 // associated WebContents.
45 class PresentationServiceDelegateImpl 45 class PresentationServiceDelegateImpl
46 : public content::WebContentsUserData<PresentationServiceDelegateImpl>, 46 : public content::WebContentsUserData<PresentationServiceDelegateImpl>,
47 public content::PresentationServiceDelegate { 47 public content::PresentationServiceDelegate {
48 public: 48 public:
49 static PresentationServiceDelegateImpl* GetOrCreateForWebContents(
imcheng (use chromium acct) 2015/06/04 18:48:36 Documentation would be good here.
haibinlu 2015/06/04 20:25:45 Done.
50 content::WebContents* web_contents);
51
49 ~PresentationServiceDelegateImpl() override; 52 ~PresentationServiceDelegateImpl() override;
50 53
51 // content::PresentationServiceDelegate implementation. 54 // content::PresentationServiceDelegate implementation.
52 void AddObserver( 55 void AddObserver(
53 int render_process_id, 56 int render_process_id,
54 int render_frame_id, 57 int render_frame_id,
55 content::PresentationServiceDelegate::Observer* observer) override; 58 content::PresentationServiceDelegate::Observer* observer) override;
56 void RemoveObserver(int render_process_id, int render_frame_id) override; 59 void RemoveObserver(int render_process_id, int render_frame_id) override;
57 bool AddScreenAvailabilityListener( 60 bool AddScreenAvailabilityListener(
58 int render_process_id, 61 int render_process_id,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 scoped_ptr<PresentationFrameManager> frame_manager_; 166 scoped_ptr<PresentationFrameManager> frame_manager_;
164 167
165 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; 168 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_;
166 169
167 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); 170 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl);
168 }; 171 };
169 172
170 } // namespace media_router 173 } // namespace media_router
171 174
172 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 175 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698