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

Unified Diff: content/browser/loader/null_resource_controller.h

Issue 2526983002: Refactor ResourceHandler API. (Closed)
Patch Set: Fix merge Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/null_resource_controller.h
diff --git a/content/browser/loader/null_resource_controller.h b/content/browser/loader/null_resource_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..aebcc004eaef70b716dfa6c387d9c52f5d6d9f53
--- /dev/null
+++ b/content/browser/loader/null_resource_controller.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_NULL_RESOURCE_CONTROLLER_H_
+#define CONTENT_BROWSER_LOADER_NULL_RESOURCE_CONTROLLER_H_
+
+#include "base/macros.h"
+#include "content/browser/loader/resource_controller.h"
+
+namespace content {
+
+class NullResourceController : public ResourceController {
mmenke 2017/01/23 23:15:18 I really want to get rid of this class in the futu
+ public:
+ explicit NullResourceController(bool* was_resumed);
+ ~NullResourceController() override;
+
+ void Cancel() override;
+ void CancelAndIgnore() override;
+ void CancelWithError(int error_code) override;
+ void Resume() override;
+
+ private:
+ bool* was_resumed_;
+
+ DISALLOW_COPY_AND_ASSIGN(NullResourceController);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_LOADER_NULL_RESOURCE_CONTROLLER_H_
« no previous file with comments | « content/browser/loader/navigation_resource_handler.cc ('k') | content/browser/loader/null_resource_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698