| 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 ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_download_manager_delegate.h" | 10 #include "android_webview/browser/aw_download_manager_delegate.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void InitializeBeforeThreadCreation(); | 52 void InitializeBeforeThreadCreation(); |
| 53 | 53 |
| 54 // Maps to BrowserMainParts::PreMainMessageLoopRun. | 54 // Maps to BrowserMainParts::PreMainMessageLoopRun. |
| 55 void PreMainMessageLoopRun(); | 55 void PreMainMessageLoopRun(); |
| 56 | 56 |
| 57 // These methods map to Add methods in components::VisitedLinkMaster. | 57 // These methods map to Add methods in components::VisitedLinkMaster. |
| 58 void AddVisitedURLs(const std::vector<GURL>& urls); | 58 void AddVisitedURLs(const std::vector<GURL>& urls); |
| 59 | 59 |
| 60 net::URLRequestContextGetter* CreateRequestContext( | 60 net::URLRequestContextGetter* CreateRequestContext( |
| 61 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 61 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 62 blob_protocol_handler, | |
| 63 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 64 file_system_protocol_handler, | |
| 65 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 66 developer_protocol_handler, | 62 developer_protocol_handler, |
| 67 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 63 content::ProtocolHandlerMap* protocol_handlers); |
| 68 chrome_protocol_handler, | |
| 69 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 70 chrome_devtools_protocol_handler); | |
| 71 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 64 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 72 const base::FilePath& partition_path, | 65 const base::FilePath& partition_path, |
| 73 bool in_memory, | 66 bool in_memory, |
| 74 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 67 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 75 blob_protocol_handler, | |
| 76 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 77 file_system_protocol_handler, | |
| 78 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 79 developer_protocol_handler, | 68 developer_protocol_handler, |
| 80 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 69 content::ProtocolHandlerMap* protocol_handlers); |
| 81 chrome_protocol_handler, | |
| 82 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 83 chrome_devtools_protocol_handler); | |
| 84 | 70 |
| 85 AwQuotaManagerBridge* GetQuotaManagerBridge(); | 71 AwQuotaManagerBridge* GetQuotaManagerBridge(); |
| 86 | 72 |
| 87 // content::BrowserContext implementation. | 73 // content::BrowserContext implementation. |
| 88 virtual base::FilePath GetPath() OVERRIDE; | 74 virtual base::FilePath GetPath() OVERRIDE; |
| 89 virtual bool IsOffTheRecord() const OVERRIDE; | 75 virtual bool IsOffTheRecord() const OVERRIDE; |
| 90 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 76 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 91 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 77 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 92 int renderer_child_id) OVERRIDE; | 78 int renderer_child_id) OVERRIDE; |
| 93 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 79 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 123 | 109 |
| 124 scoped_ptr<components::VisitedLinkMaster> visitedlink_master_; | 110 scoped_ptr<components::VisitedLinkMaster> visitedlink_master_; |
| 125 scoped_ptr<content::ResourceContext> resource_context_; | 111 scoped_ptr<content::ResourceContext> resource_context_; |
| 126 | 112 |
| 127 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 113 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
| 128 }; | 114 }; |
| 129 | 115 |
| 130 } // namespace android_webview | 116 } // namespace android_webview |
| 131 | 117 |
| 132 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 118 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| OLD | NEW |