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

Side by Side Diff: chrome/plugin/plugin_channel_base.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/npobject_util.cc ('k') | chrome/plugin/plugin_channel_base.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_PLUGIN_PLUGIN_CHANNEL_BASE_H_ 5 #ifndef CHROME_PLUGIN_PLUGIN_CHANNEL_BASE_H_
6 #define CHROME_PLUGIN_PLUGIN_CHANNEL_BASE_H_ 6 #define CHROME_PLUGIN_PLUGIN_CHANNEL_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "app/gfx/native_widget_types.h" 10 #include "app/gfx/native_widget_types.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Returns a new route id. 43 // Returns a new route id.
44 virtual int GenerateRouteID() = 0; 44 virtual int GenerateRouteID() = 0;
45 45
46 // Returns whether the channel is valid or not. A channel is invalid 46 // Returns whether the channel is valid or not. A channel is invalid
47 // if it is disconnected due to a channel error. 47 // if it is disconnected due to a channel error.
48 bool channel_valid() { 48 bool channel_valid() {
49 return channel_valid_; 49 return channel_valid_;
50 } 50 }
51 51
52 // Returns the most recent PluginChannelBase to have received a message
53 // in this process.
54 static PluginChannelBase* GetCurrentChannel();
55
52 static void CleanupChannels(); 56 static void CleanupChannels();
53 57
54 protected: 58 protected:
55 typedef PluginChannelBase* (*PluginChannelFactory)(); 59 typedef PluginChannelBase* (*PluginChannelFactory)();
56 60
57 friend class base::RefCountedThreadSafe<PluginChannelBase>; 61 friend class base::RefCountedThreadSafe<PluginChannelBase>;
58 62
59 virtual ~PluginChannelBase(); 63 virtual ~PluginChannelBase();
60 64
61 // Returns a PluginChannelBase derived object for the given channel name. 65 // Returns a PluginChannelBase derived object for the given channel name.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 int in_dispatch_; 123 int in_dispatch_;
120 124
121 // If true, sync messages will only be marked as unblocking if the channel is 125 // If true, sync messages will only be marked as unblocking if the channel is
122 // in the middle of dispatching a message. 126 // in the middle of dispatching a message.
123 bool send_unblocking_only_during_dispatch_; 127 bool send_unblocking_only_during_dispatch_;
124 128
125 DISALLOW_COPY_AND_ASSIGN(PluginChannelBase); 129 DISALLOW_COPY_AND_ASSIGN(PluginChannelBase);
126 }; 130 };
127 131
128 #endif // CHROME_PLUGIN_PLUGIN_CHANNEL_BASE_H_ 132 #endif // CHROME_PLUGIN_PLUGIN_CHANNEL_BASE_H_
OLDNEW
« no previous file with comments | « chrome/plugin/npobject_util.cc ('k') | chrome/plugin/plugin_channel_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698