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

Unified Diff: chrome/browser/worker_host/worker_process_host.h

Issue 441022: Changed shared worker code so incognito windows do not have access to non-incognito shared workers. (Closed)
Patch Set: Removed superfluous valgrind change. Created 11 years, 1 month 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/worker_host/worker_process_host.h
diff --git a/chrome/browser/worker_host/worker_process_host.h b/chrome/browser/worker_host/worker_process_host.h
index ad4150b22a24e7086d725740ca5b5e61a3da4145..dad567564d63f0ab450cac792839c5771eaefb22 100644
--- a/chrome/browser/worker_host/worker_process_host.h
+++ b/chrome/browser/worker_host/worker_process_host.h
@@ -21,6 +21,7 @@ class WorkerProcessHost : public ChildProcessHost {
public:
WorkerInstance(const GURL& url,
bool is_shared,
+ bool is_off_the_record,
const string16& name,
int renderer_id,
int render_view_route_id,
@@ -41,7 +42,8 @@ class WorkerProcessHost : public ChildProcessHost {
// Checks if this WorkerInstance matches the passed url/name params
// (per the comparison algorithm in the WebWorkers spec). This API only
// applies to shared workers.
- bool Matches(const GURL& url, const string16& name) const;
+ bool Matches(
+ const GURL& url, const string16& name, bool off_the_record) const;
// Adds a document to a shared worker's document set.
void AddToDocumentSet(IPC::Message::Sender* parent,
@@ -70,6 +72,7 @@ class WorkerProcessHost : public ChildProcessHost {
// Accessors
bool is_shared() const { return shared_; }
+ bool is_off_the_record() const { return off_the_record_; }
jam 2009/11/25 23:30:46 nit: I should have mentioned this last time, but s
bool is_closed() const { return closed_; }
void set_closed(bool closed) { closed_ = closed; }
const GURL& url() const { return url_; }
@@ -86,6 +89,7 @@ class WorkerProcessHost : public ChildProcessHost {
typedef std::list<SenderInfo> SenderList;
GURL url_;
bool shared_;
+ bool off_the_record_;
bool closed_;
string16 name_;
int renderer_id_;

Powered by Google App Engine
This is Rietveld 408576698