| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 int render_process_host_id, | 32 int render_process_host_id, |
| 33 int render_view_id); | 33 int render_view_id); |
| 34 | 34 |
| 35 virtual bool OnUploadProgress(int request_id, | 35 virtual bool OnUploadProgress(int request_id, |
| 36 uint64 position, | 36 uint64 position, |
| 37 uint64 size) OVERRIDE; | 37 uint64 size) OVERRIDE; |
| 38 | 38 |
| 39 // Not needed, as this event handler ought to be the final resource. | 39 // Not needed, as this event handler ought to be the final resource. |
| 40 virtual bool OnRequestRedirected(int request_id, | 40 virtual bool OnRequestRedirected(int request_id, |
| 41 const GURL& url, | 41 const GURL& url, |
| 42 ResourceResponse* resp, | 42 content::ResourceResponse* resp, |
| 43 bool* defer) OVERRIDE; | 43 bool* defer) OVERRIDE; |
| 44 | 44 |
| 45 // Check if this indeed an X509 cert. | 45 // Check if this indeed an X509 cert. |
| 46 virtual bool OnResponseStarted(int request_id, | 46 virtual bool OnResponseStarted(int request_id, |
| 47 ResourceResponse* resp) OVERRIDE; | 47 content::ResourceResponse* resp) OVERRIDE; |
| 48 | 48 |
| 49 // Pass-through implementation. | 49 // Pass-through implementation. |
| 50 virtual bool OnWillStart(int request_id, | 50 virtual bool OnWillStart(int request_id, |
| 51 const GURL& url, | 51 const GURL& url, |
| 52 bool* defer) OVERRIDE; | 52 bool* defer) OVERRIDE; |
| 53 | 53 |
| 54 // Create a new buffer to store received data. | 54 // Create a new buffer to store received data. |
| 55 virtual bool OnWillRead(int request_id, | 55 virtual bool OnWillRead(int request_id, |
| 56 net::IOBuffer** buf, | 56 net::IOBuffer** buf, |
| 57 int* buf_size, | 57 int* buf_size, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 83 static const int kReadBufSize = 32768; | 83 static const int kReadBufSize = 32768; |
| 84 // The id of the |RenderProcessHost| which started the download. | 84 // The id of the |RenderProcessHost| which started the download. |
| 85 int render_process_host_id_; | 85 int render_process_host_id_; |
| 86 // The id of the |RenderView| which started the download. | 86 // The id of the |RenderView| which started the download. |
| 87 int render_view_id_; | 87 int render_view_id_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(X509UserCertResourceHandler); | 89 DISALLOW_COPY_AND_ASSIGN(X509UserCertResourceHandler); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 #endif // CONTENT_BROWSER_RENDERER_HOST_X509_USER_CERT_RESOURCE_HANDLER_H_ | 92 #endif // CONTENT_BROWSER_RENDERER_HOST_X509_USER_CERT_RESOURCE_HANDLER_H_ |
| OLD | NEW |