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

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

Issue 2719833002: Convert TrackedPreferenceValidationDelegate into a mojo interface. (Closed)
Patch Set: Created 3 years, 9 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 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 5 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 #include "chrome/common/safe_browsing/file_type_policies.h" 36 #include "chrome/common/safe_browsing/file_type_policies.h"
37 #include "components/prefs/pref_change_registrar.h" 37 #include "components/prefs/pref_change_registrar.h"
38 #include "components/prefs/pref_service.h" 38 #include "components/prefs/pref_service.h"
39 #include "components/safe_browsing/common/safebrowsing_constants.h" 39 #include "components/safe_browsing/common/safebrowsing_constants.h"
40 #include "components/safe_browsing/common/safebrowsing_switches.h" 40 #include "components/safe_browsing/common/safebrowsing_switches.h"
41 #include "components/safe_browsing/password_protection/password_protection_servi ce.h" 41 #include "components/safe_browsing/password_protection/password_protection_servi ce.h"
42 #include "components/safe_browsing_db/database_manager.h" 42 #include "components/safe_browsing_db/database_manager.h"
43 #include "components/safe_browsing_db/v4_feature_list.h" 43 #include "components/safe_browsing_db/v4_feature_list.h"
44 #include "components/safe_browsing_db/v4_get_hash_protocol_manager.h" 44 #include "components/safe_browsing_db/v4_get_hash_protocol_manager.h"
45 #include "components/safe_browsing_db/v4_local_database_manager.h" 45 #include "components/safe_browsing_db/v4_local_database_manager.h"
46 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h "
47 #include "content/public/browser/browser_thread.h" 46 #include "content/public/browser/browser_thread.h"
48 #include "content/public/browser/cookie_store_factory.h" 47 #include "content/public/browser/cookie_store_factory.h"
49 #include "content/public/browser/notification_service.h" 48 #include "content/public/browser/notification_service.h"
50 #include "content/public/browser/resource_request_info.h" 49 #include "content/public/browser/resource_request_info.h"
51 #include "google_apis/google_api_keys.h" 50 #include "google_apis/google_api_keys.h"
52 #include "net/cookies/cookie_store.h" 51 #include "net/cookies/cookie_store.h"
53 #include "net/extras/sqlite/cookie_crypto_delegate.h" 52 #include "net/extras/sqlite/cookie_crypto_delegate.h"
54 #include "net/extras/sqlite/sqlite_channel_id_store.h" 53 #include "net/extras/sqlite/sqlite_channel_id_store.h"
55 #include "net/http/http_network_layer.h" 54 #include "net/http/http_network_layer.h"
56 #include "net/http/http_transaction_factory.h" 55 #include "net/http/http_transaction_factory.h"
57 #include "net/ssl/channel_id_service.h" 56 #include "net/ssl/channel_id_service.h"
58 #include "net/ssl/default_channel_id_store.h" 57 #include "net/ssl/default_channel_id_store.h"
59 #include "net/url_request/url_request_context.h" 58 #include "net/url_request/url_request_context.h"
60 #include "net/url_request/url_request_context_getter.h" 59 #include "net/url_request/url_request_context_getter.h"
60 #include "services/preferences/public/interfaces/tracked_preference_validation_d elegate.mojom.h"
61 61
62 #if defined(OS_WIN) 62 #if defined(OS_WIN)
63 #include "chrome/installer/util/browser_distribution.h" 63 #include "chrome/installer/util/browser_distribution.h"
64 #endif 64 #endif
65 65
66 #if defined(SAFE_BROWSING_DB_LOCAL) 66 #if defined(SAFE_BROWSING_DB_LOCAL)
67 #include "chrome/browser/safe_browsing/local_database_manager.h" 67 #include "chrome/browser/safe_browsing/local_database_manager.h"
68 #elif defined(SAFE_BROWSING_DB_REMOTE) 68 #elif defined(SAFE_BROWSING_DB_REMOTE)
69 #include "components/safe_browsing_db/remote_database_manager.h" 69 #include "components/safe_browsing_db/remote_database_manager.h"
70 #endif 70 #endif
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 const scoped_refptr<SafeBrowsingDatabaseManager>& 451 const scoped_refptr<SafeBrowsingDatabaseManager>&
452 SafeBrowsingService::v4_local_database_manager() const { 452 SafeBrowsingService::v4_local_database_manager() const {
453 return services_delegate_->v4_local_database_manager(); 453 return services_delegate_->v4_local_database_manager();
454 } 454 }
455 455
456 PasswordProtectionService* SafeBrowsingService::password_protection_service() { 456 PasswordProtectionService* SafeBrowsingService::password_protection_service() {
457 return password_protection_service_.get(); 457 return password_protection_service_.get();
458 } 458 }
459 459
460 std::unique_ptr<TrackedPreferenceValidationDelegate> 460 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>
461 SafeBrowsingService::CreatePreferenceValidationDelegate( 461 SafeBrowsingService::CreatePreferenceValidationDelegate(
462 Profile* profile) const { 462 Profile* profile) const {
463 return services_delegate_->CreatePreferenceValidationDelegate(profile); 463 return services_delegate_->CreatePreferenceValidationDelegate(profile);
464 } 464 }
465 465
466 void SafeBrowsingService::RegisterDelayedAnalysisCallback( 466 void SafeBrowsingService::RegisterDelayedAnalysisCallback(
467 const DelayedAnalysisCallback& callback) { 467 const DelayedAnalysisCallback& callback) {
468 services_delegate_->RegisterDelayedAnalysisCallback(callback); 468 services_delegate_->RegisterDelayedAnalysisCallback(callback);
469 } 469 }
470 470
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 ping_manager()->ReportThreatDetails(report); 767 ping_manager()->ReportThreatDetails(report);
768 } 768 }
769 769
770 void SafeBrowsingService::ProcessResourceRequest( 770 void SafeBrowsingService::ProcessResourceRequest(
771 const ResourceRequestInfo& request) { 771 const ResourceRequestInfo& request) {
772 DCHECK_CURRENTLY_ON(BrowserThread::UI); 772 DCHECK_CURRENTLY_ON(BrowserThread::UI);
773 services_delegate_->ProcessResourceRequest(&request); 773 services_delegate_->ProcessResourceRequest(&request);
774 } 774 }
775 775
776 } // namespace safe_browsing 776 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | chrome/browser/safe_browsing/services_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698