OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |