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

Side by Side Diff: chrome/browser/prerender/prerender_pending_swap_throttle.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PRERENDER_PRERENDER_PENDING_SWAP_THROTTLE_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_PENDING_SWAP_THROTTLE_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_PENDING_SWAP_THROTTLE_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_PENDING_SWAP_THROTTLE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 13 matching lines...) Expand all
24 // succeeded, we will swap the prerender, making the underlying request 24 // succeeded, we will swap the prerender, making the underlying request
25 // obsolete. 25 // obsolete.
26 class PrerenderPendingSwapThrottle 26 class PrerenderPendingSwapThrottle
27 : public content::ResourceThrottle, 27 : public content::ResourceThrottle,
28 public base::SupportsWeakPtr<PrerenderPendingSwapThrottle> { 28 public base::SupportsWeakPtr<PrerenderPendingSwapThrottle> {
29 public: 29 public:
30 PrerenderPendingSwapThrottle(net::URLRequest* request, 30 PrerenderPendingSwapThrottle(net::URLRequest* request,
31 PrerenderTracker* tracker); 31 PrerenderTracker* tracker);
32 32
33 // content::ResourceThrottle implementation: 33 // content::ResourceThrottle implementation:
34 virtual void WillStartRequest(bool* defer) OVERRIDE; 34 virtual void WillStartRequest(bool* defer) override;
35 35
36 virtual const char* GetNameForLogging() const OVERRIDE; 36 virtual const char* GetNameForLogging() const override;
37 37
38 // Called by the PrerenderTracker when the swap failed. 38 // Called by the PrerenderTracker when the swap failed.
39 // May only be called if currently throttling the resource. 39 // May only be called if currently throttling the resource.
40 void Resume(); 40 void Resume();
41 41
42 // Called by the PrerenderTracker when the swap succeeded. 42 // Called by the PrerenderTracker when the swap succeeded.
43 // May only be called if currently throttling the resource. 43 // May only be called if currently throttling the resource.
44 void Cancel(); 44 void Cancel();
45 45
46 private: 46 private:
47 net::URLRequest* request_; 47 net::URLRequest* request_;
48 PrerenderTracker* tracker_; 48 PrerenderTracker* tracker_;
49 bool throttled_; 49 bool throttled_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(PrerenderPendingSwapThrottle); 51 DISALLOW_COPY_AND_ASSIGN(PrerenderPendingSwapThrottle);
52 }; 52 };
53 53
54 } // namespace prerender 54 } // namespace prerender
55 55
56 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_PENDING_SWAP_THROTTLE_H_ 56 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_PENDING_SWAP_THROTTLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_message_filter.h ('k') | chrome/browser/prerender/prerender_resource_throttle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698