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

Unified Diff: chrome/browser/nacl_host/nacl_broker_service_win.h

Issue 75463005: Move more files from chrome/browser/nacl_host/ to components/nacl/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/nacl_host/nacl_broker_service_win.h
diff --git a/chrome/browser/nacl_host/nacl_broker_service_win.h b/chrome/browser/nacl_host/nacl_broker_service_win.h
deleted file mode 100644
index 2e1cf8d67ec59fefe2effc0b8041a2550b8f0692..0000000000000000000000000000000000000000
--- a/chrome/browser/nacl_host/nacl_broker_service_win.h
+++ /dev/null
@@ -1,66 +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_BROWSER_NACL_HOST_NACL_BROKER_SERVICE_WIN_H_
-#define CHROME_BROWSER_NACL_HOST_NACL_BROKER_SERVICE_WIN_H_
-
-#include <map>
-
-#include "base/basictypes.h"
-#include "base/memory/singleton.h"
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/nacl_host/nacl_broker_host_win.h"
-
-class NaClProcessHost;
-
-class NaClBrokerService {
- public:
- // Returns the NaClBrokerService singleton.
- static NaClBrokerService* GetInstance();
-
- // Can be called several times, must be called before LaunchLoader.
- bool StartBroker();
-
- // Send a message to the broker process, causing it to launch
- // a Native Client loader process.
- bool LaunchLoader(base::WeakPtr<NaClProcessHost> client,
- const std::string& loader_channel_id);
-
- // Called by NaClBrokerHost to notify the service that a loader was launched.
- void OnLoaderLaunched(const std::string& channel_id,
- base::ProcessHandle handle);
-
- // Called by NaClProcessHost when a loader process is terminated
- void OnLoaderDied();
-
- bool LaunchDebugExceptionHandler(base::WeakPtr<NaClProcessHost> client,
- int32 pid,
- base::ProcessHandle process_handle,
- const std::string& startup_info);
-
- // Called by NaClBrokerHost to notify the service that a debug
- // exception handler was started.
- void OnDebugExceptionHandlerLaunched(int32 pid, bool success);
-
- private:
- typedef std::map<std::string, base::WeakPtr<NaClProcessHost> >
- PendingLaunchesMap;
- typedef std::map<int, base::WeakPtr<NaClProcessHost> >
- PendingDebugExceptionHandlersMap;
-
- friend struct DefaultSingletonTraits<NaClBrokerService>;
-
- NaClBrokerService();
- ~NaClBrokerService() {}
-
- NaClBrokerHost* GetBrokerHost();
-
- int loaders_running_;
- PendingLaunchesMap pending_launches_;
- PendingDebugExceptionHandlersMap pending_debuggers_;
-
- DISALLOW_COPY_AND_ASSIGN(NaClBrokerService);
-};
-
-#endif // CHROME_BROWSER_NACL_HOST_NACL_BROKER_SERVICE_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698