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

Side by Side Diff: chrome/browser/prerender/prerender_test_utils.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <functional> 9 #include <functional>
10 #include <memory> 10 #include <memory>
(...skipping 13 matching lines...) Expand all
24 #include "components/safe_browsing_db/test_database_manager.h" 24 #include "components/safe_browsing_db/test_database_manager.h"
25 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
26 #include "net/test/url_request/url_request_mock_http_job.h" 26 #include "net/test/url_request/url_request_mock_http_job.h"
27 #include "net/url_request/url_request_interceptor.h" 27 #include "net/url_request/url_request_interceptor.h"
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 namespace base { 30 namespace base {
31 class FilePath; 31 class FilePath;
32 } // namespace base 32 } // namespace base
33 33
34 namespace net {
35 class URLRequest;
36 class NetworkDelegate;
37 } // namespace net
38
39 namespace prerender { 34 namespace prerender {
40 35
41 namespace test_utils { 36 namespace test_utils {
42 37
43 // Dummy counter class to live on the UI thread for counting requests. 38 // Dummy counter class to live on the UI thread for counting requests.
44 class RequestCounter : public base::SupportsWeakPtr<RequestCounter> { 39 class RequestCounter : public base::SupportsWeakPtr<RequestCounter> {
45 public: 40 public:
46 RequestCounter(); 41 RequestCounter();
47 42
48 ~RequestCounter(); 43 ~RequestCounter();
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // |file| afterwards. When the first load has been scheduled, runs |callback| on 377 // |file| afterwards. When the first load has been scheduled, runs |callback| on
383 // the UI thread. 378 // the UI thread.
384 void CreateHangingFirstRequestInterceptorOnIO( 379 void CreateHangingFirstRequestInterceptorOnIO(
385 const GURL& url, const base::FilePath& file, base::Closure callback); 380 const GURL& url, const base::FilePath& file, base::Closure callback);
386 381
387 } // namespace test_utils 382 } // namespace test_utils
388 383
389 } // namespace prerender 384 } // namespace prerender
390 385
391 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ 386 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.h ('k') | chrome/browser/previews/previews_infobar_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698