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

Unified Diff: content/public/browser/loader_io_thread_notifier.h

Issue 1542743002: [RDHI] Refactored blocked_loaders_map_ to key by render frame route id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 12 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/public/browser/loader_io_thread_notifier.h
diff --git a/content/public/browser/loader_io_thread_notifier.h b/content/public/browser/loader_io_thread_notifier.h
new file mode 100644
index 0000000000000000000000000000000000000000..3724d1ff755c2954cc580c5e7ec5d304d321e563
--- /dev/null
+++ b/content/public/browser/loader_io_thread_notifier.h
@@ -0,0 +1,26 @@
+// Copyright 2015 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_PUBLIC_BROWSER_IO_THREAD_NOTIFIER_H_
+#define CONTENT_PUBLIC_BROWSER_IO_THREAD_NOTIFIER_H_
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+class RenderFrameHost;
+
+// This class is responsible for notifying the IO thread (specifically, the
+// ResourceDispatcherHostImpl) of frame events. It also contains static methods
+// to aid in letting consumers send notifications.
+class CONTENT_EXPORT LoaderIOThreadNotifier {
+ public:
+ virtual ~LoaderIOThreadNotifier() {}
+ static void BlockRequestsForFrame(RenderFrameHost* frame_host);
+ static void ResumeBlockedRequestsForFrame(RenderFrameHost* frame_host);
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_IO_THREAD_NOTIFIER_H_

Powered by Google App Engine
This is Rietveld 408576698