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

Side by Side Diff: chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h

Issue 2830353003: Tracing for NavigationHandle lifetime and state. (Closed)
Patch Set: Rebase. Created 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CHROMEOS_ARC_INTENT_HELPER_ARC_NAVIGATION_THROTTLE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_NAVIGATION_THROTTLE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_NAVIGATION_THROTTLE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_NAVIGATION_THROTTLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // do not have Chrome, returns false. 96 // do not have Chrome, returns false.
97 static bool IsSwapElementsNeeded( 97 static bool IsSwapElementsNeeded(
98 const std::vector<mojom::IntentHandlerInfoPtr>& handlers, 98 const std::vector<mojom::IntentHandlerInfoPtr>& handlers,
99 std::pair<size_t, size_t>* out_indices); 99 std::pair<size_t, size_t>* out_indices);
100 100
101 static bool IsAppAvailableForTesting( 101 static bool IsAppAvailableForTesting(
102 const std::vector<mojom::IntentHandlerInfoPtr>& handlers); 102 const std::vector<mojom::IntentHandlerInfoPtr>& handlers);
103 static size_t FindPreferredAppForTesting( 103 static size_t FindPreferredAppForTesting(
104 const std::vector<mojom::IntentHandlerInfoPtr>& handlers); 104 const std::vector<mojom::IntentHandlerInfoPtr>& handlers);
105 105
106 // content::Navigation implementation:
107 const char* GetNameForLogging() override;
108
106 private: 109 private:
107 // content::Navigation implementation: 110 // content::Navigation implementation:
108 NavigationThrottle::ThrottleCheckResult WillStartRequest() override; 111 NavigationThrottle::ThrottleCheckResult WillStartRequest() override;
109 NavigationThrottle::ThrottleCheckResult WillRedirectRequest() override; 112 NavigationThrottle::ThrottleCheckResult WillRedirectRequest() override;
110 113
111 NavigationThrottle::ThrottleCheckResult HandleRequest(); 114 NavigationThrottle::ThrottleCheckResult HandleRequest();
112 void OnAppCandidatesReceived( 115 void OnAppCandidatesReceived(
113 std::vector<mojom::IntentHandlerInfoPtr> handlers); 116 std::vector<mojom::IntentHandlerInfoPtr> handlers);
114 void OnAppIconsReceived( 117 void OnAppIconsReceived(
115 std::vector<mojom::IntentHandlerInfoPtr> handlers, 118 std::vector<mojom::IntentHandlerInfoPtr> handlers,
(...skipping 18 matching lines...) Expand all
134 137
135 // This has to be the last member of the class. 138 // This has to be the last member of the class.
136 base::WeakPtrFactory<ArcNavigationThrottle> weak_ptr_factory_; 139 base::WeakPtrFactory<ArcNavigationThrottle> weak_ptr_factory_;
137 140
138 DISALLOW_COPY_AND_ASSIGN(ArcNavigationThrottle); 141 DISALLOW_COPY_AND_ASSIGN(ArcNavigationThrottle);
139 }; 142 };
140 143
141 } // namespace arc 144 } // namespace arc
142 145
143 #endif // CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_NAVIGATION_THROTTLE_H_ 146 #endif // CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_NAVIGATION_THROTTLE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698