| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |