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 "net/base/load_states.h" |
| 11 |
| 12 class GURL; |
| 13 |
| 14 namespace content { |
| 15 |
| 16 // Delegate from loader to the rest of content. Lives on the IO thread. |
| 17 // |
| 18 // This is used for breaking dependencies between content at-large and |
| 19 // content/browser/loader which will eventually be moved to a separate |
| 20 // networking service. All methods in this interface should be asynchronous, |
| 21 // since eventually this will be a Mojo interface. See https://crbug.com/622050 |
| 22 // and https://crbug.com/598073. |
| 23 class LoaderDelegate { |
| 24 public: |
| 25 virtual ~LoaderDelegate() {} |
| 26 |
| 27 // Notification that the load state for the route identified by child_id and |
| 28 // route_id has changed. |
| 29 virtual void LoadStateChanged(int child_id, |
| 30 int route_id, |
| 31 const GURL& url, |
| 32 const net::LoadStateWithParam& load_state, |
| 33 uint64_t upload_position, |
| 34 uint64_t upload_size) = 0; |
| 35 }; |
| 36 |
| 37 } // namespace content |
| 38 |
| 39 #endif // CONTENT_BROWSER_LOADER_LOADER_DELEGATE_H_ |
OLD | NEW |