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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_resource_throttle.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/supervised_user/supervised_users.h" 10 #include "chrome/browser/supervised_user/supervised_users.h"
11 #include "content/public/browser/resource_throttle.h" 11 #include "content/public/browser/resource_throttle.h"
12 12
13 class SupervisedUserURLFilter; 13 class SupervisedUserURLFilter;
14 14
15 namespace net { 15 namespace net {
16 class URLRequest; 16 class URLRequest;
17 } 17 }
18 18
19 class SupervisedUserResourceThrottle : public content::ResourceThrottle { 19 class SupervisedUserResourceThrottle : public content::ResourceThrottle {
20 public: 20 public:
21 SupervisedUserResourceThrottle(const net::URLRequest* request, 21 SupervisedUserResourceThrottle(const net::URLRequest* request,
22 bool is_main_frame, 22 bool is_main_frame,
23 const SupervisedUserURLFilter* url_filter); 23 const SupervisedUserURLFilter* url_filter);
24 virtual ~SupervisedUserResourceThrottle(); 24 virtual ~SupervisedUserResourceThrottle();
25 25
26 // content::ResourceThrottle implementation: 26 // content::ResourceThrottle implementation:
27 virtual void WillStartRequest(bool* defer) OVERRIDE; 27 virtual void WillStartRequest(bool* defer) override;
28 28
29 virtual void WillRedirectRequest(const GURL& new_url, bool* defer) OVERRIDE; 29 virtual void WillRedirectRequest(const GURL& new_url, bool* defer) override;
30 30
31 virtual const char* GetNameForLogging() const OVERRIDE; 31 virtual const char* GetNameForLogging() const override;
32 32
33 private: 33 private:
34 void ShowInterstitialIfNeeded(bool is_redirect, 34 void ShowInterstitialIfNeeded(bool is_redirect,
35 const GURL& url, 35 const GURL& url,
36 bool* defer); 36 bool* defer);
37 void OnInterstitialResult(bool continue_request); 37 void OnInterstitialResult(bool continue_request);
38 38
39 const net::URLRequest* request_; 39 const net::URLRequest* request_;
40 bool is_main_frame_; 40 bool is_main_frame_;
41 const SupervisedUserURLFilter* url_filter_; 41 const SupervisedUserURLFilter* url_filter_;
42 base::WeakPtrFactory<SupervisedUserResourceThrottle> weak_ptr_factory_; 42 base::WeakPtrFactory<SupervisedUserResourceThrottle> weak_ptr_factory_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(SupervisedUserResourceThrottle); 44 DISALLOW_COPY_AND_ASSIGN(SupervisedUserResourceThrottle);
45 }; 45 };
46 46
47 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ 47 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698