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_NULL_RESOURCE_CONTROLLER_H_ | |
6 #define CONTENT_BROWSER_LOADER_NULL_RESOURCE_CONTROLLER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "content/browser/loader/resource_controller.h" | |
10 | |
11 namespace content { | |
12 | |
13 class NullResourceController : public ResourceController { | |
mmenke
2017/01/23 23:15:18
I really want to get rid of this class in the futu
| |
14 public: | |
15 explicit NullResourceController(bool* was_resumed); | |
16 ~NullResourceController() override; | |
17 | |
18 void Cancel() override; | |
19 void CancelAndIgnore() override; | |
20 void CancelWithError(int error_code) override; | |
21 void Resume() override; | |
22 | |
23 private: | |
24 bool* was_resumed_; | |
25 | |
26 DISALLOW_COPY_AND_ASSIGN(NullResourceController); | |
27 }; | |
28 | |
29 } // namespace content | |
30 | |
31 #endif // CONTENT_BROWSER_LOADER_NULL_RESOURCE_CONTROLLER_H_ | |
OLD | NEW |