OLD | NEW |
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" | |
8 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" | 7 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" |
9 | 8 |
10 namespace content { | 9 namespace content { |
11 | 10 |
12 BrowserPpapiHostTest::BrowserPpapiHostTest() | 11 BrowserPpapiHostTest::BrowserPpapiHostTest() |
13 : sink_() { | 12 : sink_() { |
14 ppapi_host_.reset(new BrowserPpapiHostImpl( | 13 ppapi_host_.reset(new BrowserPpapiHostImpl( |
15 &sink_, | 14 &sink_, |
16 ppapi::PpapiPermissions::AllPermissions(), | 15 ppapi::PpapiPermissions::AllPermissions(), |
17 std::string(), | 16 std::string(), |
18 base::FilePath(), | 17 base::FilePath(), |
19 base::FilePath(), | 18 base::FilePath(), |
20 false)); | 19 false)); |
21 ppapi_host_->set_plugin_process_handle(base::GetCurrentProcessHandle()); | 20 ppapi_host_->set_plugin_process_handle(base::GetCurrentProcessHandle()); |
22 } | 21 } |
23 | 22 |
24 BrowserPpapiHostTest::~BrowserPpapiHostTest() { | 23 BrowserPpapiHostTest::~BrowserPpapiHostTest() { |
25 } | 24 } |
26 | 25 |
27 BrowserPpapiHost* BrowserPpapiHostTest::GetBrowserPpapiHost() { | 26 BrowserPpapiHost* BrowserPpapiHostTest::GetBrowserPpapiHost() { |
28 return ppapi_host_.get(); | 27 return ppapi_host_.get(); |
29 } | 28 } |
30 | 29 |
31 } // namespace content | 30 } // namespace content |
OLD | NEW |