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

Side by Side Diff: components/nacl/loader/nacl_ipc_adapter.cc

Issue 20337002: Move NaCl loader related files to components/nacl/loader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO and remove sandbox entry Created 7 years, 4 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 "chrome/nacl/nacl_ipc_adapter.h" 5 #include "components/nacl/loader/nacl_ipc_adapter.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/shared_memory.h" 14 #include "base/memory/shared_memory.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 header.flags = msg.flags(); 577 header.flags = msg.flags();
578 header.num_fds = static_cast<int>(rewritten_msg->desc_count()); 578 header.num_fds = static_cast<int>(rewritten_msg->desc_count());
579 579
580 rewritten_msg->SetData(header, msg.payload(), msg.payload_size()); 580 rewritten_msg->SetData(header, msg.payload(), msg.payload_size());
581 locked_data_.to_be_received_.push(rewritten_msg); 581 locked_data_.to_be_received_.push(rewritten_msg);
582 } 582 }
583 583
584 int TranslatePepperFileReadWriteOpenFlagsForTesting(int32_t pp_open_flags) { 584 int TranslatePepperFileReadWriteOpenFlagsForTesting(int32_t pp_open_flags) {
585 return TranslatePepperFileReadWriteOpenFlags(pp_open_flags); 585 return TranslatePepperFileReadWriteOpenFlags(pp_open_flags);
586 } 586 }
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_ipc_adapter.h ('k') | components/nacl/loader/nacl_ipc_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698