| OLD | NEW |
| 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 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class SpecialStoragePolicy; | 32 class SpecialStoragePolicy; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace content { | 35 namespace content { |
| 36 | 36 |
| 37 class BlobHandle; | 37 class BlobHandle; |
| 38 class BrowserPluginGuestManager; | 38 class BrowserPluginGuestManager; |
| 39 class DownloadManager; | 39 class DownloadManager; |
| 40 class DownloadManagerDelegate; | 40 class DownloadManagerDelegate; |
| 41 class IndexedDBContext; | 41 class IndexedDBContext; |
| 42 class PermissionManager; |
| 42 class PushMessagingService; | 43 class PushMessagingService; |
| 43 class ResourceContext; | 44 class ResourceContext; |
| 44 class SiteInstance; | 45 class SiteInstance; |
| 45 class StoragePartition; | 46 class StoragePartition; |
| 46 class SSLHostStateDelegate; | 47 class SSLHostStateDelegate; |
| 47 | 48 |
| 48 // This class holds the context needed for a browsing session. | 49 // This class holds the context needed for a browsing session. |
| 49 // It lives on the UI thread. All these methods must only be called on the UI | 50 // It lives on the UI thread. All these methods must only be called on the UI |
| 50 // thread. | 51 // thread. |
| 51 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { | 52 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0; | 175 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0; |
| 175 | 176 |
| 176 // Returns a push messaging service. The embedder owns the service, and is | 177 // Returns a push messaging service. The embedder owns the service, and is |
| 177 // responsible for ensuring that it outlives RenderProcessHost. It's valid to | 178 // responsible for ensuring that it outlives RenderProcessHost. It's valid to |
| 178 // return nullptr. | 179 // return nullptr. |
| 179 virtual PushMessagingService* GetPushMessagingService() = 0; | 180 virtual PushMessagingService* GetPushMessagingService() = 0; |
| 180 | 181 |
| 181 // Returns the SSL host state decisions for this context. The context may | 182 // Returns the SSL host state decisions for this context. The context may |
| 182 // return nullptr, implementing the default exception storage strategy. | 183 // return nullptr, implementing the default exception storage strategy. |
| 183 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0; | 184 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0; |
| 185 |
| 186 // Returns the PermissionManager associated with that context if any, nullptr |
| 187 // otherwise. |
| 188 virtual PermissionManager* GetPermissionManager() = 0; |
| 184 }; | 189 }; |
| 185 | 190 |
| 186 } // namespace content | 191 } // namespace content |
| 187 | 192 |
| 188 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 193 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
| OLD | NEW |