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

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

Issue 10578055: Rewrite guts of ResourceLoader and BufferedResourceHandler to suck less. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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_DOOMED_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/renderer_host/resource_handler.h" 10 #include "content/browser/renderer_host/resource_handler.h"
(...skipping 24 matching lines...) Expand all
35 ResourceResponse* response, 35 ResourceResponse* response,
36 bool* defer) OVERRIDE; 36 bool* defer) OVERRIDE;
37 virtual bool OnWillStart(int request_id, 37 virtual bool OnWillStart(int request_id,
38 const GURL& url, 38 const GURL& url,
39 bool* defer) OVERRIDE; 39 bool* defer) OVERRIDE;
40 virtual bool OnWillRead(int request_id, 40 virtual bool OnWillRead(int request_id,
41 net::IOBuffer** buf, 41 net::IOBuffer** buf,
42 int* buf_size, 42 int* buf_size,
43 int min_size) OVERRIDE; 43 int min_size) OVERRIDE;
44 virtual bool OnReadCompleted(int request_id, 44 virtual bool OnReadCompleted(int request_id,
45 int* bytes_read, 45 int bytes_read,
46 bool* defer) OVERRIDE; 46 bool* defer) OVERRIDE;
47 virtual bool OnResponseCompleted(int request_id, 47 virtual bool OnResponseCompleted(int request_id,
48 const net::URLRequestStatus& status, 48 const net::URLRequestStatus& status,
49 const std::string& security_info) OVERRIDE; 49 const std::string& security_info) OVERRIDE;
50 virtual void OnDataDownloaded(int request_id, 50 virtual void OnDataDownloaded(int request_id,
51 int bytes_downloaded) OVERRIDE; 51 int bytes_downloaded) OVERRIDE;
52 52
53 private: 53 private:
54 scoped_ptr<ResourceHandler> old_handler_; 54 scoped_ptr<ResourceHandler> old_handler_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(DoomedResourceHandler); 56 DISALLOW_COPY_AND_ASSIGN(DoomedResourceHandler);
57 }; 57 };
58 58
59 } // namespace content 59 } // namespace content
60 60
61 #endif // CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ 61 #endif // CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/cross_site_resource_handler.cc ('k') | content/browser/renderer_host/doomed_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698