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

Side by Side Diff: content/browser/loader/mime_sniffing_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_LOADER_MIME_SNIFFING_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_MIME_SNIFFING_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_MIME_SNIFFING_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_MIME_SNIFFING_RESOURCE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // ResourceHandler implementation: 79 // ResourceHandler implementation:
80 void SetController(ResourceController* controller) override; 80 void SetController(ResourceController* controller) override;
81 bool OnWillStart(const GURL&, bool* defer) override; 81 bool OnWillStart(const GURL&, bool* defer) override;
82 bool OnResponseStarted(ResourceResponse* response, bool* defer) override; 82 bool OnResponseStarted(ResourceResponse* response, bool* defer) override;
83 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 83 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
84 int* buf_size, 84 int* buf_size,
85 int min_size) override; 85 int min_size) override;
86 bool OnReadCompleted(int bytes_read, bool* defer) override; 86 bool OnReadCompleted(int bytes_read, bool* defer) override;
87 void OnResponseCompleted(const net::URLRequestStatus& status, 87 void OnResponseCompleted(const net::URLRequestStatus& status,
88 const std::string& security_info,
89 bool* defer) override; 88 bool* defer) override;
90 89
91 // ResourceController implementation: 90 // ResourceController implementation:
92 void Resume() override; 91 void Resume() override;
93 void Cancel() override; 92 void Cancel() override;
94 void CancelAndIgnore() override; 93 void CancelAndIgnore() override;
95 void CancelWithError(int error_code) override; 94 void CancelWithError(int error_code) override;
96 95
97 // -------------------------------------------------------------------------- 96 // --------------------------------------------------------------------------
98 // The following methods replay the buffered data to the downstream 97 // The following methods replay the buffered data to the downstream
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 InterceptingResourceHandler* intercepting_handler_; 166 InterceptingResourceHandler* intercepting_handler_;
168 167
169 base::WeakPtrFactory<MimeSniffingResourceHandler> weak_ptr_factory_; 168 base::WeakPtrFactory<MimeSniffingResourceHandler> weak_ptr_factory_;
170 169
171 DISALLOW_COPY_AND_ASSIGN(MimeSniffingResourceHandler); 170 DISALLOW_COPY_AND_ASSIGN(MimeSniffingResourceHandler);
172 }; 171 };
173 172
174 } // namespace content 173 } // namespace content
175 174
176 #endif // CONTENT_BROWSER_LOADER_MIME_SNIFFING_RESOURCE_HANDLER_H_ 175 #endif // CONTENT_BROWSER_LOADER_MIME_SNIFFING_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/layered_resource_handler.cc ('k') | content/browser/loader/mime_sniffing_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698