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

Side by Side Diff: content/browser/loader/async_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_ASYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual bool OnRequestRedirected(int request_id, 42 virtual bool OnRequestRedirected(int request_id,
43 const GURL& new_url, 43 const GURL& new_url,
44 ResourceResponse* response, 44 ResourceResponse* response,
45 bool* defer) OVERRIDE; 45 bool* defer) OVERRIDE;
46 virtual bool OnResponseStarted(int request_id, 46 virtual bool OnResponseStarted(int request_id,
47 ResourceResponse* response, 47 ResourceResponse* response,
48 bool* defer) OVERRIDE; 48 bool* defer) OVERRIDE;
49 virtual bool OnWillStart(int request_id, 49 virtual bool OnWillStart(int request_id,
50 const GURL& url, 50 const GURL& url,
51 bool* defer) OVERRIDE; 51 bool* defer) OVERRIDE;
52 virtual bool OnBeforeNetworkStart(int request_id,
53 const GURL& url,
54 bool* defer) OVERRIDE;
52 virtual bool OnWillRead(int request_id, 55 virtual bool OnWillRead(int request_id,
53 scoped_refptr<net::IOBuffer>* buf, 56 scoped_refptr<net::IOBuffer>* buf,
54 int* buf_size, 57 int* buf_size,
55 int min_size) OVERRIDE; 58 int min_size) OVERRIDE;
56 virtual bool OnReadCompleted(int request_id, 59 virtual bool OnReadCompleted(int request_id,
57 int bytes_read, 60 int bytes_read,
58 bool* defer) OVERRIDE; 61 bool* defer) OVERRIDE;
59 virtual void OnResponseCompleted(int request_id, 62 virtual void OnResponseCompleted(int request_id,
60 const net::URLRequestStatus& status, 63 const net::URLRequestStatus& status,
61 const std::string& security_info, 64 const std::string& security_info,
(...skipping 26 matching lines...) Expand all
88 bool has_checked_for_sufficient_resources_; 91 bool has_checked_for_sufficient_resources_;
89 bool sent_received_response_msg_; 92 bool sent_received_response_msg_;
90 bool sent_first_data_msg_; 93 bool sent_first_data_msg_;
91 94
92 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); 95 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler);
93 }; 96 };
94 97
95 } // namespace content 98 } // namespace content
96 99
97 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 100 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698