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

Side by Side Diff: content/browser/renderer_host/sync_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_SYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 ResourceResponse* response, 45 ResourceResponse* response,
46 bool* defer) OVERRIDE; 46 bool* defer) OVERRIDE;
47 virtual bool OnWillStart(int request_id, 47 virtual bool OnWillStart(int request_id,
48 const GURL& url, 48 const GURL& url,
49 bool* defer) OVERRIDE; 49 bool* defer) OVERRIDE;
50 virtual bool OnWillRead(int request_id, 50 virtual bool OnWillRead(int request_id,
51 net::IOBuffer** buf, 51 net::IOBuffer** buf,
52 int* buf_size, 52 int* buf_size,
53 int min_size) OVERRIDE; 53 int min_size) OVERRIDE;
54 virtual bool OnReadCompleted(int request_id, 54 virtual bool OnReadCompleted(int request_id,
55 int* bytes_read, 55 int bytes_read,
56 bool* defer) OVERRIDE; 56 bool* defer) OVERRIDE;
57 virtual bool OnResponseCompleted(int request_id, 57 virtual bool OnResponseCompleted(int request_id,
58 const net::URLRequestStatus& status, 58 const net::URLRequestStatus& status,
59 const std::string& security_info) OVERRIDE; 59 const std::string& security_info) OVERRIDE;
60 60
61 private: 61 private:
62 enum { kReadBufSize = 3840 }; 62 enum { kReadBufSize = 3840 };
63 63
64 scoped_refptr<net::IOBuffer> read_buffer_; 64 scoped_refptr<net::IOBuffer> read_buffer_;
65 65
66 SyncLoadResult result_; 66 SyncLoadResult result_;
67 scoped_refptr<ResourceMessageFilter> filter_; 67 scoped_refptr<ResourceMessageFilter> filter_;
68 net::URLRequest* request_; 68 net::URLRequest* request_;
69 IPC::Message* result_message_; 69 IPC::Message* result_message_;
70 ResourceDispatcherHostImpl* rdh_; 70 ResourceDispatcherHostImpl* rdh_;
71 }; 71 };
72 72
73 } // namespace content 73 } // namespace content
74 74
75 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ 75 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_loader.cc ('k') | content/browser/renderer_host/sync_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698