Index: content/browser/service_worker/service_worker_context_wrapper.h |
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h |
index 18e81b51c40454d1cd94ff9847e2f9720fb5b554..7d5436c60fd22df035e53cf4c527d34de1709e4f 100644 |
--- a/content/browser/service_worker/service_worker_context_wrapper.h |
+++ b/content/browser/service_worker/service_worker_context_wrapper.h |
@@ -72,6 +72,8 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper |
void AddObserver(ServiceWorkerContextObserver* observer); |
void RemoveObserver(ServiceWorkerContextObserver* observer); |
+ bool is_incognito() const { return is_incognito_; } |
+ |
private: |
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; |
friend class EmbeddedWorkerTestHelper; |
@@ -91,6 +93,9 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper |
const scoped_ptr<ServiceWorkerProcessManager> process_manager_; |
// Cleared in Shutdown(): |
scoped_ptr<ServiceWorkerContextCore> context_core_; |
+ |
+ // Initialized in Init(); true of the user data directory is empty. |
+ bool is_incognito_; |
}; |
} // namespace content |