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

Side by Side Diff: content/public/test/test_download_request_handler.h

Issue 2828913003: Replace "nested message loop" with "nested run loop" in comments. (Closed)
Patch Set: rebase Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_TEST_TEST_DOWNLOAD_REQUEST_HANDLER_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_DOWNLOAD_REQUEST_HANDLER_H_
6 #define CONTENT_PUBLIC_TEST_TEST_DOWNLOAD_REQUEST_HANDLER_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_DOWNLOAD_REQUEST_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Registers a request handler at the default URL. Call url() to determine the 230 // Registers a request handler at the default URL. Call url() to determine the
231 // URL. 231 // URL.
232 // 232 //
233 // Notes: 233 // Notes:
234 // * This constructor is only meant to be used for convenience when the caller 234 // * This constructor is only meant to be used for convenience when the caller
235 // is not interested in the URL used for interception. The URL used is 235 // is not interested in the URL used for interception. The URL used is
236 // generated at run time and should not be assumed to be the same across 236 // generated at run time and should not be assumed to be the same across
237 // different runs of the same test. 237 // different runs of the same test.
238 // 238 //
239 // * Initialization of the handler synchronously runs a task on the 239 // * Initialization of the handler synchronously runs a task on the
240 // BrowserThread::IO thread using a nested message loop. Only construct an 240 // BrowserThread::IO thread using a nested run loop. Only construct an
241 // instance of this object after browser threads have been initialized. 241 // instance of this object after browser threads have been initialized.
242 TestDownloadRequestHandler(); 242 TestDownloadRequestHandler();
243 243
244 // Similar to the default constructor, but registers the handler at |url|. 244 // Similar to the default constructor, but registers the handler at |url|.
245 // 245 //
246 // Notes: 246 // Notes:
247 // * The behavior is undefined if more than one TestDownloadRequestHandler is 247 // * The behavior is undefined if more than one TestDownloadRequestHandler is
248 // registered for the same URL. 248 // registered for the same URL.
249 TestDownloadRequestHandler(const GURL& url); 249 TestDownloadRequestHandler(const GURL& url);
250 250
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 class PartialResponseJob; 318 class PartialResponseJob;
319 319
320 GURL url_; 320 GURL url_;
321 base::WeakPtr<Interceptor> interceptor_; 321 base::WeakPtr<Interceptor> interceptor_;
322 DISALLOW_COPY_AND_ASSIGN(TestDownloadRequestHandler); 322 DISALLOW_COPY_AND_ASSIGN(TestDownloadRequestHandler);
323 }; 323 };
324 324
325 } // namespace content 325 } // namespace content
326 326
327 #endif // CONTENT_PUBLIC_TEST_TEST_DOWNLOAD_REQUEST_HANDLER_H_ 327 #endif // CONTENT_PUBLIC_TEST_TEST_DOWNLOAD_REQUEST_HANDLER_H_
OLDNEW
« no previous file with comments | « content/public/test/browser_test_base.h ('k') | content/public/test/test_frame_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698