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

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

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Rebase Created 3 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 // 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/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/sequenced_task_runner_helpers.h" 18 #include "base/sequenced_task_runner_helpers.h"
19 #include "chrome/browser/safe_browsing/services_delegate.h" 19 #include "chrome/browser/safe_browsing/services_delegate.h"
20 #include "components/safe_browsing/base_safe_browsing_service.h" 20 #include "components/safe_browsing/base_safe_browsing_service.h"
21 #include "content/public/browser/notification_observer.h" 21 #include "content/public/browser/notification_observer.h"
22 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
23 #include "net/http/http_network_session.h"
23 24
24 #if defined(FULL_SAFE_BROWSING) 25 #if defined(FULL_SAFE_BROWSING)
25 #include "chrome/browser/safe_browsing/incident_reporting/delayed_analysis_callb ack.h" 26 #include "chrome/browser/safe_browsing/incident_reporting/delayed_analysis_callb ack.h"
26 #endif 27 #endif
27 28
28 class PrefChangeRegistrar; 29 class PrefChangeRegistrar;
29 class PrefService; 30 class PrefService;
30 class Profile; 31 class Profile;
31 class TrackedPreferenceValidationDelegate; 32 class TrackedPreferenceValidationDelegate;
32 33
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 106 }
106 107
107 // The DownloadProtectionService is not valid after the SafeBrowsingService 108 // The DownloadProtectionService is not valid after the SafeBrowsingService
108 // is destroyed. 109 // is destroyed.
109 DownloadProtectionService* download_protection_service() const { 110 DownloadProtectionService* download_protection_service() const {
110 return services_delegate_->GetDownloadService(); 111 return services_delegate_->GetDownloadService();
111 } 112 }
112 113
113 scoped_refptr<net::URLRequestContextGetter> url_request_context() override; 114 scoped_refptr<net::URLRequestContextGetter> url_request_context() override;
114 115
116 // Called on IO thread thread when net parameters change (e.g. due to policy).
117 void UpdateNetParamsOnIOThread(
118 net::HttpNetworkSession::ParamsUpdate params_update);
119
115 const scoped_refptr<SafeBrowsingUIManager>& ui_manager() const; 120 const scoped_refptr<SafeBrowsingUIManager>& ui_manager() const;
116 121
117 // This returns either the v3 or the v4 database manager, depending on 122 // This returns either the v3 or the v4 database manager, depending on
118 // the experiment settings. 123 // the experiment settings.
119 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() 124 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager()
120 const override; 125 const override;
121 126
122 scoped_refptr<SafeBrowsingNavigationObserverManager> 127 scoped_refptr<SafeBrowsingNavigationObserverManager>
123 navigation_observer_manager(); 128 navigation_observer_manager();
124 129
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 SafeBrowsingServiceFactory() { } 307 SafeBrowsingServiceFactory() { }
303 virtual ~SafeBrowsingServiceFactory() { } 308 virtual ~SafeBrowsingServiceFactory() { }
304 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 309 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
305 private: 310 private:
306 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 311 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
307 }; 312 };
308 313
309 } // namespace safe_browsing 314 } // namespace safe_browsing
310 315
311 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 316 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698