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

Unified Diff: chrome/browser/nacl_host/nacl_host_message_filter.h

Issue 17826006: Remove dependency of NaClHostMessageFilter code on Profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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: chrome/browser/nacl_host/nacl_host_message_filter.h
diff --git a/chrome/browser/nacl_host/nacl_host_message_filter.h b/chrome/browser/nacl_host/nacl_host_message_filter.h
index 61ffc74c7cd5771c790e04348b60fe01a69952cd..721cecffc241712135c7e5c66a0107033105efea 100644
--- a/chrome/browser/nacl_host/nacl_host_message_filter.h
+++ b/chrome/browser/nacl_host/nacl_host_message_filter.h
@@ -5,12 +5,12 @@
#ifndef CHROME_BROWSER_NACL_HOST_NACL_HOST_MESSAGE_FILTER_H_
#define CHROME_BROWSER_NACL_HOST_NACL_HOST_MESSAGE_FILTER_H_
+#include "base/files/file_path.h"
#include "base/memory/weak_ptr.h"
#include "content/public/browser/browser_message_filter.h"
class ExtensionInfoMap;
class GURL;
-class Profile;
namespace nacl {
struct NaClLaunchParams;
@@ -26,7 +26,9 @@ class URLRequestContextGetter;
class NaClHostMessageFilter : public content::BrowserMessageFilter {
public:
NaClHostMessageFilter(int render_process_id,
- Profile* profile,
+ bool is_off_the_record,
+ const base::FilePath& profile_directory,
+ ExtensionInfoMap* extension_info_map,
net::URLRequestContextGetter* request_context);
// content::BrowserMessageFilter methods:
@@ -56,11 +58,9 @@ class NaClHostMessageFilter : public content::BrowserMessageFilter {
#endif
int render_process_id_;
- // The Profile associated with our renderer process. This should only be
- // accessed on the UI thread!
- Profile* profile_;
- // Copied from the profile so that it can be read on the IO thread.
+ // Copied from the profile and it can be read on the IO thread.
Mark Seaborn 2013/06/26 14:45:34 It's unclear whether this comment applies to one m
bool off_the_record_;
+ base::FilePath profile_directory_;
scoped_refptr<net::URLRequestContextGetter> request_context_;
scoped_refptr<ExtensionInfoMap> extension_info_map_;

Powered by Google App Engine
This is Rietveld 408576698