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

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

Issue 2526983002: Refactor ResourceHandler API. (Closed)
Patch Set: Fix stuff Created 4 years 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
(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/public/browser/resource_controller.h"
10
11 namespace content {
12
13 class NullResourceController : public ResourceController {
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698