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

Unified Diff: chrome/nacl/nacl_listener.h

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create a zygote folder Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/nacl/nacl_ipc_adapter_unittest.cc ('k') | chrome/nacl/nacl_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/nacl/nacl_listener.h
diff --git a/chrome/nacl/nacl_listener.h b/chrome/nacl/nacl_listener.h
deleted file mode 100644
index a6cec2549ea06bdd818ef0d48a69ef06c52cfd27..0000000000000000000000000000000000000000
--- a/chrome/nacl/nacl_listener.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_NACL_NACL_LISTENER_H_
-#define CHROME_NACL_NACL_LISTENER_H_
-
-#include <vector>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/synchronization/waitable_event.h"
-#include "base/threading/thread.h"
-#include "chrome/common/nacl_types.h"
-#include "ipc/ipc_listener.h"
-
-namespace IPC {
-class SyncChannel;
-class SyncMessageFilter;
-}
-
-// The NaClListener is an IPC channel listener that waits for a
-// request to start a NaCl module.
-class NaClListener : public IPC::Listener {
- public:
- NaClListener();
- virtual ~NaClListener();
- // Listen for a request to launch a NaCl module.
- void Listen();
-
- bool Send(IPC::Message* msg);
-
-#if defined(OS_LINUX)
- void set_prereserved_sandbox_size(size_t prereserved_sandbox_size) {
- prereserved_sandbox_size_ = prereserved_sandbox_size;
- }
-#endif
-#if defined(OS_POSIX)
- void set_number_of_cores(int number_of_cores) {
- number_of_cores_ = number_of_cores;
- }
-#endif
-
- private:
- void OnStart(const nacl::NaClStartParams& params);
- virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
-
- // A channel back to the browser.
- scoped_ptr<IPC::SyncChannel> channel_;
-
- // A filter that allows other threads to use the channel.
- scoped_refptr<IPC::SyncMessageFilter> filter_;
-
- base::WaitableEvent shutdown_event_;
- base::Thread io_thread_;
-
-#if defined(OS_LINUX)
- size_t prereserved_sandbox_size_;
-#endif
-#if defined(OS_POSIX)
- // The outer sandbox on Linux and OSX prevents
- // sysconf(_SC_NPROCESSORS) from working; in Windows, there are no
- // problems with invoking GetSystemInfo. Therefore, only in
- // OS_POSIX do we need to supply the number of cores into the
- // NaClChromeMainArgs object.
- int number_of_cores_;
-#endif
-
- // Used to identify what thread we're on.
- base::MessageLoop* main_loop_;
-
- DISALLOW_COPY_AND_ASSIGN(NaClListener);
-};
-
-#endif // CHROME_NACL_NACL_LISTENER_H_
« no previous file with comments | « chrome/nacl/nacl_ipc_adapter_unittest.cc ('k') | chrome/nacl/nacl_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698