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

Side by Side Diff: chrome/renderer/plugin_channel_host.h

Issue 375005: When a plugin calls NPN_SetException, pass the exception along to every rende... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/plugin/plugin_channel_base.cc ('k') | chrome/renderer/plugin_channel_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ 5 #ifndef CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_
6 #define CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ 6 #define CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "chrome/plugin/plugin_channel_base.h" 9 #include "chrome/plugin/plugin_channel_base.h"
10 10
(...skipping 24 matching lines...) Expand all
35 PluginChannelBase::Broadcast(message); 35 PluginChannelBase::Broadcast(message);
36 } 36 }
37 37
38 private: 38 private:
39 // Called on the render thread 39 // Called on the render thread
40 PluginChannelHost(); 40 PluginChannelHost();
41 ~PluginChannelHost(); 41 ~PluginChannelHost();
42 42
43 static PluginChannelBase* ClassFactory() { return new PluginChannelHost(); } 43 static PluginChannelBase* ClassFactory() { return new PluginChannelHost(); }
44 44
45 void OnControlMessageReceived(const IPC::Message& message);
46 void OnSetException(const std::string& message);
47
45 // Keep track of all the registered WebPluginDelegeProxies to 48 // Keep track of all the registered WebPluginDelegeProxies to
46 // inform about OnChannelError 49 // inform about OnChannelError
47 typedef base::hash_map<int, IPC::Channel::Listener*> ProxyMap; 50 typedef base::hash_map<int, IPC::Channel::Listener*> ProxyMap;
48 ProxyMap proxies_; 51 ProxyMap proxies_;
49 52
50 // An IPC MessageFilter that can be told to filter out all messages. This is 53 // An IPC MessageFilter that can be told to filter out all messages. This is
51 // used when the JS debugger is attached in order to avoid browser hangs. 54 // used when the JS debugger is attached in order to avoid browser hangs.
52 scoped_refptr<IsListeningFilter> is_listening_filter_; 55 scoped_refptr<IsListeningFilter> is_listening_filter_;
53 56
54 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelHost); 57 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelHost);
55 }; 58 };
56 59
57 #endif // CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ 60 #endif // CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_channel_base.cc ('k') | chrome/renderer/plugin_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698