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

Side by Side Diff: components/subresource_filter/content/browser/subframe_navigation_filtering_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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 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_SUBFRAME_NAVIGATION_FILTER ING_THROTTLE_H_ 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBFRAME_NAVIGATION_FILTER ING_THROTTLE_H_
6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBFRAME_NAVIGATION_FILTER ING_THROTTLE_H_ 6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBFRAME_NAVIGATION_FILTER ING_THROTTLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "components/subresource_filter/content/browser/async_document_subresour ce_filter.h" 10 #include "components/subresource_filter/content/browser/async_document_subresour ce_filter.h"
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 SubframeNavigationFilteringThrottle( 31 SubframeNavigationFilteringThrottle(
32 content::NavigationHandle* handle, 32 content::NavigationHandle* handle,
33 AsyncDocumentSubresourceFilter* parent_frame_filter); 33 AsyncDocumentSubresourceFilter* parent_frame_filter);
34 ~SubframeNavigationFilteringThrottle() override; 34 ~SubframeNavigationFilteringThrottle() override;
35 35
36 // content::NavigationThrottle: 36 // content::NavigationThrottle:
37 content::NavigationThrottle::ThrottleCheckResult WillStartRequest() override; 37 content::NavigationThrottle::ThrottleCheckResult WillStartRequest() override;
38 content::NavigationThrottle::ThrottleCheckResult WillRedirectRequest() 38 content::NavigationThrottle::ThrottleCheckResult WillRedirectRequest()
39 override; 39 override;
40 const char* GetNameForLogging() override;
40 41
41 private: 42 private:
42 content::NavigationThrottle::ThrottleCheckResult DeferToCalculateLoadPolicy(); 43 content::NavigationThrottle::ThrottleCheckResult DeferToCalculateLoadPolicy();
43 void OnCalculatedLoadPolicy(LoadPolicy policy); 44 void OnCalculatedLoadPolicy(LoadPolicy policy);
44 45
45 // Must outlive this class. 46 // Must outlive this class.
46 AsyncDocumentSubresourceFilter* parent_frame_filter_; 47 AsyncDocumentSubresourceFilter* parent_frame_filter_;
47 48
48 base::WeakPtrFactory<SubframeNavigationFilteringThrottle> weak_ptr_factory_; 49 base::WeakPtrFactory<SubframeNavigationFilteringThrottle> weak_ptr_factory_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(SubframeNavigationFilteringThrottle); 51 DISALLOW_COPY_AND_ASSIGN(SubframeNavigationFilteringThrottle);
51 }; 52 };
52 53
53 } // namespace subresource_filter 54 } // namespace subresource_filter
54 55
55 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBFRAME_NAVIGATION_FIL TERING_THROTTLE_H_ 56 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_SUBFRAME_NAVIGATION_FIL TERING_THROTTLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698