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

Unified Diff: content/browser/renderer_host/x509_user_cert_resource_handler.h

Issue 10074001: Initial implementation of the ByteStream refactor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Checkpoint and merge to LKGR. Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/x509_user_cert_resource_handler.h
diff --git a/content/browser/renderer_host/x509_user_cert_resource_handler.h b/content/browser/renderer_host/x509_user_cert_resource_handler.h
index 3c19a7d8affa4e9f93311c15fc8e6d18cec7c7f2..9f5d57d62ec1f5a57f004a302831a53a1d5886d2 100644
--- a/content/browser/renderer_host/x509_user_cert_resource_handler.h
+++ b/content/browser/renderer_host/x509_user_cert_resource_handler.h
@@ -7,9 +7,10 @@
#pragma once
#include <string>
+#include <utility>
+#include <vector>
#include "base/memory/scoped_ptr.h"
-#include "content/browser/download/download_buffer.h"
#include "content/browser/renderer_host/resource_handler.h"
#include "googleurl/src/gurl.h"
@@ -66,6 +67,9 @@ class X509UserCertResourceHandler : public ResourceHandler {
virtual void OnRequestClosed() OVERRIDE;
private:
+ typedef std::vector<std::pair<scoped_refptr<net::IOBuffer>,
+ size_t> > ContentVector;
+
virtual ~X509UserCertResourceHandler();
void AssembleResource();
@@ -73,7 +77,7 @@ class X509UserCertResourceHandler : public ResourceHandler {
GURL url_;
net::URLRequest* request_;
size_t content_length_;
- content::ContentVector buffer_;
+ ContentVector buffer_;
scoped_refptr<net::IOBuffer> read_buffer_;
scoped_refptr<net::IOBuffer> resource_buffer_; // Downloaded certificate.
// The id of the |RenderProcessHost| which started the download.
« no previous file with comments | « content/browser/download/download_stats.cc ('k') | content/browser/renderer_host/x509_user_cert_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698