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

Side by Side Diff: content/shell/shell_browser_context.h

Issue 7906008: Create a very simple TabContentsView (and not fully implemented yet) and add more supporting code... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_
6 #define CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "content/browser/browser_context.h"
13
14 class DownloadManager;
15 class DownloadManagerDelegate;
16 class DownloadStatusUpdater;
17 class GeolocationPermissionContext;
18 class HostZoomMap;
19 class SSLHostState;
20
21 namespace content {
22
23 class ResourceContext;
24 class ShellBrowserMainParts;
25
26 class ShellBrowserContext : public BrowserContext {
27 public:
28 explicit ShellBrowserContext(ShellBrowserMainParts* shell_main_parts);
29 virtual ~ShellBrowserContext();
30
31 // BrowserContext implementation.
32 virtual FilePath GetPath() OVERRIDE;
33 virtual bool IsOffTheRecord() OVERRIDE;
34 virtual SSLHostState* GetSSLHostState() OVERRIDE;
35 virtual DownloadManager* GetDownloadManager() OVERRIDE;
36 virtual bool HasCreatedDownloadManager() const OVERRIDE;
37 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
38 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
39 int renderer_child_id) OVERRIDE;
40 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE;
41 virtual const ResourceContext& GetResourceContext() OVERRIDE;
42 virtual HostZoomMap* GetHostZoomMap() OVERRIDE;
43 virtual GeolocationPermissionContext*
44 GetGeolocationPermissionContext() OVERRIDE;
45 virtual bool DidLastSessionExitCleanly() OVERRIDE;
46 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE;
47 virtual WebKitContext* GetWebKitContext() OVERRIDE;
48 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE;
49 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE;
50 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE;
51 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE;
52
53 private:
54 void CreateQuotaManagerAndClients();
55
56 scoped_ptr<ResourceContext> resource_context_;
57 scoped_ptr<SSLHostState> ssl_host_state_;
58 scoped_ptr<DownloadStatusUpdater> download_status_updater_;
59 scoped_ptr<DownloadManagerDelegate> download_manager_delegate_;
60 scoped_refptr<DownloadManager> download_manager_;
61 scoped_refptr<net::URLRequestContextGetter> url_request_getter_;
62 scoped_refptr<HostZoomMap> host_zoom_map_;
63 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
64 scoped_refptr<WebKitContext> webkit_context_;
65 scoped_refptr<ChromeAppCacheService> appcache_service_;
66 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
67 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
68 scoped_refptr<quota::QuotaManager> quota_manager_;
69 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
70
71 ShellBrowserMainParts* shell_main_parts_;
72
73 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
willchan no longer on Chromium 2011/09/15 22:01:28 This is defined in basictypes.h
74 };
75
76 } // namespace content
77
78 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698