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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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: third_party/mojo/src/mojo/public/cpp/environment/environment.h
diff --git a/third_party/mojo/src/mojo/public/cpp/environment/environment.h b/third_party/mojo/src/mojo/public/cpp/environment/environment.h
deleted file mode 100644
index c6ecbf7a2c99813fd6360804882aff30bea79604..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/cpp/environment/environment.h
+++ /dev/null
@@ -1,53 +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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_
-
-#include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
-
-struct MojoAsyncWaiter;
-struct MojoLogger;
-
-namespace mojo {
-
-struct TaskTracker;
-
-// Other parts of the Mojo C++ APIs use the *static* methods of this class.
-//
-// The "standalone" implementation of this class requires that this class (in
-// the lib/ subdirectory) be instantiated (and remain so) while using the Mojo
-// C++ APIs. I.e., the static methods depend on things set up by the constructor
-// and torn down by the destructor.
-//
-// Other implementations may not have this requirement.
-class Environment {
- public:
- Environment();
- // This constructor allows the standard implementations to be overridden (set
- // a parameter to null to get the standard implementation).
- Environment(const MojoAsyncWaiter* default_async_waiter,
- const MojoLogger* default_logger,
- const TaskTracker* default_task_tracker);
- ~Environment();
-
- static const MojoAsyncWaiter* GetDefaultAsyncWaiter();
- static const MojoLogger* GetDefaultLogger();
- static const TaskTracker* GetDefaultTaskTracker();
-
- // 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:
- MOJO_DISALLOW_COPY_AND_ASSIGN(Environment);
-};
-
-} // namespace mojo
-
-#endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_

Powered by Google App Engine
This is Rietveld 408576698