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

Side by Side Diff: content/browser/loader/layered_resource_handler.h

Issue 2005273002: Move MimeTypeResourceHandler before ThrottlingResourceHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_LAYERED_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/browser/loader/resource_handler.h" 10 #include "content/browser/loader/resource_handler.h"
(...skipping 22 matching lines...) Expand all
33 bool OnWillStart(const GURL& url, bool* defer) override; 33 bool OnWillStart(const GURL& url, bool* defer) override;
34 bool OnBeforeNetworkStart(const GURL& url, bool* defer) override; 34 bool OnBeforeNetworkStart(const GURL& url, bool* defer) override;
35 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 35 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
36 int* buf_size, 36 int* buf_size,
37 int min_size) override; 37 int min_size) override;
38 bool OnReadCompleted(int bytes_read, bool* defer) override; 38 bool OnReadCompleted(int bytes_read, bool* defer) override;
39 void OnResponseCompleted(const net::URLRequestStatus& status, 39 void OnResponseCompleted(const net::URLRequestStatus& status,
40 const std::string& security_info, 40 const std::string& security_info,
41 bool* defer) override; 41 bool* defer) override;
42 void OnDataDownloaded(int bytes_downloaded) override; 42 void OnDataDownloaded(int bytes_downloaded) override;
43 bool IsLeafHandler() const override;
44 void InstallNewLeafHandler(
45 std::unique_ptr<ResourceHandler> new_handler,
46 const std::string& payload_for_old_handler) override;
43 47
44 std::unique_ptr<ResourceHandler> next_handler_; 48 std::unique_ptr<ResourceHandler> next_handler_;
45 }; 49 };
46 50
47 } // namespace content 51 } // namespace content
48 52
49 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ 53 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698