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

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

Issue 2932703003: Plumbing for safe browsing reporting for Android WebView. (Closed)
Patch Set: modify client name to android_webview Created 3 years, 6 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
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/aw_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 namespace policy { 36 namespace policy {
37 class URLBlacklistManager; 37 class URLBlacklistManager;
38 class BrowserPolicyConnectorBase; 38 class BrowserPolicyConnectorBase;
39 } 39 }
40 40
41 namespace visitedlink { 41 namespace visitedlink {
42 class VisitedLinkMaster; 42 class VisitedLinkMaster;
43 } 43 }
44 44
45 namespace safe_browsing {
46 class TriggerManager;
47 } // namespace safe_browsing
48
45 namespace android_webview { 49 namespace android_webview {
46 50
47 class AwFormDatabaseService; 51 class AwFormDatabaseService;
48 class AwQuotaManagerBridge; 52 class AwQuotaManagerBridge;
49 class AwURLRequestContextGetter; 53 class AwURLRequestContextGetter;
50 54
51 namespace prefs { 55 namespace prefs {
52 56
53 // Used for Kerberos authentication. 57 // Used for Kerberos authentication.
54 extern const char kAuthAndroidNegotiateAccountType[]; 58 extern const char kAuthAndroidNegotiateAccountType[];
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 net::URLRequestContextGetter* CreateMediaRequestContext() override; 114 net::URLRequestContextGetter* CreateMediaRequestContext() override;
111 net::URLRequestContextGetter* CreateMediaRequestContextForStoragePartition( 115 net::URLRequestContextGetter* CreateMediaRequestContextForStoragePartition(
112 const base::FilePath& partition_path, 116 const base::FilePath& partition_path,
113 bool in_memory) override; 117 bool in_memory) override;
114 118
115 // visitedlink::VisitedLinkDelegate implementation. 119 // visitedlink::VisitedLinkDelegate implementation.
116 void RebuildTable(const scoped_refptr<URLEnumerator>& enumerator) override; 120 void RebuildTable(const scoped_refptr<URLEnumerator>& enumerator) override;
117 121
118 AwSafeBrowsingUIManager* GetSafeBrowsingUIManager(); 122 AwSafeBrowsingUIManager* GetSafeBrowsingUIManager();
119 safe_browsing::RemoteSafeBrowsingDatabaseManager* GetSafeBrowsingDBManager(); 123 safe_browsing::RemoteSafeBrowsingDatabaseManager* GetSafeBrowsingDBManager();
124 safe_browsing::TriggerManager* GetSafeBrowsingTriggerManager() const;
120 125
121 private: 126 private:
122 void InitUserPrefService(); 127 void InitUserPrefService();
123 void OnWebRestrictionsAuthorityChanged(); 128 void OnWebRestrictionsAuthorityChanged();
124 129
125 130
126 // Delay, in milliseconds, before removing the legacy cache dir. 131 // Delay, in milliseconds, before removing the legacy cache dir.
127 // This is non-const for testing purposes. 132 // This is non-const for testing purposes.
128 static int legacy_cache_removal_delay_ms_; 133 static int legacy_cache_removal_delay_ms_;
129 134
(...skipping 13 matching lines...) Expand all
143 std::unique_ptr<policy::BrowserPolicyConnectorBase> browser_policy_connector_; 148 std::unique_ptr<policy::BrowserPolicyConnectorBase> browser_policy_connector_;
144 std::unique_ptr<policy::URLBlacklistManager> blacklist_manager_; 149 std::unique_ptr<policy::URLBlacklistManager> blacklist_manager_;
145 150
146 std::unique_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; 151 std::unique_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_;
147 std::unique_ptr<content::PermissionManager> permission_manager_; 152 std::unique_ptr<content::PermissionManager> permission_manager_;
148 std::unique_ptr<web_restrictions::WebRestrictionsClient> 153 std::unique_ptr<web_restrictions::WebRestrictionsClient>
149 web_restriction_provider_; 154 web_restriction_provider_;
150 PrefChangeRegistrar pref_change_registrar_; 155 PrefChangeRegistrar pref_change_registrar_;
151 156
152 scoped_refptr<AwSafeBrowsingUIManager> safe_browsing_ui_manager_; 157 scoped_refptr<AwSafeBrowsingUIManager> safe_browsing_ui_manager_;
158 std::unique_ptr<safe_browsing::TriggerManager> safe_browsing_trigger_manager_;
153 scoped_refptr<safe_browsing::RemoteSafeBrowsingDatabaseManager> 159 scoped_refptr<safe_browsing::RemoteSafeBrowsingDatabaseManager>
154 safe_browsing_db_manager_; 160 safe_browsing_db_manager_;
155 bool safe_browsing_db_manager_started_ = false; 161 bool safe_browsing_db_manager_started_ = false;
156 162
157 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); 163 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext);
158 }; 164 };
159 165
160 } // namespace android_webview 166 } // namespace android_webview
161 167
162 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ 168 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/aw_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698