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

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

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TEST_URL_LOADER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_
6 #define CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_ 6 #define CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 int64_t body_transfer_size() const { return body_transfer_size_; } 70 int64_t body_transfer_size() const { return body_transfer_size_; }
71 int64_t current_upload_position() const { return current_upload_position_; } 71 int64_t current_upload_position() const { return current_upload_position_; }
72 int64_t total_upload_size() const { return total_upload_size_; } 72 int64_t total_upload_size() const { return total_upload_size_; }
73 73
74 void reset_has_received_upload_progress() { 74 void reset_has_received_upload_progress() {
75 has_received_upload_progress_ = false; 75 has_received_upload_progress_ = false;
76 } 76 }
77 77
78 void ClearHasReceivedRedirect(); 78 void ClearHasReceivedRedirect();
79 // Creates an AssociatedPtrInfo, binds it to |*this| and returns it. The 79 // Creates an AssociatedPtrInfo, binds it to |*this| and returns it. The
80 // returned PtrInfo is marked as remote, i.e., expected to be passed to the 80 // returned PtrInfo is expected to be passed to the remote endpoint.
81 // remote endpoint. 81 mojom::URLLoaderClientAssociatedPtrInfo CreateRemoteAssociatedPtrInfo();
82 mojom::URLLoaderClientAssociatedPtrInfo CreateRemoteAssociatedPtrInfo(
83 mojo::AssociatedGroup* associated_group);
84 82
85 void Unbind(); 83 void Unbind();
86 84
87 void RunUntilResponseReceived(); 85 void RunUntilResponseReceived();
88 void RunUntilRedirectReceived(); 86 void RunUntilRedirectReceived();
89 void RunUntilDataDownloaded(); 87 void RunUntilDataDownloaded();
90 void RunUntilCachedMetadataReceived(); 88 void RunUntilCachedMetadataReceived();
91 void RunUntilResponseBodyArrived(); 89 void RunUntilResponseBodyArrived();
92 void RunUntilComplete(); 90 void RunUntilComplete();
93 91
(...skipping 22 matching lines...) Expand all
116 int64_t body_transfer_size_ = 0; 114 int64_t body_transfer_size_ = 0;
117 int64_t current_upload_position_ = 0; 115 int64_t current_upload_position_ = 0;
118 int64_t total_upload_size_ = 0; 116 int64_t total_upload_size_ = 0;
119 117
120 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderClient); 118 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderClient);
121 }; 119 };
122 120
123 } // namespace content 121 } // namespace content
124 122
125 #endif // CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_ 123 #endif // CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/loader/mojo_async_resource_handler_unittest.cc ('k') | content/browser/loader/test_url_loader_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698