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

Side by Side Diff: content/renderer/media/media_stream_dispatcher.cc

Issue 18868005: content: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/media_stream_dispatcher.h" 5 #include "content/renderer/media/media_stream_dispatcher.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "content/common/media/media_stream_messages.h" 9 #include "content/common/media/media_stream_messages.h"
10 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h" 10 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h"
11 #include "content/renderer/render_thread_impl.h" 11 #include "content/renderer/render_thread_impl.h"
12 #include "content/renderer/render_view_impl.h" 12 #include "content/renderer/render_view_impl.h"
13 #include "googleurl/src/gurl.h" 13 #include "url/gurl.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 // A request is identified by pair (request_id, handler), or ipc_request. 17 // A request is identified by pair (request_id, handler), or ipc_request.
18 // There could be multiple clients making requests and each has its own 18 // There could be multiple clients making requests and each has its own
19 // request_id sequence. 19 // request_id sequence.
20 // The ipc_request is garanteed to be unique when it's created in 20 // The ipc_request is garanteed to be unique when it's created in
21 // MediaStreamDispatcher. 21 // MediaStreamDispatcher.
22 struct MediaStreamDispatcher::Request { 22 struct MediaStreamDispatcher::Request {
23 Request(const base::WeakPtr<MediaStreamDispatcherEventHandler>& handler, 23 Request(const base::WeakPtr<MediaStreamDispatcherEventHandler>& handler,
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 int index) { 419 int index) {
420 LabelStreamMap::iterator it = label_stream_map_.find(label); 420 LabelStreamMap::iterator it = label_stream_map_.find(label);
421 if (it == label_stream_map_.end()) 421 if (it == label_stream_map_.end())
422 return StreamDeviceInfo::kNoId; 422 return StreamDeviceInfo::kNoId;
423 423
424 DCHECK_GT(it->second.video_array.size(), static_cast<size_t>(index)); 424 DCHECK_GT(it->second.video_array.size(), static_cast<size_t>(index));
425 return it->second.video_array[index].session_id; 425 return it->second.video_array[index].session_id;
426 } 426 }
427 427
428 } // namespace content 428 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698