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

Side by Side Diff: content/renderer/pepper/pepper_browser_connection.cc

Issue 105553005: Make PepperWebPlugin not use RenderViews. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/pepper/pepper_browser_connection.h" 5 #include "content/renderer/pepper/pepper_browser_connection.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 23 matching lines...) Expand all
34 IPC_BEGIN_MESSAGE_MAP(PepperBrowserConnection, msg) 34 IPC_BEGIN_MESSAGE_MAP(PepperBrowserConnection, msg)
35 IPC_MESSAGE_HANDLER(PpapiHostMsg_CreateResourceHostsFromHostReply, 35 IPC_MESSAGE_HANDLER(PpapiHostMsg_CreateResourceHostsFromHostReply,
36 OnMsgCreateResourceHostsFromHostReply) 36 OnMsgCreateResourceHostsFromHostReply)
37 IPC_MESSAGE_UNHANDLED(handled = false) 37 IPC_MESSAGE_UNHANDLED(handled = false)
38 IPC_END_MESSAGE_MAP() 38 IPC_END_MESSAGE_MAP()
39 return handled; 39 return handled;
40 } 40 }
41 41
42 void PepperBrowserConnection::DidCreateInProcessInstance( 42 void PepperBrowserConnection::DidCreateInProcessInstance(
43 PP_Instance instance, 43 PP_Instance instance,
44 int render_view_id, 44 int render_frame_id,
45 const GURL& document_url, 45 const GURL& document_url,
46 const GURL& plugin_url) { 46 const GURL& plugin_url) {
47 Send(new ViewHostMsg_DidCreateInProcessInstance( 47 Send(new ViewHostMsg_DidCreateInProcessInstance(
48 instance, 48 instance,
49 // Browser provides the render process id. 49 // Browser provides the render process id.
50 PepperRendererInstanceData(0, 50 PepperRendererInstanceData(0,
51 render_view_id, 51 render_frame_id,
52 document_url, 52 document_url,
53 plugin_url))); 53 plugin_url)));
54 } 54 }
55 55
56 void PepperBrowserConnection::DidDeleteInProcessInstance(PP_Instance instance) { 56 void PepperBrowserConnection::DidDeleteInProcessInstance(PP_Instance instance) {
57 Send(new ViewHostMsg_DidDeleteInProcessInstance(instance)); 57 Send(new ViewHostMsg_DidDeleteInProcessInstance(instance));
58 } 58 }
59 59
60 void PepperBrowserConnection::SendBrowserCreate( 60 void PepperBrowserConnection::SendBrowserCreate(
61 int child_process_id, 61 int child_process_id,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // manually check. 94 // manually check.
95 int32_t ret = next_sequence_number_; 95 int32_t ret = next_sequence_number_;
96 if (next_sequence_number_ == std::numeric_limits<int32_t>::max()) 96 if (next_sequence_number_ == std::numeric_limits<int32_t>::max())
97 next_sequence_number_ = 1; // Skip 0 which is invalid. 97 next_sequence_number_ = 1; // Skip 0 which is invalid.
98 else 98 else
99 next_sequence_number_++; 99 next_sequence_number_++;
100 return ret; 100 return ret;
101 } 101 }
102 102
103 } // namespace content 103 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_browser_connection.h ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698