| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |