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

Side by Side Diff: content/renderer/media/android/renderer_surface_view_manager.cc

Issue 2162273002: Check for a null callback in RendererSurfaceViewManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/renderer/media/android/renderer_surface_view_manager.h" 5 #include "content/renderer/media/android/renderer_surface_view_manager.h"
6 6
7 #include "content/common/media/surface_view_manager_messages_android.h" 7 #include "content/common/media/surface_view_manager_messages_android.h"
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "ui/gfx/geometry/size.h" 9 #include "ui/gfx/geometry/size.h"
10 10
(...skipping 24 matching lines...) Expand all
35 routing_id(), video_natural_size)); 35 routing_id(), video_natural_size));
36 } 36 }
37 37
38 void RendererSurfaceViewManager::NaturalSizeChanged(const gfx::Size& size) { 38 void RendererSurfaceViewManager::NaturalSizeChanged(const gfx::Size& size) {
39 DVLOG(3) << __FUNCTION__ << ": size: " << size.ToString(); 39 DVLOG(3) << __FUNCTION__ << ": size: " << size.ToString();
40 Send(new SurfaceViewManagerHostMsg_NaturalSizeChanged(routing_id(), size)); 40 Send(new SurfaceViewManagerHostMsg_NaturalSizeChanged(routing_id(), size));
41 } 41 }
42 42
43 void RendererSurfaceViewManager::OnFullscreenSurfaceCreated(int surface_id) { 43 void RendererSurfaceViewManager::OnFullscreenSurfaceCreated(int surface_id) {
44 DVLOG(3) << __FUNCTION__ << ": surface_id: " << surface_id; 44 DVLOG(3) << __FUNCTION__ << ": surface_id: " << surface_id;
45 DCHECK(!pending_surface_created_cb_.is_null()); 45 if (!pending_surface_created_cb_.is_null()) {
46 pending_surface_created_cb_.Run(surface_id); 46 pending_surface_created_cb_.Run(surface_id);
47 pending_surface_created_cb_.Reset(); 47 pending_surface_created_cb_.Reset();
48 }
48 } 49 }
49 50
50 void RendererSurfaceViewManager::OnDestruct() { 51 void RendererSurfaceViewManager::OnDestruct() {
51 delete this; 52 delete this;
52 } 53 }
53 54
54 } // namespace content 55 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698