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

Side by Side Diff: chrome/browser/media/media_device_id_salt.h

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 #ifndef CHROME_BROWSER_MEDIA_MEDIA_DEVICE_ID_SALT_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_DEVICE_ID_SALT_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_DEVICE_ID_SALT_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_DEVICE_ID_SALT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/prefs/pref_member.h" 12 #include "base/prefs/pref_member.h"
12 #include "components/pref_registry/pref_registry_syncable.h" 13 #include "components/pref_registry/pref_registry_syncable.h"
13 14
14 class PrefService; 15 class PrefService;
15 16
16 // MediaDeviceIDSalt is responsible for creating and retrieving a salt string 17 // MediaDeviceIDSalt is responsible for creating and retrieving a salt string
17 // that is used for creating MediaSource IDs that can be cached by a web 18 // that is used for creating MediaSource IDs that can be cached by a web
18 // service. If the cache is cleared, the MediaSourceIds are invalidated. 19 // service. If the cache is cleared, the MediaSourceIds are invalidated.
19 // 20 //
(...skipping 15 matching lines...) Expand all
35 36
36 // |incognito_salt_| is initialized in ctor on UI thread but only read 37 // |incognito_salt_| is initialized in ctor on UI thread but only read
37 // on the IO thread. 38 // on the IO thread.
38 std::string incognito_salt_; 39 std::string incognito_salt_;
39 mutable StringPrefMember media_device_id_salt_; 40 mutable StringPrefMember media_device_id_salt_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(MediaDeviceIDSalt); 42 DISALLOW_COPY_AND_ASSIGN(MediaDeviceIDSalt);
42 }; 43 };
43 44
44 #endif // CHROME_BROWSER_MEDIA_MEDIA_DEVICE_ID_SALT_H_ 45 #endif // CHROME_BROWSER_MEDIA_MEDIA_DEVICE_ID_SALT_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/media_capture_devices_dispatcher.cc ('k') | chrome/browser/media/media_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698