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

Side by Side Diff: content/browser/download/save_file_resource_handler.h

Issue 2315443003: Stop sending serialized SSLStatus to the renderer. (Closed)
Patch Set: self review fix and merge fix Created 4 years, 3 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
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_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Creates a new buffer, which will be handed to the download thread for file 63 // Creates a new buffer, which will be handed to the download thread for file
64 // writing and deletion. 64 // writing and deletion.
65 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 65 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
66 int* buf_size, 66 int* buf_size,
67 int min_size) override; 67 int min_size) override;
68 68
69 // Passes the buffer to the download file writer. 69 // Passes the buffer to the download file writer.
70 bool OnReadCompleted(int bytes_read, bool* defer) override; 70 bool OnReadCompleted(int bytes_read, bool* defer) override;
71 71
72 void OnResponseCompleted(const net::URLRequestStatus& status, 72 void OnResponseCompleted(const net::URLRequestStatus& status,
73 const std::string& security_info,
74 bool* defer) override; 73 bool* defer) override;
75 74
76 // N/A to this flavor of SaveFileResourceHandler. 75 // N/A to this flavor of SaveFileResourceHandler.
77 void OnDataDownloaded(int bytes_downloaded) override; 76 void OnDataDownloaded(int bytes_downloaded) override;
78 77
79 // If the content-length header is not present (or contains something other 78 // If the content-length header is not present (or contains something other
80 // than numbers), StringToInt64 returns 0, which indicates 'unknown size' and 79 // than numbers), StringToInt64 returns 0, which indicates 'unknown size' and
81 // is handled correctly by the SaveManager. 80 // is handled correctly by the SaveManager.
82 void set_content_length(const std::string& content_length); 81 void set_content_length(const std::string& content_length);
83 82
(...skipping 16 matching lines...) Expand all
100 AuthorizationState authorization_state_; 99 AuthorizationState authorization_state_;
101 100
102 static const int kReadBufSize = 32768; // bytes 101 static const int kReadBufSize = 32768; // bytes
103 102
104 DISALLOW_COPY_AND_ASSIGN(SaveFileResourceHandler); 103 DISALLOW_COPY_AND_ASSIGN(SaveFileResourceHandler);
105 }; 104 };
106 105
107 } // namespace content 106 } // namespace content
108 107
109 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ 108 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | content/browser/download/save_file_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698