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

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

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove '// namespace safe_browsing' for a small fwd decl block. Created 5 years, 1 month 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_
7 7
8 // A class that reports safebrowsing statistics to Google's SafeBrowsing 8 // A class that reports safebrowsing statistics to Google's SafeBrowsing
9 // servers. 9 // servers.
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" 16 #include "chrome/browser/safe_browsing/protocol_manager_helper.h"
17 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 17 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
18 #include "net/url_request/url_fetcher_delegate.h" 18 #include "net/url_request/url_fetcher_delegate.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 namespace certificate_reporting { 21 namespace certificate_reporting {
22 class ErrorReporter; 22 class ErrorReporter;
23 } 23 }
24 24
25 namespace net { 25 namespace net {
26 class SSLInfo; 26 class SSLInfo;
27 class URLRequestContextGetter; 27 class URLRequestContextGetter;
28 } // namespace net 28 } // namespace net
29 29
30 namespace safe_browsing {
30 31
31 class SafeBrowsingPingManager : public net::URLFetcherDelegate { 32 class SafeBrowsingPingManager : public net::URLFetcherDelegate {
32 public: 33 public:
33 ~SafeBrowsingPingManager() override; 34 ~SafeBrowsingPingManager() override;
34 35
35 // Create an instance of the safe browsing ping manager. 36 // Create an instance of the safe browsing ping manager.
36 static SafeBrowsingPingManager* Create( 37 static SafeBrowsingPingManager* Create(
37 net::URLRequestContextGetter* request_context_getter, 38 net::URLRequestContextGetter* request_context_getter,
38 const SafeBrowsingProtocolConfig& config); 39 const SafeBrowsingProtocolConfig& config);
39 40
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Track outstanding SafeBrowsing report fetchers for clean up. 103 // Track outstanding SafeBrowsing report fetchers for clean up.
103 // We add both "hit" and "detail" fetchers in this set. 104 // We add both "hit" and "detail" fetchers in this set.
104 Reports safebrowsing_reports_; 105 Reports safebrowsing_reports_;
105 106
106 // Sends reports of invalid SSL certificate chains. 107 // Sends reports of invalid SSL certificate chains.
107 scoped_ptr<certificate_reporting::ErrorReporter> certificate_error_reporter_; 108 scoped_ptr<certificate_reporting::ErrorReporter> certificate_error_reporter_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPingManager); 110 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPingManager);
110 }; 111 };
111 112
113 } // namespace safe_browsing
114
112 #endif // CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ 115 #endif // CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/path_sanitizer_unittest.cc ('k') | chrome/browser/safe_browsing/ping_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698