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

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

Issue 11722017: Use an explicit PID for duplicating Pepper handles rather than the Channel's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/renderer/render_view_impl.cc ('k') | ipc/ipc_channel.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This interface is used by RenderView to talk to the pepper plugin delegate. 5 // This interface is used by RenderView to talk to the pepper plugin delegate.
6 #ifndef CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H 6 #ifndef CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H
7 #define CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H 7 #define CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/process.h"
15 #include "ui/base/ime/text_input_type.h" 16 #include "ui/base/ime/text_input_type.h"
16 17
17 class TransportDIB; 18 class TransportDIB;
18 19
19 namespace gfx { 20 namespace gfx {
20 class Rect; 21 class Rect;
21 } 22 }
22 23
23 namespace IPC { 24 namespace IPC {
24 struct ChannelHandle; 25 struct ChannelHandle;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void ViewInitiatedPaint() {} 69 virtual void ViewInitiatedPaint() {}
69 virtual void ViewFlushedPaint() {} 70 virtual void ViewFlushedPaint() {}
70 71
71 // Called by RenderView when ViewMsg_AsyncOpenFile_ACK. 72 // Called by RenderView when ViewMsg_AsyncOpenFile_ACK.
72 virtual void OnAsyncFileOpened(base::PlatformFileError error_code, 73 virtual void OnAsyncFileOpened(base::PlatformFileError error_code,
73 base::PlatformFile file, 74 base::PlatformFile file,
74 int message_id) {} 75 int message_id) {}
75 76
76 // Called by RenderView when ViewMsg_PpapiBrokerChannelCreated. 77 // Called by RenderView when ViewMsg_PpapiBrokerChannelCreated.
77 virtual void OnPpapiBrokerChannelCreated(int request_id, 78 virtual void OnPpapiBrokerChannelCreated(int request_id,
79 base::ProcessId broker_pid,
78 const IPC::ChannelHandle& handle) {} 80 const IPC::ChannelHandle& handle) {}
79 81
80 // Called when we know whether permission to access the PPAPI broker was 82 // Called when we know whether permission to access the PPAPI broker was
81 // granted. 83 // granted.
82 virtual void OnPpapiBrokerPermissionResult(int request_id, bool result) {} 84 virtual void OnPpapiBrokerPermissionResult(int request_id, bool result) {}
83 85
84 // Notification that the render view has been focused or defocused. This 86 // Notification that the render view has been focused or defocused. This
85 // notifies all of the plugins. 87 // notifies all of the plugins.
86 virtual void OnSetFocus(bool has_focus) {} 88 virtual void OnSetFocus(bool has_focus) {}
87 89
(...skipping 19 matching lines...) Expand all
107 // Notification that a mouse event has arrived at the render view. 109 // Notification that a mouse event has arrived at the render view.
108 virtual void WillHandleMouseEvent() {} 110 virtual void WillHandleMouseEvent() {}
109 111
110 private: 112 private:
111 DISALLOW_COPY_AND_ASSIGN(RenderViewPepperHelper); 113 DISALLOW_COPY_AND_ASSIGN(RenderViewPepperHelper);
112 }; 114 };
113 115
114 } // namespace content 116 } // namespace content
115 117
116 #endif // CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H 118 #endif // CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ipc/ipc_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698