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

Side by Side Diff: content/browser/loader/throttling_resource_handler.h

Issue 635713002: Replace OVERRIDE and FINAL with override and final in content/browser/loader (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
« no previous file with comments | « content/browser/loader/sync_resource_handler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "content/browser/loader/layered_resource_handler.h" 10 #include "content/browser/loader/layered_resource_handler.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 // Takes ownership of the ResourceThrottle instances. 28 // Takes ownership of the ResourceThrottle instances.
29 ThrottlingResourceHandler(scoped_ptr<ResourceHandler> next_handler, 29 ThrottlingResourceHandler(scoped_ptr<ResourceHandler> next_handler,
30 net::URLRequest* request, 30 net::URLRequest* request,
31 ScopedVector<ResourceThrottle> throttles); 31 ScopedVector<ResourceThrottle> throttles);
32 virtual ~ThrottlingResourceHandler(); 32 virtual ~ThrottlingResourceHandler();
33 33
34 // LayeredResourceHandler overrides: 34 // LayeredResourceHandler overrides:
35 virtual bool OnRequestRedirected(const net::RedirectInfo& redirect_info, 35 virtual bool OnRequestRedirected(const net::RedirectInfo& redirect_info,
36 ResourceResponse* response, 36 ResourceResponse* response,
37 bool* defer) OVERRIDE; 37 bool* defer) override;
38 virtual bool OnResponseStarted(ResourceResponse* response, 38 virtual bool OnResponseStarted(ResourceResponse* response,
39 bool* defer) OVERRIDE; 39 bool* defer) override;
40 virtual bool OnWillStart(const GURL& url, bool* defer) OVERRIDE; 40 virtual bool OnWillStart(const GURL& url, bool* defer) override;
41 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) OVERRIDE; 41 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) override;
42 42
43 // ResourceController implementation: 43 // ResourceController implementation:
44 virtual void Cancel() OVERRIDE; 44 virtual void Cancel() override;
45 virtual void CancelAndIgnore() OVERRIDE; 45 virtual void CancelAndIgnore() override;
46 virtual void CancelWithError(int error_code) OVERRIDE; 46 virtual void CancelWithError(int error_code) override;
47 virtual void Resume() OVERRIDE; 47 virtual void Resume() override;
48 48
49 private: 49 private:
50 void ResumeStart(); 50 void ResumeStart();
51 void ResumeNetworkStart(); 51 void ResumeNetworkStart();
52 void ResumeRedirect(); 52 void ResumeRedirect();
53 void ResumeResponse(); 53 void ResumeResponse();
54 54
55 // Called when the throttle at |throttle_index| defers a request. Logs the 55 // Called when the throttle at |throttle_index| defers a request. Logs the
56 // name of the throttle that delayed the request. 56 // name of the throttle that delayed the request.
57 void OnRequestDefered(int throttle_index); 57 void OnRequestDefered(int throttle_index);
(...skipping 13 matching lines...) Expand all
71 GURL deferred_url_; 71 GURL deferred_url_;
72 net::RedirectInfo deferred_redirect_; 72 net::RedirectInfo deferred_redirect_;
73 scoped_refptr<ResourceResponse> deferred_response_; 73 scoped_refptr<ResourceResponse> deferred_response_;
74 74
75 bool cancelled_by_resource_throttle_; 75 bool cancelled_by_resource_throttle_;
76 }; 76 };
77 77
78 } // namespace content 78 } // namespace content
79 79
80 #endif // CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ 80 #endif // CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/sync_resource_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698