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

Side by Side Diff: content/browser/renderer_host/pepper/browser_ppapi_host_test.cc

Issue 11368019: Add support for external out-of-process PPAPI plugins in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 (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/renderer_host/pepper/browser_ppapi_host_test.h" 5 #include "content/browser/renderer_host/pepper/browser_ppapi_host_test.h"
6 6
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" 8 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 BrowserPpapiHostTest::BrowserPpapiHostTest() 12 BrowserPpapiHostTest::BrowserPpapiHostTest()
13 : sink_(), 13 : sink_() {
14 ppapi_host_(new BrowserPpapiHostImpl( 14 ppapi_host_.reset(new BrowserPpapiHostImpl(
15 &sink_, 15 &sink_,
16 ppapi::PpapiPermissions::AllPermissions())) { 16 ppapi::PpapiPermissions::AllPermissions()));
17 ppapi_host_->set_plugin_process_handle(base::GetCurrentProcessHandle()); 17 ppapi_host_->set_plugin_process_handle(base::GetCurrentProcessHandle());
18 } 18 }
19 19
20 BrowserPpapiHostTest::~BrowserPpapiHostTest() { 20 BrowserPpapiHostTest::~BrowserPpapiHostTest() {
21 } 21 }
22 22
23 BrowserPpapiHost* BrowserPpapiHostTest::GetBrowserPpapiHost() { 23 BrowserPpapiHost* BrowserPpapiHostTest::GetBrowserPpapiHost() {
24 return ppapi_host_; 24 return ppapi_host_.get();
25 } 25 }
26 26
27 } // namespace content 27 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/browser_ppapi_host_test.h ('k') | content/browser/renderer_host/render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698