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

Unified Diff: mojo/public/cpp/environment/environment.h

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/environment/async_waiter.h ('k') | mojo/public/cpp/environment/lib/async_waiter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/environment/environment.h
diff --git a/mojo/public/cpp/environment/environment.h b/mojo/public/cpp/environment/environment.h
deleted file mode 100644
index 6c544ee9f0bbc97baebf550114beb960ab7670ae..0000000000000000000000000000000000000000
--- a/mojo/public/cpp/environment/environment.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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 MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_
-#define MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_
-
-#include "mojo/public/cpp/system/macros.h"
-
-struct MojoAsyncWaiter;
-struct MojoLogger;
-
-namespace mojo {
-
-// This class just acts as a "namespace": it only has static methods (whose
-// implementation may be varied). Note that some implementations may require
-// their own explicit initialization/shut down functions to be called.
-class Environment {
- public:
- static const MojoAsyncWaiter* GetDefaultAsyncWaiter();
- // Setting the default async waiter to null will use the original default
- // implementation.
- static void SetDefaultAsyncWaiter(const MojoAsyncWaiter* async_waiter);
-
- static const MojoLogger* GetDefaultLogger();
- // Setting the logger to null will use the will use the original default
- // implementation.
- static void SetDefaultLogger(const MojoLogger* logger);
-
- // These instantiate and destroy an environment-specific run loop for the
- // current thread, allowing |GetDefaultAsyncWaiter()| to be used. (The run
- // loop itself should be accessible via thread-local storage, using methods
- // specific to the run loop implementation.) Creating and destroying nested
- // run loops is not supported.
- static void InstantiateDefaultRunLoop();
- static void DestroyDefaultRunLoop();
-
- private:
- Environment() = delete;
- ~Environment() = delete;
-};
-
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_
« no previous file with comments | « mojo/public/cpp/environment/async_waiter.h ('k') | mojo/public/cpp/environment/lib/async_waiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698