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

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: rebase 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..4d9cdb0c1107153aaf1e3aa8485b7feb3991db84 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,10 @@ 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.
+ // off_the_record_ is copied from the profile partly so that it can be
+ // read on the IO thread.
bool off_the_record_;
+ base::FilePath profile_directory_;
scoped_refptr<net::URLRequestContextGetter> request_context_;
scoped_refptr<ExtensionInfoMap> extension_info_map_;
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/nacl_host/nacl_host_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698