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

Side by Side Diff: content/renderer/plugin_channel_host.cc

Issue 10071038: RefCounted types should not have public destructors, content/browser part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/renderer/plugin_channel_host.h" 5 #include "content/renderer/plugin_channel_host.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "content/common/child_process.h" 9 #include "content/common/child_process.h"
10 #include "content/common/npobject_base.h" 10 #include "content/common/npobject_base.h"
(...skipping 12 matching lines...) Expand all
23 IsListeningFilter() : channel_(NULL) {} 23 IsListeningFilter() : channel_(NULL) {}
24 24
25 // MessageFilter overrides 25 // MessageFilter overrides
26 virtual void OnFilterRemoved() {} 26 virtual void OnFilterRemoved() {}
27 virtual void OnFilterAdded(IPC::Channel* channel) { channel_ = channel; } 27 virtual void OnFilterAdded(IPC::Channel* channel) { channel_ = channel; }
28 virtual bool OnMessageReceived(const IPC::Message& message); 28 virtual bool OnMessageReceived(const IPC::Message& message);
29 29
30 static bool is_listening_; 30 static bool is_listening_;
31 31
32 private: 32 private:
33 virtual ~IsListeningFilter() {}
34
33 IPC::Channel* channel_; 35 IPC::Channel* channel_;
34 36
35 DISALLOW_COPY_AND_ASSIGN(IsListeningFilter); 37 DISALLOW_COPY_AND_ASSIGN(IsListeningFilter);
36 }; 38 };
37 39
38 bool IsListeningFilter::OnMessageReceived(const IPC::Message& message) { 40 bool IsListeningFilter::OnMessageReceived(const IPC::Message& message) {
39 if (IsListeningFilter::is_listening_) { 41 if (IsListeningFilter::is_listening_) {
40 // Proceed with normal operation. 42 // Proceed with normal operation.
41 return false; 43 return false;
42 } 44 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void PluginChannelHost::OnChannelError() { 156 void PluginChannelHost::OnChannelError() {
155 NPChannelBase::OnChannelError(); 157 NPChannelBase::OnChannelError();
156 158
157 for (ProxyMap::iterator iter = proxies_.begin(); 159 for (ProxyMap::iterator iter = proxies_.begin();
158 iter != proxies_.end(); iter++) { 160 iter != proxies_.end(); iter++) {
159 iter->second->OnChannelError(); 161 iter->second->OnChannelError();
160 } 162 }
161 163
162 proxies_.clear(); 164 proxies_.clear();
163 } 165 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698