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

Side by Side Diff: chromecast/base/cast_resource.cc

Issue 1531543002: [Chromecast] Adding pause/resume operations to VideoPlaneController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase of Patch Set 8. Created 4 years, 11 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 | « chromecast/base/cast_resource.h ('k') | chromecast/browser/media/cma_media_pipeline_client.h » ('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 #include "chromecast/base/cast_resource.h" 5 #include "chromecast/base/cast_resource.h"
6 6
7 namespace chromecast { 7 namespace chromecast {
8 8
9 void CastResource::SetCastResourceClient(Client* client) { 9 void CastResource::SetCastResourceClient(Client* client) {
10 client_ = client; 10 client_ = client;
11 } 11 }
12 12
13 void CastResource::NotifyResourceAcquired() { 13 void CastResource::RegisterWithClient() {
14 if (client_) 14 if (client_)
15 client_->OnResourceAcquired(this); 15 client_->RegisterCastResource(this);
16 } 16 }
17 17
18 void CastResource::NotifyResourceReleased(Resource remain) { 18 void CastResource::NotifyResourceReleased(Resource remain) {
19 if (client_) 19 if (client_)
20 client_->OnResourceReleased(this, remain); 20 client_->OnResourceReleased(this, remain);
21 } 21 }
22 22
23 } // namespace chromecast 23 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/base/cast_resource.h ('k') | chromecast/browser/media/cma_media_pipeline_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698