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

Unified Diff: android_webview/browser/aw_resource_context.h

Issue 1981913002: *DRAFT* Move MediaDeviceIDSalt from chrome/ to components/ and use it in Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/aw_resource_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_resource_context.h
diff --git a/android_webview/browser/aw_resource_context.h b/android_webview/browser/aw_resource_context.h
index 20857c728d0488b275372e0e4cebdbb5e934b311..3e56730589cced3ef3c3a9e7c270661e625c7a0b 100644
--- a/android_webview/browser/aw_resource_context.h
+++ b/android_webview/browser/aw_resource_context.h
@@ -12,15 +12,23 @@
#include "base/synchronization/lock.h"
#include "content/public/browser/resource_context.h"
+class PrefService;
+
namespace net {
class URLRequestContextGetter;
}
+namespace media_device_id_salt {
+class MediaDeviceIDSalt;
+}
+
namespace android_webview {
class AwResourceContext : public content::ResourceContext {
public:
- explicit AwResourceContext(net::URLRequestContextGetter* getter);
+ AwResourceContext(net::URLRequestContextGetter* getter,
+ PrefService* pref_service,
+ bool incognito);
~AwResourceContext() override;
void SetExtraHeaders(const GURL& url, const std::string& headers);
@@ -29,12 +37,14 @@ class AwResourceContext : public content::ResourceContext {
// content::ResourceContext implementation.
net::HostResolver* GetHostResolver() override;
net::URLRequestContext* GetRequestContext() override;
+ SaltCallback GetMediaDeviceIDSalt() override;
private:
net::URLRequestContextGetter* getter_;
base::Lock extra_headers_lock_;
std::map<std::string, std::string> extra_headers_;
+ scoped_refptr<media_device_id_salt::MediaDeviceIDSalt> media_device_id_salt_;
DISALLOW_COPY_AND_ASSIGN(AwResourceContext);
};
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/aw_resource_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698