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

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

Issue 10332130: Use defer out-params instead of ResourceDispatcherHostImpl::PauseRequest(...true) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
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_RENDERER_HOST_THROTTLING_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_THROTTLING_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_THROTTLING_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_THROTTLING_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 16 matching lines...) Expand all
27 ResourceHandler* next_handler, 27 ResourceHandler* next_handler,
28 int child_id, 28 int child_id,
29 int request_id, 29 int request_id,
30 ScopedVector<ResourceThrottle> throttles); 30 ScopedVector<ResourceThrottle> throttles);
31 31
32 // LayeredResourceHandler overrides: 32 // LayeredResourceHandler overrides:
33 virtual bool OnRequestRedirected(int request_id, const GURL& url, 33 virtual bool OnRequestRedirected(int request_id, const GURL& url,
34 ResourceResponse* response, 34 ResourceResponse* response,
35 bool* defer) OVERRIDE; 35 bool* defer) OVERRIDE;
36 virtual bool OnResponseStarted(int request_id, 36 virtual bool OnResponseStarted(int request_id,
37 content::ResourceResponse* response) OVERRIDE; 37 content::ResourceResponse* response,
38 bool* defer) OVERRIDE;
38 virtual bool OnWillStart(int request_id, const GURL& url, 39 virtual bool OnWillStart(int request_id, const GURL& url,
39 bool* defer) OVERRIDE; 40 bool* defer) OVERRIDE;
40 virtual void OnRequestClosed() OVERRIDE; 41 virtual void OnRequestClosed() OVERRIDE;
41 42
42 // ResourceThrottleController implementation: 43 // ResourceThrottleController implementation:
43 virtual void Cancel() OVERRIDE; 44 virtual void Cancel() OVERRIDE;
44 virtual void Resume() OVERRIDE; 45 virtual void Resume() OVERRIDE;
45 46
46 private: 47 private:
47 virtual ~ThrottlingResourceHandler(); 48 virtual ~ThrottlingResourceHandler();
(...skipping 17 matching lines...) Expand all
65 ScopedVector<ResourceThrottle> throttles_; 66 ScopedVector<ResourceThrottle> throttles_;
66 size_t index_; 67 size_t index_;
67 68
68 GURL deferred_url_; 69 GURL deferred_url_;
69 scoped_refptr<ResourceResponse> deferred_response_; 70 scoped_refptr<ResourceResponse> deferred_response_;
70 }; 71 };
71 72
72 } // namespace content 73 } // namespace content
73 74
74 #endif // CONTENT_BROWSER_RENDERER_HOST_THROTTLING_RESOURCE_HANDLER_H_ 75 #endif // CONTENT_BROWSER_RENDERER_HOST_THROTTLING_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/sync_resource_handler.cc ('k') | content/browser/renderer_host/throttling_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698