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

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

Issue 2164113002: Remove ResourceHandler::OnBeforeNetworkStart (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops Created 4 years, 5 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 ~AsyncResourceHandler() override; 39 ~AsyncResourceHandler() override;
40 40
41 bool OnMessageReceived(const IPC::Message& message) override; 41 bool OnMessageReceived(const IPC::Message& message) override;
42 42
43 // ResourceHandler implementation: 43 // ResourceHandler implementation:
44 bool OnRequestRedirected(const net::RedirectInfo& redirect_info, 44 bool OnRequestRedirected(const net::RedirectInfo& redirect_info,
45 ResourceResponse* response, 45 ResourceResponse* response,
46 bool* defer) override; 46 bool* defer) override;
47 bool OnResponseStarted(ResourceResponse* response, bool* defer) override; 47 bool OnResponseStarted(ResourceResponse* response, bool* defer) override;
48 bool OnWillStart(const GURL& url, bool* defer) override; 48 bool OnWillStart(const GURL& url, bool* defer) override;
49 bool OnBeforeNetworkStart(const GURL& url, bool* defer) override;
50 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 49 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
51 int* buf_size, 50 int* buf_size,
52 int min_size) override; 51 int min_size) override;
53 bool OnReadCompleted(int bytes_read, bool* defer) override; 52 bool OnReadCompleted(int bytes_read, bool* defer) override;
54 void OnResponseCompleted(const net::URLRequestStatus& status, 53 void OnResponseCompleted(const net::URLRequestStatus& status,
55 const std::string& security_info, 54 const std::string& security_info,
56 bool* defer) override; 55 bool* defer) override;
57 void OnDataDownloaded(int bytes_downloaded) override; 56 void OnDataDownloaded(int bytes_downloaded) override;
58 57
59 private: 58 private:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 98
100 int64_t reported_transfer_size_; 99 int64_t reported_transfer_size_;
101 int64_t reported_encoded_body_length_; 100 int64_t reported_encoded_body_length_;
102 101
103 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); 102 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler);
104 }; 103 };
105 104
106 } // namespace content 105 } // namespace content
107 106
108 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 107 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_file_resource_handler.cc ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698