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

Side by Side Diff: chrome/browser/download/download_resource_throttle.h

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs 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 CHROME_BROWSER_DOWNLOAD_DOWNLOAD_RESOURCE_THROTTLE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_RESOURCE_THROTTLE_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_RESOURCE_THROTTLE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_RESOURCE_THROTTLE_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/download/download_request_limiter.h" 9 #include "chrome/browser/download/download_request_limiter.h"
10 #include "content/public/browser/resource_throttle.h" 10 #include "content/public/browser/resource_throttle.h"
(...skipping 11 matching lines...) Expand all
22 : public content::ResourceThrottle, 22 : public content::ResourceThrottle,
23 public base::SupportsWeakPtr<DownloadResourceThrottle> { 23 public base::SupportsWeakPtr<DownloadResourceThrottle> {
24 public: 24 public:
25 DownloadResourceThrottle(DownloadRequestLimiter* limiter, 25 DownloadResourceThrottle(DownloadRequestLimiter* limiter,
26 int render_process_id, 26 int render_process_id,
27 int render_view_id, 27 int render_view_id,
28 const GURL& url, 28 const GURL& url,
29 const std::string& request_method); 29 const std::string& request_method);
30 30
31 // content::ResourceThrottle implementation: 31 // content::ResourceThrottle implementation:
32 virtual void WillStartRequest(bool* defer) OVERRIDE; 32 virtual void WillStartRequest(bool* defer) override;
33 virtual void WillRedirectRequest(const GURL& new_url, bool* defer) OVERRIDE; 33 virtual void WillRedirectRequest(const GURL& new_url, bool* defer) override;
34 virtual void WillProcessResponse(bool* defer) OVERRIDE; 34 virtual void WillProcessResponse(bool* defer) override;
35 virtual const char* GetNameForLogging() const OVERRIDE; 35 virtual const char* GetNameForLogging() const override;
36 36
37 private: 37 private:
38 virtual ~DownloadResourceThrottle(); 38 virtual ~DownloadResourceThrottle();
39 39
40 void WillDownload(bool* defer); 40 void WillDownload(bool* defer);
41 void ContinueDownload(bool allow); 41 void ContinueDownload(bool allow);
42 42
43 // Set to true when we are querying the DownloadRequestLimiter. 43 // Set to true when we are querying the DownloadRequestLimiter.
44 bool querying_limiter_; 44 bool querying_limiter_;
45 45
46 // Set to true when we know that the request is allowed to start. 46 // Set to true when we know that the request is allowed to start.
47 bool request_allowed_; 47 bool request_allowed_;
48 48
49 // Set to true when we have deferred the request. 49 // Set to true when we have deferred the request.
50 bool request_deferred_; 50 bool request_deferred_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(DownloadResourceThrottle); 52 DISALLOW_COPY_AND_ASSIGN(DownloadResourceThrottle);
53 }; 53 };
54 54
55 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_RESOURCE_THROTTLE_H_ 55 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_RESOURCE_THROTTLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_request_limiter_unittest.cc ('k') | chrome/browser/download/download_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698