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

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

Issue 10640019: Remove the HANDLED_EXTERNALLY status code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: revert removing DCHECK from URLRequest::DoCancel Created 8 years, 4 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 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 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/renderer_host/layered_resource_handler.h" 10 #include "content/browser/renderer_host/layered_resource_handler.h"
(...skipping 21 matching lines...) Expand all
32 ResourceResponse* response, 32 ResourceResponse* response,
33 bool* defer) OVERRIDE; 33 bool* defer) OVERRIDE;
34 virtual bool OnResponseStarted(int request_id, 34 virtual bool OnResponseStarted(int request_id,
35 content::ResourceResponse* response, 35 content::ResourceResponse* response,
36 bool* defer) OVERRIDE; 36 bool* defer) OVERRIDE;
37 virtual bool OnWillStart(int request_id, const GURL& url, 37 virtual bool OnWillStart(int request_id, const GURL& url,
38 bool* defer) OVERRIDE; 38 bool* defer) OVERRIDE;
39 39
40 // ResourceThrottleController implementation: 40 // ResourceThrottleController implementation:
41 virtual void Cancel() OVERRIDE; 41 virtual void Cancel() OVERRIDE;
42 virtual void CancelWithError(int error) OVERRIDE;
43 virtual void HandledExternally() OVERRIDE;
42 virtual void Resume() OVERRIDE; 44 virtual void Resume() OVERRIDE;
43 45
44 private: 46 private:
45 void ResumeStart(); 47 void ResumeStart();
46 void ResumeRedirect(); 48 void ResumeRedirect();
47 void ResumeResponse(); 49 void ResumeResponse();
48 50
49 enum DeferredStage { 51 enum DeferredStage {
50 DEFERRED_NONE, 52 DEFERRED_NONE,
51 DEFERRED_START, 53 DEFERRED_START,
52 DEFERRED_REDIRECT, 54 DEFERRED_REDIRECT,
53 DEFERRED_RESPONSE 55 DEFERRED_RESPONSE
54 }; 56 };
55 DeferredStage deferred_stage_; 57 DeferredStage deferred_stage_;
56 58
57 int request_id_; 59 int request_id_;
58 60
59 ScopedVector<ResourceThrottle> throttles_; 61 ScopedVector<ResourceThrottle> throttles_;
60 size_t index_; 62 size_t index_;
61 63
62 GURL deferred_url_; 64 GURL deferred_url_;
63 scoped_refptr<ResourceResponse> deferred_response_; 65 scoped_refptr<ResourceResponse> deferred_response_;
64 }; 66 };
65 67
66 } // namespace content 68 } // namespace content
67 69
68 #endif // CONTENT_BROWSER_RENDERER_HOST_THROTTLING_RESOURCE_HANDLER_H_ 70 #endif // CONTENT_BROWSER_RENDERER_HOST_THROTTLING_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698