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

Side by Side Diff: components/nacl/renderer/plugin/temporary_file.cc

Issue 876483002: NaCl: Move src/trusted/plugin/ to components/nacl/renderer/plugin/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update #include guards Created 5 years, 10 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
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 "ppapi/native_client/src/trusted/plugin/temporary_file.h" 5 #include "components/nacl/renderer/plugin/temporary_file.h"
6 6
7 #include "components/nacl/renderer/plugin/plugin.h"
8 #include "components/nacl/renderer/plugin/utility.h"
7 #include "native_client/src/include/portability_io.h" 9 #include "native_client/src/include/portability_io.h"
8 #include "native_client/src/shared/platform/nacl_check.h" 10 #include "native_client/src/shared/platform/nacl_check.h"
9 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" 11 #include "native_client/src/trusted/service_runtime/include/sys/stat.h"
10 12 #include "ppapi/c/private/pp_file_handle.h"
11 #include "ppapi/cpp/core.h" 13 #include "ppapi/cpp/core.h"
12 #include "ppapi/cpp/instance.h" 14 #include "ppapi/cpp/instance.h"
13 #include "ppapi/cpp/module.h" 15 #include "ppapi/cpp/module.h"
14 #include "ppapi/c/private/pp_file_handle.h"
15
16 #include "ppapi/native_client/src/trusted/plugin/plugin.h"
17 #include "ppapi/native_client/src/trusted/plugin/utility.h"
18 16
19 namespace plugin { 17 namespace plugin {
20 18
21 TempFile::TempFile(Plugin* plugin, PP_FileHandle handle) 19 TempFile::TempFile(Plugin* plugin, PP_FileHandle handle)
22 : plugin_(plugin), 20 : plugin_(plugin),
23 internal_handle_(handle) { } 21 internal_handle_(handle) { }
24 22
25 TempFile::~TempFile() { } 23 TempFile::~TempFile() { }
26 24
27 int32_t TempFile::Open(bool writeable) { 25 int32_t TempFile::Open(bool writeable) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 73
76 PP_FileHandle TempFile::TakeFileHandle() { 74 PP_FileHandle TempFile::TakeFileHandle() {
77 PP_FileHandle to_return = internal_handle_; 75 PP_FileHandle to_return = internal_handle_;
78 internal_handle_ = PP_kInvalidFileHandle; 76 internal_handle_ = PP_kInvalidFileHandle;
79 read_wrapper_.release(); 77 read_wrapper_.release();
80 write_wrapper_.release(); 78 write_wrapper_.release();
81 return to_return; 79 return to_return;
82 } 80 }
83 81
84 } // namespace plugin 82 } // namespace plugin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698