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

Side by Side Diff: content/renderer/pepper/pepper_hung_plugin_filter.h

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Landing Created 6 years, 6 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_RENDERER_PEPPER_PEPPER_HUNG_PLUGIN_FILTER_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_HUNG_PLUGIN_FILTER_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_HUNG_PLUGIN_FILTER_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_HUNG_PLUGIN_FILTER_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 25 matching lines...) Expand all
36 // this to identify the proper plugin process to terminate. 36 // this to identify the proper plugin process to terminate.
37 PepperHungPluginFilter(const base::FilePath& plugin_path, 37 PepperHungPluginFilter(const base::FilePath& plugin_path,
38 int frame_routing_id, 38 int frame_routing_id,
39 int plugin_child_id); 39 int plugin_child_id);
40 40
41 // SyncMessageStatusReceiver implementation. 41 // SyncMessageStatusReceiver implementation.
42 virtual void BeginBlockOnSyncMessage() OVERRIDE; 42 virtual void BeginBlockOnSyncMessage() OVERRIDE;
43 virtual void EndBlockOnSyncMessage() OVERRIDE; 43 virtual void EndBlockOnSyncMessage() OVERRIDE;
44 44
45 // MessageFilter implementation. 45 // MessageFilter implementation.
46 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; 46 virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE;
47 virtual void OnFilterRemoved() OVERRIDE; 47 virtual void OnFilterRemoved() OVERRIDE;
48 virtual void OnChannelError() OVERRIDE; 48 virtual void OnChannelError() OVERRIDE;
49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
50 50
51 protected: 51 protected:
52 virtual ~PepperHungPluginFilter(); 52 virtual ~PepperHungPluginFilter();
53 53
54 private: 54 private:
55 // Makes sure that the hung timer is scheduled. 55 // Makes sure that the hung timer is scheduled.
56 void EnsureTimerScheduled(); 56 void EnsureTimerScheduled();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool hung_plugin_showing_; 105 bool hung_plugin_showing_;
106 106
107 bool timer_task_pending_; 107 bool timer_task_pending_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(PepperHungPluginFilter); 109 DISALLOW_COPY_AND_ASSIGN(PepperHungPluginFilter);
110 }; 110 };
111 111
112 } // namespace content 112 } // namespace content
113 113
114 #endif // CONTENT_RENDERER_PEPPER_PEPPER_HUNG_PLUGIN_FILTER_H_ 114 #endif // CONTENT_RENDERER_PEPPER_PEPPER_HUNG_PLUGIN_FILTER_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_dispatcher.cc ('k') | content/renderer/pepper/pepper_hung_plugin_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698