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

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

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 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 | Annotate | Revision Log
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 #pragma once 10 #pragma once
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 507
508 // Lock used to prevent possible data races due to compiler optimizations. 508 // Lock used to prevent possible data races due to compiler optimizations.
509 mutable base::Lock database_lock_; 509 mutable base::Lock database_lock_;
510 510
511 // The SafeBrowsingURLRequestContextGetter used to access 511 // The SafeBrowsingURLRequestContextGetter used to access
512 // |url_request_context_|. 512 // |url_request_context_|.
513 scoped_refptr<net::URLRequestContextGetter> 513 scoped_refptr<net::URLRequestContextGetter>
514 url_request_context_getter_; 514 url_request_context_getter_;
515 515
516 // The SafeBrowsingURLRequestContext. 516 // The SafeBrowsingURLRequestContext.
517 scoped_refptr<net::URLRequestContext> url_request_context_; 517 scoped_ptr<net::URLRequestContext> url_request_context_;
518 518
519 // Handles interaction with SafeBrowsing servers. 519 // Handles interaction with SafeBrowsing servers.
520 SafeBrowsingProtocolManager* protocol_manager_; 520 SafeBrowsingProtocolManager* protocol_manager_;
521 521
522 // Only access this whitelist from the UI thread. 522 // Only access this whitelist from the UI thread.
523 std::vector<WhiteListedEntry> white_listed_entries_; 523 std::vector<WhiteListedEntry> white_listed_entries_;
524 524
525 // Whether the service is running. 'enabled_' is used by SafeBrowsingService 525 // Whether the service is running. 'enabled_' is used by SafeBrowsingService
526 // on the IO thread during normal operations. 526 // on the IO thread during normal operations.
527 bool enabled_; 527 bool enabled_;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 class SafeBrowsingServiceFactory { 592 class SafeBrowsingServiceFactory {
593 public: 593 public:
594 SafeBrowsingServiceFactory() { } 594 SafeBrowsingServiceFactory() { }
595 virtual ~SafeBrowsingServiceFactory() { } 595 virtual ~SafeBrowsingServiceFactory() { }
596 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 596 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
597 private: 597 private:
598 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 598 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
599 }; 599 };
600 600
601 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 601 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698