// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in the // LICENSE file. #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ #define CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ #include "base/file_path.h" #include "base/ref_counted.h" // There's one WebKitContext per profile. Various DispatcherHost classes // have a pointer to the Context to store shared state. class WebKitContext : public base::RefCountedThreadSafe { public: WebKitContext(const FilePath& data_path, bool is_incognito); const FilePath& data_path() const { return data_path_; } bool is_incognito() const { return is_incognito_; } private: friend class base::RefCountedThreadSafe; ~WebKitContext(); FilePath data_path_; bool is_incognito_; DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext); }; #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_