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

Side by Side Diff: content/browser/plugin_data_remover_impl.cc

Issue 2038423004: Use ChannelMojo for Browser-GPU and Renderer-GPU IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-utility-channel-mojo
Patch Set: fix pepper Created 4 years, 6 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 | « content/browser/pepper_flash_settings_helper_impl.cc ('k') | content/gpu/gpu_child_thread.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) 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 #include "content/browser/plugin_data_remover_impl.h" 5 #include "content/browser/plugin_data_remover_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // PpapiPluginProcessHost::BrokerClient implementation. 132 // PpapiPluginProcessHost::BrokerClient implementation.
133 void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, 133 void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
134 int* renderer_id) override { 134 int* renderer_id) override {
135 *renderer_handle = base::kNullProcessHandle; 135 *renderer_handle = base::kNullProcessHandle;
136 *renderer_id = 0; 136 *renderer_id = 0;
137 } 137 }
138 138
139 void OnPpapiChannelOpened(const IPC::ChannelHandle& channel_handle, 139 void OnPpapiChannelOpened(const IPC::ChannelHandle& channel_handle,
140 base::ProcessId /* peer_pid */, 140 base::ProcessId /* peer_pid */,
141 int /* child_id */) override { 141 int /* child_id */) override {
142 if (!channel_handle.name.empty()) 142 if (channel_handle.mojo_handle.is_valid())
143 ConnectToChannel(channel_handle); 143 ConnectToChannel(channel_handle);
144 144
145 // Balancing the AddRef call. 145 // Balancing the AddRef call.
146 Release(); 146 Release();
147 } 147 }
148 148
149 // IPC::Listener methods. 149 // IPC::Listener methods.
150 bool OnMessageReceived(const IPC::Message& message) override { 150 bool OnMessageReceived(const IPC::Message& message) override {
151 IPC_BEGIN_MESSAGE_MAP(Context, message) 151 IPC_BEGIN_MESSAGE_MAP(Context, message)
152 IPC_MESSAGE_HANDLER(PpapiHostMsg_ClearSiteDataResult, 152 IPC_MESSAGE_HANDLER(PpapiHostMsg_ClearSiteDataResult,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( 267 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving(
268 base::Time begin_time) { 268 base::Time begin_time) {
269 DCHECK(!context_.get()); 269 DCHECK(!context_.get());
270 context_ = new Context(begin_time, browser_context_); 270 context_ = new Context(begin_time, browser_context_);
271 context_->Init(mime_type_); 271 context_->Init(mime_type_);
272 return context_->event(); 272 return context_->event();
273 } 273 }
274 274
275 } // namespace content 275 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/pepper_flash_settings_helper_impl.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698