| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LOGIN_SIGNIN_MERGE_SESSION_NAVIGATION_THROTTLE_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_NAVIGATION_THROTTLE_H
_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_NAVIGATION_THROTTLE_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_NAVIGATION_THROTTLE_H
_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 public: | 22 public: |
| 23 static std::unique_ptr<content::NavigationThrottle> Create( | 23 static std::unique_ptr<content::NavigationThrottle> Create( |
| 24 content::NavigationHandle* handle); | 24 content::NavigationHandle* handle); |
| 25 ~MergeSessionNavigationThrottle() override; | 25 ~MergeSessionNavigationThrottle() override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 explicit MergeSessionNavigationThrottle(content::NavigationHandle* handle); | 28 explicit MergeSessionNavigationThrottle(content::NavigationHandle* handle); |
| 29 | 29 |
| 30 // content::NavigationThrottle implementation: | 30 // content::NavigationThrottle implementation: |
| 31 content::NavigationThrottle::ThrottleCheckResult WillStartRequest() override; | 31 content::NavigationThrottle::ThrottleCheckResult WillStartRequest() override; |
| 32 const char* GetNameForLogging() override; |
| 32 | 33 |
| 33 // MergeSessionLoadPage callback. | 34 // MergeSessionLoadPage callback. |
| 34 void OnBlockingPageComplete(); | 35 void OnBlockingPageComplete(); |
| 35 | 36 |
| 36 base::WeakPtrFactory<MergeSessionNavigationThrottle> weak_factory_; | 37 base::WeakPtrFactory<MergeSessionNavigationThrottle> weak_factory_; |
| 37 | 38 |
| 38 DISALLOW_COPY_AND_ASSIGN(MergeSessionNavigationThrottle); | 39 DISALLOW_COPY_AND_ASSIGN(MergeSessionNavigationThrottle); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_NAVIGATION_THROTTL
E_H_ | 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_NAVIGATION_THROTTL
E_H_ |
| OLD | NEW |