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

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

Issue 2762953004: Remove inline small resource transfer experiment (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 10 #include <memory>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int* buf_size, 54 int* buf_size,
55 std::unique_ptr<ResourceController> controller) override; 55 std::unique_ptr<ResourceController> controller) override;
56 void OnReadCompleted(int bytes_read, 56 void OnReadCompleted(int bytes_read,
57 std::unique_ptr<ResourceController> controller) override; 57 std::unique_ptr<ResourceController> controller) override;
58 void OnResponseCompleted( 58 void OnResponseCompleted(
59 const net::URLRequestStatus& status, 59 const net::URLRequestStatus& status,
60 std::unique_ptr<ResourceController> controller) override; 60 std::unique_ptr<ResourceController> controller) override;
61 void OnDataDownloaded(int bytes_downloaded) override; 61 void OnDataDownloaded(int bytes_downloaded) override;
62 62
63 private: 63 private:
64 class InliningHelper;
65
66 // IPC message handlers: 64 // IPC message handlers:
67 void OnFollowRedirect(int request_id); 65 void OnFollowRedirect(int request_id);
68 void OnDataReceivedACK(int request_id); 66 void OnDataReceivedACK(int request_id);
69 void OnUploadProgressACK(int request_id); 67 void OnUploadProgressACK(int request_id);
70 68
71 bool EnsureResourceBufferIsInitialized(); 69 bool EnsureResourceBufferIsInitialized();
72 void ResumeIfDeferred(); 70 void ResumeIfDeferred();
73 void OnDefer(std::unique_ptr<ResourceController> controller); 71 void OnDefer(std::unique_ptr<ResourceController> controller);
74 bool CheckForSufficientResource(); 72 bool CheckForSufficientResource();
75 int CalculateEncodedDataLengthToReport(); 73 int CalculateEncodedDataLengthToReport();
(...skipping 13 matching lines...) Expand all
89 // Size of received body. Used for comparison with expected content size, 87 // Size of received body. Used for comparison with expected content size,
90 // which is reported to UMA. 88 // which is reported to UMA.
91 int64_t total_read_body_bytes_; 89 int64_t total_read_body_bytes_;
92 90
93 bool first_chunk_read_ = false; 91 bool first_chunk_read_ = false;
94 92
95 bool has_checked_for_sufficient_resources_; 93 bool has_checked_for_sufficient_resources_;
96 bool sent_received_response_msg_; 94 bool sent_received_response_msg_;
97 bool sent_data_buffer_msg_; 95 bool sent_data_buffer_msg_;
98 96
99 std::unique_ptr<InliningHelper> inlining_helper_;
100 base::TimeTicks response_started_ticks_; 97 base::TimeTicks response_started_ticks_;
101 98
102 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; 99 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_;
103 100
104 int64_t reported_transfer_size_; 101 int64_t reported_transfer_size_;
105 102
106 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); 103 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler);
107 }; 104 };
108 105
109 } // namespace content 106 } // namespace content
110 107
111 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 108 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698