Chromium Code Reviews| Index: content/browser/loader/loader_delegate.h |
| diff --git a/content/browser/loader/loader_delegate.h b/content/browser/loader/loader_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c76de48f254821a6175895eeb05f899cc9bf6b04 |
| --- /dev/null |
| +++ b/content/browser/loader/loader_delegate.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_ |
| +#define CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_ |
| + |
| +#include <inttypes.h> |
| + |
| +#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.
|
| +#include "net/base/load_states.h" |
| + |
| +class GURL; |
| + |
| +namespace content { |
| + |
| +// 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.
|
| +class LoaderDelegate { |
| + public: |
| + virtual ~LoaderDelegate() {} |
| + |
| + 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.
|
| + const GURL& url, |
| + const net::LoadStateWithParam& load_state, |
| + uint64_t upload_position, |
| + uint64_t upload_size) = 0; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_ |