| OLD | NEW |
| 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_BROWSER_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_CONTEXT_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_CONTEXT_H_ | 6 #define CONTENT_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 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // This doesn't belong here; http://crbug.com/89628 | 51 // This doesn't belong here; http://crbug.com/89628 |
| 52 virtual bool IsOffTheRecord() = 0; | 52 virtual bool IsOffTheRecord() = 0; |
| 53 | 53 |
| 54 // Retrieves a pointer to the SSLHostState associated with this context. | 54 // Retrieves a pointer to the SSLHostState associated with this context. |
| 55 // The SSLHostState is lazily created the first time that this method is | 55 // The SSLHostState is lazily created the first time that this method is |
| 56 // called. | 56 // called. |
| 57 virtual SSLHostState* GetSSLHostState() = 0; | 57 virtual SSLHostState* GetSSLHostState() = 0; |
| 58 | 58 |
| 59 // Returns the DownloadManager associated with this context. | 59 // Returns the DownloadManager associated with this context. |
| 60 virtual DownloadManager* GetDownloadManager() = 0; | 60 virtual DownloadManager* GetDownloadManager() = 0; |
| 61 virtual bool HasCreatedDownloadManager() const = 0; | |
| 62 | 61 |
| 63 // Returns the request context information associated with this context. Call | 62 // Returns the request context information associated with this context. Call |
| 64 // this only on the UI thread, since it can send notifications that should | 63 // this only on the UI thread, since it can send notifications that should |
| 65 // happen on the UI thread. | 64 // happen on the UI thread. |
| 66 virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 65 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
| 67 | 66 |
| 68 // Returns the request context appropriate for the given renderer. If the | 67 // Returns the request context appropriate for the given renderer. If the |
| 69 // renderer process doesn't have an associated installed app, or if the | 68 // renderer process doesn't have an associated installed app, or if the |
| 70 // installed app's is_storage_isolated() returns false, this is equivalent to | 69 // installed app's is_storage_isolated() returns false, this is equivalent to |
| 71 // calling GetRequestContext(). | 70 // calling GetRequestContext(). |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 struct hash<content::BrowserContext*> { | 113 struct hash<content::BrowserContext*> { |
| 115 std::size_t operator()(content::BrowserContext* const& p) const { | 114 std::size_t operator()(content::BrowserContext* const& p) const { |
| 116 return reinterpret_cast<std::size_t>(p); | 115 return reinterpret_cast<std::size_t>(p); |
| 117 } | 116 } |
| 118 }; | 117 }; |
| 119 | 118 |
| 120 } // namespace __gnu_cxx | 119 } // namespace __gnu_cxx |
| 121 #endif | 120 #endif |
| 122 | 121 |
| 123 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ | 122 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ |
| OLD | NEW |