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

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

Issue 129173002: Adds the new URLRequest::OnBeforeNetworkStart hook to the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@defer_1_net
Patch Set: Created 6 years, 11 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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/loader/resource_handler.h" 9 #include "content/browser/loader/resource_handler.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 17 matching lines...) Expand all
28 virtual bool OnUploadProgress(int request_id, uint64 position, 28 virtual bool OnUploadProgress(int request_id, uint64 position,
29 uint64 size) OVERRIDE; 29 uint64 size) OVERRIDE;
30 virtual bool OnRequestRedirected(int request_id, const GURL& url, 30 virtual bool OnRequestRedirected(int request_id, const GURL& url,
31 ResourceResponse* response, 31 ResourceResponse* response,
32 bool* defer) OVERRIDE; 32 bool* defer) OVERRIDE;
33 virtual bool OnResponseStarted(int request_id, 33 virtual bool OnResponseStarted(int request_id,
34 ResourceResponse* response, 34 ResourceResponse* response,
35 bool* defer) OVERRIDE; 35 bool* defer) OVERRIDE;
36 virtual bool OnWillStart(int request_id, const GURL& url, 36 virtual bool OnWillStart(int request_id, const GURL& url,
37 bool* defer) OVERRIDE; 37 bool* defer) OVERRIDE;
38 virtual bool OnBeforeNetworkStart(int request_id,
39 const GURL& url,
40 bool* defer) OVERRIDE;
38 virtual bool OnWillRead(int request_id, 41 virtual bool OnWillRead(int request_id,
39 scoped_refptr<net::IOBuffer>* buf, 42 scoped_refptr<net::IOBuffer>* buf,
40 int* buf_size, 43 int* buf_size,
41 int min_size) OVERRIDE; 44 int min_size) OVERRIDE;
42 virtual bool OnReadCompleted(int request_id, int bytes_read, 45 virtual bool OnReadCompleted(int request_id, int bytes_read,
43 bool* defer) OVERRIDE; 46 bool* defer) OVERRIDE;
44 virtual void OnResponseCompleted(int request_id, 47 virtual void OnResponseCompleted(int request_id,
45 const net::URLRequestStatus& status, 48 const net::URLRequestStatus& status,
46 const std::string& security_info, 49 const std::string& security_info,
47 bool* defer) OVERRIDE; 50 bool* defer) OVERRIDE;
48 virtual void OnDataDownloaded(int request_id, int bytes_downloaded) OVERRIDE; 51 virtual void OnDataDownloaded(int request_id, int bytes_downloaded) OVERRIDE;
49 52
50 scoped_ptr<ResourceHandler> next_handler_; 53 scoped_ptr<ResourceHandler> next_handler_;
51 }; 54 };
52 55
53 } // namespace content 56 } // namespace content
54 57
55 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ 58 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698