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

Side by Side Diff: android_webview/browser/aw_resource_context.h

Issue 1987643002: Make default media device ID salts random by default (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 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 ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 explicit AwResourceContext(net::URLRequestContextGetter* getter); 23 explicit AwResourceContext(net::URLRequestContextGetter* getter);
24 ~AwResourceContext() override; 24 ~AwResourceContext() override;
25 25
26 void SetExtraHeaders(const GURL& url, const std::string& headers); 26 void SetExtraHeaders(const GURL& url, const std::string& headers);
27 std::string GetExtraHeaders(const GURL& url); 27 std::string GetExtraHeaders(const GURL& url);
28 28
29 // content::ResourceContext implementation. 29 // content::ResourceContext implementation.
30 net::HostResolver* GetHostResolver() override; 30 net::HostResolver* GetHostResolver() override;
31 net::URLRequestContext* GetRequestContext() override; 31 net::URLRequestContext* GetRequestContext() override;
32 SaltCallback GetMediaDeviceIDSalt() override;
32 33
33 private: 34 private:
34 net::URLRequestContextGetter* getter_; 35 net::URLRequestContextGetter* getter_;
35 36
36 base::Lock extra_headers_lock_; 37 base::Lock extra_headers_lock_;
37 std::map<std::string, std::string> extra_headers_; 38 std::map<std::string, std::string> extra_headers_;
39 std::string media_device_id_salt_;
tommi (sloooow) - chröme 2016/05/17 12:27:19 can this be const?
Guido Urdaneta 2016/05/18 09:40:19 Done.
38 40
39 DISALLOW_COPY_AND_ASSIGN(AwResourceContext); 41 DISALLOW_COPY_AND_ASSIGN(AwResourceContext);
40 }; 42 };
41 43
42 } // namespace android_webview 44 } // namespace android_webview
43 45
44 #endif // ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ 46 #endif // ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_resource_context.cc » ('j') | blimp/engine/common/blimp_browser_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698