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

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

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_
7 7
8 #include "content/public/browser/browser_message_filter.h" 8 #include "content/public/browser/browser_message_filter.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // This class listens for incoming ViewHostMsgs that are applicable to the 12 // This class listens for incoming ViewHostMsgs that are applicable to the
13 // ResourceScheduler and invokes the appropriate notifications. It must be 13 // ResourceScheduler and invokes the appropriate notifications. It must be
14 // inserted before the RenderMessageFilter, because the ResourceScheduler runs 14 // inserted before the RenderMessageFilter, because the ResourceScheduler runs
15 // on the IO thread and we want to see the messages before the view messages are 15 // on the IO thread and we want to see the messages before the view messages are
16 // bounced to the UI thread. 16 // bounced to the UI thread.
17 class ResourceSchedulerFilter : public BrowserMessageFilter { 17 class ResourceSchedulerFilter : public BrowserMessageFilter {
18 public: 18 public:
19 explicit ResourceSchedulerFilter(int child_id); 19 explicit ResourceSchedulerFilter(int child_id);
20 20
21 // BrowserMessageFilter methods: 21 // BrowserMessageFilter methods:
22 virtual bool OnMessageReceived(const IPC::Message& message, 22 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
23 bool* message_was_ok) OVERRIDE;
24 23
25 private: 24 private:
26 virtual ~ResourceSchedulerFilter(); 25 virtual ~ResourceSchedulerFilter();
27 26
28 int child_id_; 27 int child_id_;
29 }; 28 };
30 29
31 } // namespace content 30 } // namespace content
32 31
33 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_ 32 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_scheduler.cc ('k') | content/browser/loader/resource_scheduler_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698