diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 03:57:42 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 03:57:42 +0000 |
commit | 314c3e2d86a4595db7b1ab02b2acd4decf21d65f (patch) | |
tree | 593431d4dad2fa3c944d8e8f97da3f6fc56140f6 /content/browser/resource_context_impl.h | |
parent | c537090136d23d0064488c27de3bb2ba0f1ac120 (diff) | |
download | chromium_src-314c3e2d86a4595db7b1ab02b2acd4decf21d65f.zip chromium_src-314c3e2d86a4595db7b1ab02b2acd4decf21d65f.tar.gz chromium_src-314c3e2d86a4595db7b1ab02b2acd4decf21d65f.tar.bz2 |
Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't used by chrome, so they can be hidden from chrome. The rest were accessed by chrome, but we don't need every embedder to store this data on their ResourceContext implementation. Instead have content associate the data itself to simplify the work for embedders.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9425026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/resource_context_impl.h')
-rw-r--r-- | content/browser/resource_context_impl.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/content/browser/resource_context_impl.h b/content/browser/resource_context_impl.h new file mode 100644 index 0000000..ba06635 --- /dev/null +++ b/content/browser/resource_context_impl.h @@ -0,0 +1,36 @@ +// Copyright (c) 2012 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 CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ +#define CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ + +#include "content/public/browser/resource_context.h" + +class ChromeBlobStorageContext; +class WebKitContext; + +namespace webkit_database { +class DatabaseTracker; +} + +namespace content { + +class BrowserContext; + +// Getters for objects that are part of BrowserContext which are also used on +// the IO thread. These are only accessed by content so they're not on the +// public API. +webkit_database::DatabaseTracker* GetDatabaseTrackerForResourceContext( + ResourceContext* resource_context); +WebKitContext* GetWebKitContextForResourceContext( + ResourceContext* resource_context); +ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( + ResourceContext* resource_context); + +// Initialize the above data on the ResourceContext from a given BrowserContext. +void InitializeResourceContext(BrowserContext* browser_context); + +} // namespace content + +#endif // CONTENT_BROWSER_RESOURCE_CONTEXT_IMPL_H_ |