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

Side by Side Diff: components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.h

Issue 2830353003: Tracing for NavigationHandle lifetime and state. (Closed)
Patch Set: Rebase. Created 3 years, 8 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) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 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 COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_SAFE_BR OWSING_ACTIVATION_THROTTLE_H_ 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_SAFE_BR OWSING_ACTIVATION_THROTTLE_H_
6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_SAFE_BR OWSING_ACTIVATION_THROTTLE_H_ 6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_SAFE_BR OWSING_ACTIVATION_THROTTLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 14 matching lines...) Expand all
25 SubresourceFilterSafeBrowsingActivationThrottle( 25 SubresourceFilterSafeBrowsingActivationThrottle(
26 content::NavigationHandle* handle, 26 content::NavigationHandle* handle,
27 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> 27 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager>
28 database_manager); 28 database_manager);
29 29
30 ~SubresourceFilterSafeBrowsingActivationThrottle() override; 30 ~SubresourceFilterSafeBrowsingActivationThrottle() override;
31 31
32 // content::NavigationThrottle: 32 // content::NavigationThrottle:
33 content::NavigationThrottle::ThrottleCheckResult WillProcessResponse() 33 content::NavigationThrottle::ThrottleCheckResult WillProcessResponse()
34 override; 34 override;
35 const char* GetNameForLogging() override;
35 36
36 void OnCheckUrlResultOnUI(const GURL& url, 37 void OnCheckUrlResultOnUI(const GURL& url,
37 safe_browsing::SBThreatType threat_type, 38 safe_browsing::SBThreatType threat_type,
38 safe_browsing::ThreatPatternType pattern_type); 39 safe_browsing::ThreatPatternType pattern_type);
39 40
40 private: 41 private:
41 class SBDatabaseClient; 42 class SBDatabaseClient;
42 43
43 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 44 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
44 std::unique_ptr<SBDatabaseClient, base::OnTaskRunnerDeleter> database_client_; 45 std::unique_ptr<SBDatabaseClient, base::OnTaskRunnerDeleter> database_client_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(SubresourceFilterSafeBrowsingActivationThrottle); 47 DISALLOW_COPY_AND_ASSIGN(SubresourceFilterSafeBrowsingActivationThrottle);
47 }; 48 };
48 49
49 } // namespace subresource_filter 50 } // namespace subresource_filter
50 51
51 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_SAFE _BROWSING_ACTIVATION_THROTTLE_H_ 52 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBRESOURCE_FILTER_SAFE _BROWSING_ACTIVATION_THROTTLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698