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

Side by Side Diff: content/browser/renderer_host/x509_user_cert_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_X509_USER_CERT_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_X509_USER_CERT_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_X509_USER_CERT_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_X509_USER_CERT_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool* defer) OVERRIDE; 56 bool* defer) OVERRIDE;
57 57
58 // Create a new buffer to store received data. 58 // Create a new buffer to store received data.
59 virtual bool OnWillRead(int request_id, 59 virtual bool OnWillRead(int request_id,
60 net::IOBuffer** buf, 60 net::IOBuffer** buf,
61 int* buf_size, 61 int* buf_size,
62 int min_size) OVERRIDE; 62 int min_size) OVERRIDE;
63 63
64 // A read was completed, maybe allocate a new buffer for further data. 64 // A read was completed, maybe allocate a new buffer for further data.
65 virtual bool OnReadCompleted(int request_id, 65 virtual bool OnReadCompleted(int request_id,
66 int* bytes_read, 66 int bytes_read,
67 bool* defer) OVERRIDE; 67 bool* defer) OVERRIDE;
68 68
69 // Done downloading the certificate. 69 // Done downloading the certificate.
70 virtual bool OnResponseCompleted(int request_id, 70 virtual bool OnResponseCompleted(int request_id,
71 const net::URLRequestStatus& urs, 71 const net::URLRequestStatus& urs,
72 const std::string& sec_info) OVERRIDE; 72 const std::string& sec_info) OVERRIDE;
73 73
74 private: 74 private:
75 typedef std::vector<std::pair<scoped_refptr<net::IOBuffer>, 75 typedef std::vector<std::pair<scoped_refptr<net::IOBuffer>,
76 size_t> > ContentVector; 76 size_t> > ContentVector;
(...skipping 10 matching lines...) Expand all
87 int render_process_host_id_; 87 int render_process_host_id_;
88 // The id of the |RenderView| which started the download. 88 // The id of the |RenderView| which started the download.
89 int render_view_id_; 89 int render_view_id_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(X509UserCertResourceHandler); 91 DISALLOW_COPY_AND_ASSIGN(X509UserCertResourceHandler);
92 }; 92 };
93 93
94 } // namespace content 94 } // namespace content
95 95
96 #endif // CONTENT_BROWSER_RENDERER_HOST_X509_USER_CERT_RESOURCE_HANDLER_H_ 96 #endif // CONTENT_BROWSER_RENDERER_HOST_X509_USER_CERT_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698