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

Side by Side Diff: android_webview/browser/aw_browser_context.h

Issue 831523004: Enable posting a message from JS to Android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component builds Created 5 years, 11 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
OLDNEW
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"
11 #include "android_webview/browser/aw_message_port_service.h"
11 #include "android_webview/browser/aw_ssl_host_state_delegate.h" 12 #include "android_webview/browser/aw_ssl_host_state_delegate.h"
12 #include "base/basictypes.h" 13 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
14 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
15 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
17 #include "components/visitedlink/browser/visitedlink_delegate.h" 18 #include "components/visitedlink/browser/visitedlink_delegate.h"
18 #include "content/public/browser/browser_context.h" 19 #include "content/public/browser/browser_context.h"
19 #include "content/public/browser/content_browser_client.h" 20 #include "content/public/browser/content_browser_client.h"
20 #include "net/url_request/url_request_job_factory.h" 21 #include "net/url_request/url_request_job_factory.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 data_reduction_proxy::DataReductionProxyEventStore* 95 data_reduction_proxy::DataReductionProxyEventStore*
95 GetDataReductionProxyEventStore(); 96 GetDataReductionProxyEventStore();
96 97
97 data_reduction_proxy::DataReductionProxyConfigurator* 98 data_reduction_proxy::DataReductionProxyConfigurator*
98 GetDataReductionProxyConfigurator(); 99 GetDataReductionProxyConfigurator();
99 100
100 AwURLRequestContextGetter* GetAwURLRequestContext(); 101 AwURLRequestContextGetter* GetAwURLRequestContext();
101 102
102 void CreateUserPrefServiceIfNecessary(); 103 void CreateUserPrefServiceIfNecessary();
103 104
105 AwMessagePortService* GetMessagePortService();
106
104 // content::BrowserContext implementation. 107 // content::BrowserContext implementation.
105 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( 108 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
106 const base::FilePath& partition_path) override; 109 const base::FilePath& partition_path) override;
107 virtual base::FilePath GetPath() const override; 110 virtual base::FilePath GetPath() const override;
108 virtual bool IsOffTheRecord() const override; 111 virtual bool IsOffTheRecord() const override;
109 virtual net::URLRequestContextGetter* GetRequestContext() override; 112 virtual net::URLRequestContextGetter* GetRequestContext() override;
110 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 113 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
111 int renderer_child_id) override; 114 int renderer_child_id) override;
112 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; 115 virtual net::URLRequestContextGetter* GetMediaRequestContext() override;
113 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 116 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
(...skipping 22 matching lines...) Expand all
136 static int legacy_cache_removal_delay_ms_; 139 static int legacy_cache_removal_delay_ms_;
137 140
138 // The file path where data for this context is persisted. 141 // The file path where data for this context is persisted.
139 base::FilePath context_storage_path_; 142 base::FilePath context_storage_path_;
140 143
141 JniDependencyFactory* native_factory_; 144 JniDependencyFactory* native_factory_;
142 scoped_refptr<net::CookieStore> cookie_store_; 145 scoped_refptr<net::CookieStore> cookie_store_;
143 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; 146 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_;
144 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; 147 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_;
145 scoped_ptr<AwFormDatabaseService> form_database_service_; 148 scoped_ptr<AwFormDatabaseService> form_database_service_;
149 scoped_ptr<AwMessagePortService> message_port_service_;
146 150
147 AwDownloadManagerDelegate download_manager_delegate_; 151 AwDownloadManagerDelegate download_manager_delegate_;
148 152
149 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; 153 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_;
150 scoped_ptr<content::ResourceContext> resource_context_; 154 scoped_ptr<content::ResourceContext> resource_context_;
151 155
152 scoped_ptr<PrefService> user_pref_service_; 156 scoped_ptr<PrefService> user_pref_service_;
153 157
154 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> 158 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator>
155 data_reduction_proxy_configurator_; 159 data_reduction_proxy_configurator_;
156 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> 160 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
157 data_reduction_proxy_statistics_; 161 data_reduction_proxy_statistics_;
158 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> 162 scoped_ptr<data_reduction_proxy::DataReductionProxySettings>
159 data_reduction_proxy_settings_; 163 data_reduction_proxy_settings_;
160 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> 164 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore>
161 data_reduction_proxy_event_store_; 165 data_reduction_proxy_event_store_;
162 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; 166 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_;
163 167
164 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); 168 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext);
165 }; 169 };
166 170
167 } // namespace android_webview 171 } // namespace android_webview
168 172
169 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ 173 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698