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

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

Issue 10408004: [Mac] Log stack trace for CHECK in bug 97285. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Forgot an OS_MACOSX check. Created 8 years, 7 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
« no previous file with comments | « chrome/common/mac/objc_zombie.mm ('k') | content/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) 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 #ifndef CONTENT_RENDERER_PLUGIN_CHANNEL_HOST_H_ 5 #ifndef CONTENT_RENDERER_PLUGIN_CHANNEL_HOST_H_
6 #define CONTENT_RENDERER_PLUGIN_CHANNEL_HOST_H_ 6 #define CONTENT_RENDERER_PLUGIN_CHANNEL_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "content/common/np_channel_base.h" 10 #include "content/common/np_channel_base.h"
11 #include "ipc/ipc_channel_handle.h" 11 #include "ipc/ipc_channel_handle.h"
12 12
13 class IsListeningFilter; 13 class IsListeningFilter;
14 class NPObjectBase; 14 class NPObjectBase;
15 15
16 // Encapsulates an IPC channel between the renderer and one plugin process. 16 // Encapsulates an IPC channel between the renderer and one plugin process.
17 // On the plugin side there's a corresponding PluginChannel. 17 // On the plugin side there's a corresponding PluginChannel.
18 class PluginChannelHost : public NPChannelBase { 18 class PluginChannelHost : public NPChannelBase {
19 public: 19 public:
20 #if defined(OS_MACOSX)
21 // TODO(shess): Debugging for http://crbug.com/97285 . See comment
22 // in plugin_channel_host.cc.
23 static bool* GetRemoveTrackingFlag();
24 #endif
20 static PluginChannelHost* GetPluginChannelHost( 25 static PluginChannelHost* GetPluginChannelHost(
21 const IPC::ChannelHandle& channel_handle, 26 const IPC::ChannelHandle& channel_handle,
22 base::MessageLoopProxy* ipc_message_loop); 27 base::MessageLoopProxy* ipc_message_loop);
23 28
24 virtual bool Init(base::MessageLoopProxy* ipc_message_loop, 29 virtual bool Init(base::MessageLoopProxy* ipc_message_loop,
25 bool create_pipe_now, 30 bool create_pipe_now,
26 base::WaitableEvent* shutdown_event) OVERRIDE; 31 base::WaitableEvent* shutdown_event) OVERRIDE;
27 32
28 virtual int GenerateRouteID() OVERRIDE; 33 virtual int GenerateRouteID() OVERRIDE;
29 34
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 scoped_refptr<IsListeningFilter> is_listening_filter_; 73 scoped_refptr<IsListeningFilter> is_listening_filter_;
69 74
70 // True if we are expecting the plugin process to go away - in which case, 75 // True if we are expecting the plugin process to go away - in which case,
71 // don't treat it as a crash. 76 // don't treat it as a crash.
72 bool expecting_shutdown_; 77 bool expecting_shutdown_;
73 78
74 DISALLOW_COPY_AND_ASSIGN(PluginChannelHost); 79 DISALLOW_COPY_AND_ASSIGN(PluginChannelHost);
75 }; 80 };
76 81
77 #endif // CONTENT_RENDERER_PLUGIN_CHANNEL_HOST_H_ 82 #endif // CONTENT_RENDERER_PLUGIN_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/common/mac/objc_zombie.mm ('k') | content/renderer/plugin_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698