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

Side by Side Diff: chrome/browser/media/desktop_streams_registry.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/media/desktop_streams_registry.h" 5 #include "chrome/browser/media/desktop_streams_registry.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/macros.h"
9 #include "base/time/time.h" 10 #include "base/time/time.h"
10 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
11 #include "crypto/random.h" 12 #include "crypto/random.h"
12 13
13 namespace { 14 namespace {
14 15
15 const int kStreamIdLengthBytes = 16; 16 const int kStreamIdLengthBytes = 16;
16 17
17 const int kApprovedStreamTimeToLiveSeconds = 10; 18 const int kApprovedStreamTimeToLiveSeconds = 10;
18 19
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 return result; 82 return result;
82 } 83 }
83 84
84 void DesktopStreamsRegistry::CleanupStream(const std::string& id) { 85 void DesktopStreamsRegistry::CleanupStream(const std::string& id) {
85 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 86 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
86 approved_streams_.erase(id); 87 approved_streams_.erase(id);
87 } 88 }
88 89
89 DesktopStreamsRegistry::ApprovedDesktopMediaStream::ApprovedDesktopMediaStream() 90 DesktopStreamsRegistry::ApprovedDesktopMediaStream::ApprovedDesktopMediaStream()
90 : render_process_id(-1), render_frame_id(-1) {} 91 : render_process_id(-1), render_frame_id(-1) {}
OLDNEW
« no previous file with comments | « chrome/browser/media/desktop_streams_registry.h ('k') | chrome/browser/media/encrypted_media_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698