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

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

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 2 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/shell/shell_browser_context.cc » ('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) 2011 The Chromium Authors. All rights reserved. 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 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_SHELL_SHELL_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_
6 #define CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ 6 #define CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/browser/browser_context.h" 12 #include "content/browser/browser_context.h"
13 13
14 class DownloadManager; 14 class DownloadManager;
15 class DownloadManagerDelegate; 15 class DownloadManagerDelegate;
16 class DownloadStatusUpdater; 16 class DownloadStatusUpdater;
17 class GeolocationPermissionContext; 17 class GeolocationPermissionContext;
18 class SpeechInputPreferences;
Satish 2011/09/26 16:11:06 this isn't required since you have content/browser
allanwoj 2011/09/26 16:16:03 Done.
18 class HostZoomMap; 19 class HostZoomMap;
19 class SSLHostState; 20 class SSLHostState;
20 21
21 namespace content { 22 namespace content {
22 23
23 class ResourceContext; 24 class ResourceContext;
24 class ShellBrowserMainParts; 25 class ShellBrowserMainParts;
25 26
26 class ShellBrowserContext : public BrowserContext { 27 class ShellBrowserContext : public BrowserContext {
27 public: 28 public:
28 explicit ShellBrowserContext(ShellBrowserMainParts* shell_main_parts); 29 explicit ShellBrowserContext(ShellBrowserMainParts* shell_main_parts);
29 virtual ~ShellBrowserContext(); 30 virtual ~ShellBrowserContext();
30 31
31 // BrowserContext implementation. 32 // BrowserContext implementation.
32 virtual FilePath GetPath() OVERRIDE; 33 virtual FilePath GetPath() OVERRIDE;
33 virtual bool IsOffTheRecord() OVERRIDE; 34 virtual bool IsOffTheRecord() OVERRIDE;
34 virtual SSLHostState* GetSSLHostState() OVERRIDE; 35 virtual SSLHostState* GetSSLHostState() OVERRIDE;
35 virtual DownloadManager* GetDownloadManager() OVERRIDE; 36 virtual DownloadManager* GetDownloadManager() OVERRIDE;
36 virtual bool HasCreatedDownloadManager() const OVERRIDE; 37 virtual bool HasCreatedDownloadManager() const OVERRIDE;
37 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 38 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
38 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 39 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
39 int renderer_child_id) OVERRIDE; 40 int renderer_child_id) OVERRIDE;
40 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; 41 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE;
41 virtual const ResourceContext& GetResourceContext() OVERRIDE; 42 virtual const ResourceContext& GetResourceContext() OVERRIDE;
42 virtual HostZoomMap* GetHostZoomMap() OVERRIDE; 43 virtual HostZoomMap* GetHostZoomMap() OVERRIDE;
43 virtual GeolocationPermissionContext* 44 virtual GeolocationPermissionContext*
44 GetGeolocationPermissionContext() OVERRIDE; 45 GetGeolocationPermissionContext() OVERRIDE;
46 virtual SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE;
45 virtual bool DidLastSessionExitCleanly() OVERRIDE; 47 virtual bool DidLastSessionExitCleanly() OVERRIDE;
46 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; 48 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE;
47 virtual WebKitContext* GetWebKitContext() OVERRIDE; 49 virtual WebKitContext* GetWebKitContext() OVERRIDE;
48 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; 50 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE;
49 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; 51 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE;
50 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; 52 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE;
51 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; 53 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE;
52 54
53 private: 55 private:
54 void CreateQuotaManagerAndClients(); 56 void CreateQuotaManagerAndClients();
55 57
56 scoped_ptr<ResourceContext> resource_context_; 58 scoped_ptr<ResourceContext> resource_context_;
57 scoped_ptr<SSLHostState> ssl_host_state_; 59 scoped_ptr<SSLHostState> ssl_host_state_;
58 scoped_ptr<DownloadStatusUpdater> download_status_updater_; 60 scoped_ptr<DownloadStatusUpdater> download_status_updater_;
59 scoped_ptr<DownloadManagerDelegate> download_manager_delegate_; 61 scoped_ptr<DownloadManagerDelegate> download_manager_delegate_;
60 scoped_refptr<DownloadManager> download_manager_; 62 scoped_refptr<DownloadManager> download_manager_;
61 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; 63 scoped_refptr<net::URLRequestContextGetter> url_request_getter_;
62 scoped_refptr<HostZoomMap> host_zoom_map_; 64 scoped_refptr<HostZoomMap> host_zoom_map_;
63 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 65 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
66 scoped_refptr<SpeechInputPreferences> speech_input_preferences_;
64 scoped_refptr<WebKitContext> webkit_context_; 67 scoped_refptr<WebKitContext> webkit_context_;
65 scoped_refptr<ChromeAppCacheService> appcache_service_; 68 scoped_refptr<ChromeAppCacheService> appcache_service_;
66 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 69 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
67 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 70 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
68 scoped_refptr<quota::QuotaManager> quota_manager_; 71 scoped_refptr<quota::QuotaManager> quota_manager_;
69 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 72 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
70 73
71 ShellBrowserMainParts* shell_main_parts_; 74 ShellBrowserMainParts* shell_main_parts_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 76 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
74 }; 77 };
75 78
76 } // namespace content 79 } // namespace content
77 80
78 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ 81 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698