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

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

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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_SYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "content/browser/loader/resource_dispatcher_host_impl.h" 12 #include "content/browser/loader/resource_dispatcher_host_impl.h"
13 #include "content/browser/loader/resource_handler.h" 13 #include "content/browser/loader/resource_handler.h"
14 #include "content/public/common/resource_response.h" 14 #include "content/public/common/resource_response.h"
15 15
16 namespace IPC { 16 namespace IPC {
17 class Message; 17 class Message;
18 } 18 }
19 19
20 namespace net { 20 namespace net {
21 class IOBuffer; 21 class IOBuffer;
22 class URLRequest; 22 class URLRequest;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 class ResourceContext;
27 class ResourceMessageFilter;
28 26
29 // Used to complete a synchronous resource request in response to resource load 27 // Used to complete a synchronous resource request in response to resource load
30 // events from the resource dispatcher host. 28 // events from the resource dispatcher host.
31 class SyncResourceHandler : public ResourceHandler { 29 class SyncResourceHandler : public ResourceHandler {
32 public: 30 public:
33 using SyncLoadResultCallback = 31 using SyncLoadResultCallback =
34 ResourceDispatcherHostImpl::SyncLoadResultCallback; 32 ResourceDispatcherHostImpl::SyncLoadResultCallback;
35 33
36 SyncResourceHandler(net::URLRequest* request, 34 SyncResourceHandler(net::URLRequest* request,
37 const SyncLoadResultCallback& sync_result_handler, 35 const SyncLoadResultCallback& sync_result_handler,
(...skipping 20 matching lines...) Expand all
58 56
59 SyncLoadResult result_; 57 SyncLoadResult result_;
60 SyncLoadResultCallback result_handler_; 58 SyncLoadResultCallback result_handler_;
61 ResourceDispatcherHostImpl* rdh_; 59 ResourceDispatcherHostImpl* rdh_;
62 int64_t total_transfer_size_; 60 int64_t total_transfer_size_;
63 }; 61 };
64 62
65 } // namespace content 63 } // namespace content
66 64
67 #endif // CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ 65 #endif // CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_scheduler.h ('k') | content/browser/media/android/browser_media_player_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698