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

Side by Side Diff: content/plugin/plugin_channel.h

Issue 7983032: Add NPChannelBase::GetModalDialogEvent() to avoid content/plugin/ include from npobject_proxy.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after http://codereview.chromium.org/7982026 Created 9 years, 3 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
« no previous file with comments | « content/common/npobject_proxy.cc ('k') | no next file » | 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_PLUGIN_PLUGIN_CHANNEL_H_ 5 #ifndef CONTENT_PLUGIN_PLUGIN_CHANNEL_H_
6 #define CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ 6 #define CONTENT_PLUGIN_PLUGIN_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 25 matching lines...) Expand all
36 virtual bool Send(IPC::Message* msg); 36 virtual bool Send(IPC::Message* msg);
37 virtual bool OnMessageReceived(const IPC::Message& message); 37 virtual bool OnMessageReceived(const IPC::Message& message);
38 38
39 base::ProcessHandle renderer_handle() const { return renderer_handle_; } 39 base::ProcessHandle renderer_handle() const { return renderer_handle_; }
40 int renderer_id() { return renderer_id_; } 40 int renderer_id() { return renderer_id_; }
41 41
42 virtual int GenerateRouteID(); 42 virtual int GenerateRouteID();
43 43
44 // Returns the event that's set when a call to the renderer causes a modal 44 // Returns the event that's set when a call to the renderer causes a modal
45 // dialog to come up. 45 // dialog to come up.
46 base::WaitableEvent* GetModalDialogEvent(gfx::NativeViewId containing_window); 46 virtual base::WaitableEvent* GetModalDialogEvent(
47 gfx::NativeViewId containing_window);
47 48
48 bool in_send() { return in_send_ != 0; } 49 bool in_send() { return in_send_ != 0; }
49 50
50 bool incognito() { return incognito_; } 51 bool incognito() { return incognito_; }
51 void set_incognito(bool value) { incognito_ = value; } 52 void set_incognito(bool value) { incognito_ = value; }
52 53
53 #if defined(OS_POSIX) 54 #if defined(OS_POSIX)
54 int TakeRendererFileDescriptor() { 55 int TakeRendererFileDescriptor() {
55 return channel_->TakeClientFileDescriptor(); 56 return channel_->TakeClientFileDescriptor();
56 } 57 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 96
96 int in_send_; // Tracks if we're in a Send call. 97 int in_send_; // Tracks if we're in a Send call.
97 bool log_messages_; // True if we should log sent and received messages. 98 bool log_messages_; // True if we should log sent and received messages.
98 bool incognito_; // True if the renderer is in incognito mode. 99 bool incognito_; // True if the renderer is in incognito mode.
99 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. 100 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events.
100 101
101 DISALLOW_COPY_AND_ASSIGN(PluginChannel); 102 DISALLOW_COPY_AND_ASSIGN(PluginChannel);
102 }; 103 };
103 104
104 #endif // CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ 105 #endif // CONTENT_PLUGIN_PLUGIN_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/common/npobject_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698