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

Side by Side Diff: content/public/browser/browser_context.h

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/dom_storage_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 14 matching lines...) Expand all
25 namespace quota { 25 namespace quota {
26 class QuotaManager; 26 class QuotaManager;
27 class SpecialStoragePolicy; 27 class SpecialStoragePolicy;
28 } 28 }
29 29
30 namespace webkit_database { 30 namespace webkit_database {
31 class DatabaseTracker; 31 class DatabaseTracker;
32 } 32 }
33 33
34 class FilePath; 34 class FilePath;
35 class WebKitContext;
36 35
37 namespace content { 36 namespace content {
38 37
38 class DOMStorageContext;
39 class DownloadManager; 39 class DownloadManager;
40 class GeolocationPermissionContext; 40 class GeolocationPermissionContext;
41 class IndexedDBContext;
41 class ResourceContext; 42 class ResourceContext;
42 class SpeechInputPreferences; 43 class SpeechInputPreferences;
43 44
44 // This class holds the context needed for a browsing session. 45 // This class holds the context needed for a browsing session.
45 // It lives on the UI thread. 46 // It lives on the UI thread.
46 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { 47 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
47 public: 48 public:
48 // Getter for the QuotaManager associated with the given BrowserContext.
49 static quota::QuotaManager* GetQuotaManager(BrowserContext* browser_context); 49 static quota::QuotaManager* GetQuotaManager(BrowserContext* browser_context);
50 static WebKitContext* GetWebKitContext(BrowserContext* browser_context); 50 static DOMStorageContext* GetDOMStorageContext(
51 BrowserContext* browser_context);
52 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context);
51 static webkit_database::DatabaseTracker* GetDatabaseTracker( 53 static webkit_database::DatabaseTracker* GetDatabaseTracker(
52 BrowserContext* browser_context); 54 BrowserContext* browser_context);
53 static appcache::AppCacheService* GetAppCacheService( 55 static appcache::AppCacheService* GetAppCacheService(
54 BrowserContext* browser_context); 56 BrowserContext* browser_context);
55 static fileapi::FileSystemContext* GetFileSystemContext( 57 static fileapi::FileSystemContext* GetFileSystemContext(
56 BrowserContext* browser_context); 58 BrowserContext* browser_context);
57 59
58 // Ensures that the corresponding ResourceContext is initialized. Normally the 60 // Ensures that the corresponding ResourceContext is initialized. Normally the
59 // BrowserContext initializs the corresponding getters when its objects are 61 // BrowserContext initializs the corresponding getters when its objects are
60 // created, but if the embedder wants to pass the ResourceContext to another 62 // created, but if the embedder wants to pass the ResourceContext to another
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 struct hash<content::BrowserContext*> { 131 struct hash<content::BrowserContext*> {
130 std::size_t operator()(content::BrowserContext* const& p) const { 132 std::size_t operator()(content::BrowserContext* const& p) const {
131 return reinterpret_cast<std::size_t>(p); 133 return reinterpret_cast<std::size_t>(p);
132 } 134 }
133 }; 135 };
134 136
135 } // namespace BASE_HASH_NAMESPACE 137 } // namespace BASE_HASH_NAMESPACE
136 #endif 138 #endif
137 139
138 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 140 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/dom_storage_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698