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_ |