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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_service.h

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Introduced IOThread::UpdateNetworkSessionParams Created 3 years, 12 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 // The Safe Browsing service is responsible for downloading anti-phishing and 5 // The Safe Browsing service is responsible for downloading anti-phishing and
6 // anti-malware tables and checking urls against them. 6 // anti-malware tables and checking urls against them.
7 7
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 14
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/callback_list.h" 16 #include "base/callback_list.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "base/sequenced_task_runner_helpers.h" 21 #include "base/sequenced_task_runner_helpers.h"
22 #include "chrome/browser/net/net_pref_observer.h"
22 #include "chrome/browser/safe_browsing/services_delegate.h" 23 #include "chrome/browser/safe_browsing/services_delegate.h"
23 #include "components/safe_browsing_db/util.h" 24 #include "components/safe_browsing_db/util.h"
24 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
25 #include "content/public/browser/notification_observer.h" 26 #include "content/public/browser/notification_observer.h"
26 #include "content/public/browser/notification_registrar.h" 27 #include "content/public/browser/notification_registrar.h"
27 28
28 #if defined(FULL_SAFE_BROWSING) 29 #if defined(FULL_SAFE_BROWSING)
29 #include "chrome/browser/safe_browsing/incident_reporting/delayed_analysis_callb ack.h" 30 #include "chrome/browser/safe_browsing/incident_reporting/delayed_analysis_callb ack.h"
30 #endif 31 #endif
31 32
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 118 }
118 119
119 // The DownloadProtectionService is not valid after the SafeBrowsingService 120 // The DownloadProtectionService is not valid after the SafeBrowsingService
120 // is destroyed. 121 // is destroyed.
121 DownloadProtectionService* download_protection_service() const { 122 DownloadProtectionService* download_protection_service() const {
122 return services_delegate_->GetDownloadService(); 123 return services_delegate_->GetDownloadService();
123 } 124 }
124 125
125 net::URLRequestContextGetter* url_request_context(); 126 net::URLRequestContextGetter* url_request_context();
126 127
128 // Called on UI thread thread when net parameters change (e.g. due to policy).
129 void UpdateNetParams(NetPrefObserver::NetParamsChange net_params_change);
130
127 const scoped_refptr<SafeBrowsingUIManager>& ui_manager() const; 131 const scoped_refptr<SafeBrowsingUIManager>& ui_manager() const;
128 132
129 // This returns either the v3 or the v4 database manager, depending on 133 // This returns either the v3 or the v4 database manager, depending on
130 // the experiment settings. 134 // the experiment settings.
131 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() const; 135 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() const;
132 136
133 scoped_refptr<SafeBrowsingNavigationObserverManager> 137 scoped_refptr<SafeBrowsingNavigationObserverManager>
134 navigation_observer_manager(); 138 navigation_observer_manager();
135 139
136 SafeBrowsingProtocolManager* protocol_manager() const; 140 SafeBrowsingProtocolManager* protocol_manager() const;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 SafeBrowsingServiceFactory() { } 312 SafeBrowsingServiceFactory() { }
309 virtual ~SafeBrowsingServiceFactory() { } 313 virtual ~SafeBrowsingServiceFactory() { }
310 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 314 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
311 private: 315 private:
312 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 316 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
313 }; 317 };
314 318
315 } // namespace safe_browsing 319 } // namespace safe_browsing
316 320
317 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 321 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698