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

Unified Diff: chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h

Issue 1703733002: Store device salt callback instead of resource context in WebRTC Audio Private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
diff --git a/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h b/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
index 439456522d19b57484b6c0cf01c7f211d236c300..20370e5cd9fbac67bffbe8a6b8f4a602497396fe 100644
--- a/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
+++ b/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
@@ -13,14 +13,11 @@
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/common/extensions/api/webrtc_audio_private.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/resource_context.h"
#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "media/audio/audio_device_name.h"
#include "url/gurl.h"
-namespace content {
-class ResourceContext;
-}
-
namespace extensions {
// Listens for device changes and forwards as an extension event.
@@ -94,16 +91,16 @@ class WebrtcAudioPrivateFunction : public ChromeAsyncExtensionFunction {
// Call only on IO thread.
std::string CalculateHMACImpl(const std::string& raw_id);
- // Initializes |resource_context_|. Must be called on the UI thread,
- // before any calls to |resource_context()|.
- void InitResourceContext();
+ // Initializes |device_id_salt_|. Must be called on the UI thread,
+ // before any calls to |device_id_salt()|.
+ void InitDeviceIDSalt();
// Callable from any thread. Must previously have called
- // |InitResourceContext()|.
- content::ResourceContext* resource_context() const;
+ // |InitDeviceIDSalt()|.
+ const content::ResourceContext::SaltCallback& device_id_salt() const;
private:
- content::ResourceContext* resource_context_;
+ content::ResourceContext::SaltCallback device_id_salt_;
DISALLOW_COPY_AND_ASSIGN(WebrtcAudioPrivateFunction);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698