OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_ | |
6 #define CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_ | |
7 | |
8 #include <inttypes.h> | |
9 | |
10 #include "content/browser/loader/global_routing_id.h" | |
jam
2016/06/28 16:23:49
nit: how about just sending child_id and route_id
scottmg
2016/06/28 18:33:38
Done.
| |
11 #include "net/base/load_states.h" | |
12 | |
13 class GURL; | |
14 | |
15 namespace content { | |
16 | |
17 // Delegate from loader to the rest of content. Lives on the IO thread. | |
jam
2016/06/28 16:23:49
nit: to help others understand how this differs fr
scottmg
2016/06/28 18:33:38
Done.
| |
18 class LoaderDelegate { | |
19 public: | |
20 virtual ~LoaderDelegate() {} | |
21 | |
22 virtual void LoadStateChanged(const GlobalRoutingID& routing_id, | |
jam
2016/06/28 16:23:49
nit: please document
scottmg
2016/06/28 18:33:38
Done.
| |
23 const GURL& url, | |
24 const net::LoadStateWithParam& load_state, | |
25 uint64_t upload_position, | |
26 uint64_t upload_size) = 0; | |
27 }; | |
28 | |
29 } // namespace content | |
30 | |
31 #endif // CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_ | |
OLD | NEW |