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

Unified Diff: content/public/browser/resource_context.h

Issue 2820163002: Move MediaDeviceIDSalt from ProfileIOData to ProfileImpl. (Closed)
Patch Set: merge Created 3 years, 8 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
Index: content/public/browser/resource_context.h
diff --git a/content/public/browser/resource_context.h b/content/public/browser/resource_context.h
index 602f935372b3ec7af81dcd338c0b749f1f224258..44b829b8b61efb2d1eaf39060e4cc6ed5043e6a1 100644
--- a/content/public/browser/resource_context.h
+++ b/content/public/browser/resource_context.h
@@ -5,14 +5,7 @@
#ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
#define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
-#include <stdint.h>
-
-#include <memory>
-#include <string>
-
-#include "base/callback.h"
#include "base/supports_user_data.h"
-#include "build/build_config.h"
#include "content/common/content_export.h"
namespace net {
@@ -25,6 +18,7 @@ namespace content {
// ResourceContext contains the relevant context information required for
// resource loading. It lives on the IO thread, although it is constructed on
// the UI thread. It must be destructed on the IO thread.
+// TODO(mmenke): Get rid of this class.
class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
public:
ResourceContext();
@@ -35,18 +29,6 @@ class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
// storage partitioning. This getter returns the default context associated
// with a BrowsingContext.
virtual net::URLRequestContext* GetRequestContext() = 0;
-
- // Returns a random salt string that is used for creating media device IDs.
- // Returns a random string by default.
- virtual std::string GetMediaDeviceIDSalt();
-
- // Utility function useful for embedders. Only needs to be called if
- // 1) The embedder needs to use a new salt, and
- // 2) The embedder saves its salt across restarts.
- static std::string CreateRandomMediaDeviceIDSalt();
-
- private:
- const std::string media_device_id_salt_;
};
} // namespace content
« no previous file with comments | « content/public/browser/browser_context.h ('k') | extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698