diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 20:46:06 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 20:46:06 +0000 |
commit | 3bf335afc98d4f9e85bb5a3f72974d53cb77ebeb (patch) | |
tree | 876769a0f2b23932c691d25edde4c0074ef87bbe /chrome/browser/in_process_webkit/webkit_context.h | |
parent | 4411c21f13e7da66f3c9d394f40c1f10b6d20782 (diff) | |
download | chromium_src-3bf335afc98d4f9e85bb5a3f72974d53cb77ebeb.zip chromium_src-3bf335afc98d4f9e85bb5a3f72974d53cb77ebeb.tar.gz chromium_src-3bf335afc98d4f9e85bb5a3f72974d53cb77ebeb.tar.bz2 |
Create a webkit thread for use within the browser process. This patch also includes some (soon to be fleshed out in another CL) code to demonstrate how it'll be used in DOM Storage.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/139003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/in_process_webkit/webkit_context.h')
-rw-r--r-- | chrome/browser/in_process_webkit/webkit_context.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/browser/in_process_webkit/webkit_context.h b/chrome/browser/in_process_webkit/webkit_context.h new file mode 100644 index 0000000..2b84224 --- /dev/null +++ b/chrome/browser/in_process_webkit/webkit_context.h @@ -0,0 +1,30 @@ +// 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<WebKitContext> { + 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>; + ~WebKitContext(); + + FilePath data_path_; + bool is_incognito_; + + DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext); +}; + +#endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ |