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

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

Issue 15097004: Enable Autocomplete feature for chromium webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setSaveFormData2
Patch Set: make personal_data_ optional Created 7 years, 7 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_autofill_manager_delegate.h" 10 #include "android_webview/browser/aw_autofill_manager_delegate.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 net::URLRequestContextGetter* CreateRequestContext( 63 net::URLRequestContextGetter* CreateRequestContext(
64 content::ProtocolHandlerMap* protocol_handlers); 64 content::ProtocolHandlerMap* protocol_handlers);
65 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 65 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
66 const base::FilePath& partition_path, 66 const base::FilePath& partition_path,
67 bool in_memory, 67 bool in_memory,
68 content::ProtocolHandlerMap* protocol_handlers); 68 content::ProtocolHandlerMap* protocol_handlers);
69 69
70 AwQuotaManagerBridge* GetQuotaManagerBridge(); 70 AwQuotaManagerBridge* GetQuotaManagerBridge();
71 71
72 AwFormDatabaseService* GetFormDatabaseService(); 72 AwFormDatabaseService* GetFormDatabaseService();
73 AwAutofillManagerDelegate* AutofillManagerDelegate(); 73 void CreateUserPrefServiceIfNecessary();
74 AwAutofillManagerDelegate* CreateAutofillManagerDelegate(bool enabled);
75 74
76 // content::BrowserContext implementation. 75 // content::BrowserContext implementation.
77 virtual base::FilePath GetPath() OVERRIDE; 76 virtual base::FilePath GetPath() OVERRIDE;
78 virtual bool IsOffTheRecord() const OVERRIDE; 77 virtual bool IsOffTheRecord() const OVERRIDE;
79 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 78 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
80 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 79 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
81 int renderer_child_id) OVERRIDE; 80 int renderer_child_id) OVERRIDE;
82 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 81 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
83 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 82 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
84 int renderer_child_id) OVERRIDE; 83 int renderer_child_id) OVERRIDE;
(...skipping 23 matching lines...) Expand all
108 geolocation_permission_context_; 107 geolocation_permission_context_;
109 scoped_ptr<AwQuotaManagerBridge> quota_manager_bridge_; 108 scoped_ptr<AwQuotaManagerBridge> quota_manager_bridge_;
110 scoped_ptr<AwFormDatabaseService> form_database_service_; 109 scoped_ptr<AwFormDatabaseService> form_database_service_;
111 scoped_ptr<AwAutofillManagerDelegate> autofill_manager_delegate_; 110 scoped_ptr<AwAutofillManagerDelegate> autofill_manager_delegate_;
112 111
113 AwDownloadManagerDelegate download_manager_delegate_; 112 AwDownloadManagerDelegate download_manager_delegate_;
114 113
115 scoped_ptr<components::VisitedLinkMaster> visitedlink_master_; 114 scoped_ptr<components::VisitedLinkMaster> visitedlink_master_;
116 scoped_ptr<content::ResourceContext> resource_context_; 115 scoped_ptr<content::ResourceContext> resource_context_;
117 116
117 bool user_pref_service_ready_;
118
118 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); 119 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext);
119 }; 120 };
120 121
121 } // namespace android_webview 122 } // namespace android_webview
122 123
123 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ 124 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698