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

Side by Side Diff: components/navigation_interception/intercept_navigation_resource_throttle.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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) 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 COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTL E_H_ 5 #ifndef COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTL E_H_
6 #define COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTL E_H_ 6 #define COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTL E_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 22 matching lines...) Expand all
33 content::WebContents* /* source */, 33 content::WebContents* /* source */,
34 const NavigationParams& /* navigation_params */)> 34 const NavigationParams& /* navigation_params */)>
35 CheckOnUIThreadCallback; 35 CheckOnUIThreadCallback;
36 36
37 InterceptNavigationResourceThrottle( 37 InterceptNavigationResourceThrottle(
38 net::URLRequest* request, 38 net::URLRequest* request,
39 CheckOnUIThreadCallback should_ignore_callback); 39 CheckOnUIThreadCallback should_ignore_callback);
40 virtual ~InterceptNavigationResourceThrottle(); 40 virtual ~InterceptNavigationResourceThrottle();
41 41
42 // content::ResourceThrottle implementation: 42 // content::ResourceThrottle implementation:
43 virtual void WillStartRequest(bool* defer) OVERRIDE; 43 virtual void WillStartRequest(bool* defer) override;
44 virtual void WillRedirectRequest(const GURL& new_url, bool* defer) OVERRIDE; 44 virtual void WillRedirectRequest(const GURL& new_url, bool* defer) override;
45 virtual const char* GetNameForLogging() const OVERRIDE; 45 virtual const char* GetNameForLogging() const override;
46 46
47 private: 47 private:
48 std::string GetMethodAfterRedirect(); 48 std::string GetMethodAfterRedirect();
49 bool CheckIfShouldIgnoreNavigation(const GURL& url, 49 bool CheckIfShouldIgnoreNavigation(const GURL& url,
50 const std::string& method, 50 const std::string& method,
51 bool is_redirect); 51 bool is_redirect);
52 void OnResultObtained(bool should_ignore_navigation); 52 void OnResultObtained(bool should_ignore_navigation);
53 53
54 net::URLRequest* request_; 54 net::URLRequest* request_;
55 CheckOnUIThreadCallback should_ignore_callback_; 55 CheckOnUIThreadCallback should_ignore_callback_;
56 base::WeakPtrFactory<InterceptNavigationResourceThrottle> weak_ptr_factory_; 56 base::WeakPtrFactory<InterceptNavigationResourceThrottle> weak_ptr_factory_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(InterceptNavigationResourceThrottle); 58 DISALLOW_COPY_AND_ASSIGN(InterceptNavigationResourceThrottle);
59 }; 59 };
60 60
61 } // namespace navigation_interception 61 } // namespace navigation_interception
62 62
63 #endif // COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THRO TTLE_H_ 63 #endif // COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THRO TTLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698