diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
commit | 679147eead574d186ebf3069647b4c23e8ccace6 (patch) | |
tree | fc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/content/browser/loader/resource_scheduler_filter.h | |
download | qtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz |
Initial import.
Diffstat (limited to 'chromium/content/browser/loader/resource_scheduler_filter.h')
-rw-r--r-- | chromium/content/browser/loader/resource_scheduler_filter.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/chromium/content/browser/loader/resource_scheduler_filter.h b/chromium/content/browser/loader/resource_scheduler_filter.h new file mode 100644 index 00000000000..05a8631a2a0 --- /dev/null +++ b/chromium/content/browser/loader/resource_scheduler_filter.h @@ -0,0 +1,33 @@ +// Copyright (c) 2012 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_RESOURCE_SCHEDULER_FILTER_H_ +#define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_ + +#include "content/public/browser/browser_message_filter.h" + +namespace content { + +// This class listens for incoming ViewHostMsgs that are applicable to the +// ResourceScheduler and invokes the appropriate notifications. It must be +// inserted before the RenderMessageFilter, because the ResourceScheduler runs +// on the IO thread and we want to see the messages before the view messages are +// bounced to the UI thread. +class ResourceSchedulerFilter : public BrowserMessageFilter { + public: + explicit ResourceSchedulerFilter(int child_id); + + // BrowserMessageFilter methods: + virtual bool OnMessageReceived(const IPC::Message& message, + bool* message_was_ok) OVERRIDE; + + private: + virtual ~ResourceSchedulerFilter(); + + int child_id_; +}; + +} // namespace content + +#endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_ |