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

Side by Side Diff: content/browser/renderer_host/buffered_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_BUFFERED_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 int min_size) OVERRIDE; 46 int min_size) OVERRIDE;
47 virtual bool OnReadCompleted(int request_id, int bytes_read, 47 virtual bool OnReadCompleted(int request_id, int bytes_read,
48 bool* defer) OVERRIDE; 48 bool* defer) OVERRIDE;
49 virtual bool OnResponseCompleted(int request_id, 49 virtual bool OnResponseCompleted(int request_id,
50 const net::URLRequestStatus& status, 50 const net::URLRequestStatus& status,
51 const std::string& security_info) OVERRIDE; 51 const std::string& security_info) OVERRIDE;
52 52
53 // ResourceController implementation: 53 // ResourceController implementation:
54 virtual void Resume() OVERRIDE; 54 virtual void Resume() OVERRIDE;
55 virtual void Cancel() OVERRIDE; 55 virtual void Cancel() OVERRIDE;
56 virtual void CancelWithError(int error) OVERRIDE;
57 virtual void HandledExternally() OVERRIDE;
56 58
57 bool ProcessResponse(bool* defer); 59 bool ProcessResponse(bool* defer);
58 60
59 bool ShouldSniffContent(); 61 bool ShouldSniffContent();
60 bool DetermineMimeType(); 62 bool DetermineMimeType();
61 bool SelectNextHandler(bool* defer); 63 bool SelectNextHandler(bool* defer);
62 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler); 64 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler);
63 65
64 bool ReplayReadCompleted(bool* defer); 66 bool ReplayReadCompleted(bool* defer);
65 void CallReplayReadCompleted(); 67 void CallReplayReadCompleted();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 106
105 bool must_download_; 107 bool must_download_;
106 bool must_download_is_set_; 108 bool must_download_is_set_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler); 110 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler);
109 }; 111 };
110 112
111 } // namespace content 113 } // namespace content
112 114
113 #endif // CONTENT_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_ 115 #endif // CONTENT_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698