Mojo: Move public/environment to public/cpp/environment.

R=darin@chromium.org

Review URL: https://codereview.chromium.org/218043002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260362 0039d316-1c4b-4281-b951-d872f2087c98
parent 69fb3d53
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#include "gin/wrappable.h" #include "gin/wrappable.h"
#include "mojo/bindings/js/handle.h" #include "mojo/bindings/js/handle.h"
#include "mojo/bindings/js/waiting_callback.h" #include "mojo/bindings/js/waiting_callback.h"
#include "mojo/public/cpp/environment/default_async_waiter.h"
#include "mojo/public/cpp/system/core.h" #include "mojo/public/cpp/system/core.h"
#include "mojo/public/environment/default_async_waiter.h"
namespace mojo { namespace mojo {
namespace js { namespace js {
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#ifndef MOJO_ENVIRONMENT_ASYNC_WAITER_IMPL_H_ #ifndef MOJO_ENVIRONMENT_ASYNC_WAITER_IMPL_H_
#define MOJO_ENVIRONMENT_ASYNC_WAITER_IMPL_H_ #define MOJO_ENVIRONMENT_ASYNC_WAITER_IMPL_H_
#include "mojo/public/environment/async_waiter.h"
#include "mojo/environment/mojo_environment_impl_export.h" #include "mojo/environment/mojo_environment_impl_export.h"
#include "mojo/public/cpp/environment/async_waiter.h"
namespace mojo { namespace mojo {
namespace internal { namespace internal {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/environment/buffer_tls.h" #include "mojo/public/cpp/environment/buffer_tls.h"
#include "mojo/environment/buffer_tls_impl.h" #include "mojo/environment/buffer_tls_impl.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/environment/default_async_waiter.h" #include "mojo/public/cpp/environment/default_async_waiter.h"
#include "mojo/environment/default_async_waiter_impl.h" #include "mojo/environment/default_async_waiter_impl.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/environment/environment.h" #include "mojo/public/cpp/environment/environment.h"
namespace mojo { namespace mojo {
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
#include "mojo/examples/pepper_container_app/type_converters.h" #include "mojo/examples/pepper_container_app/type_converters.h"
#include "mojo/public/bindings/allocation_scope.h" #include "mojo/public/bindings/allocation_scope.h"
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/c/system/core.h" #include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/cpp/system/core.h"
#include "mojo/public/gles2/gles2_cpp.h" #include "mojo/public/gles2/gles2_cpp.h"
#include "mojo/public/shell/application.h" #include "mojo/public/shell/application.h"
#include "mojo/public/shell/shell.mojom.h" #include "mojo/public/shell/shell.mojom.h"
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
#include "mojo/examples/sample_app/gles2_client_impl.h" #include "mojo/examples/sample_app/gles2_client_impl.h"
#include "mojo/public/bindings/allocation_scope.h" #include "mojo/public/bindings/allocation_scope.h"
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/core.h" #include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h"
#include "mojo/public/gles2/gles2_cpp.h" #include "mojo/public/gles2/gles2_cpp.h"
#include "mojo/public/shell/application.h" #include "mojo/public/shell/application.h"
#include "mojo/public/shell/shell.mojom.h" #include "mojo/public/shell/shell.mojom.h"
......
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
'mojo_utility', 'mojo_utility',
], ],
'sources': [ 'sources': [
'public/environment/tests/async_waiter_unittest.cc', 'public/cpp/environment/tests/async_waiter_unittest.cc',
], ],
}, },
{ {
...@@ -314,13 +314,13 @@ ...@@ -314,13 +314,13 @@
'target_name': 'mojo_environment_standalone', 'target_name': 'mojo_environment_standalone',
'type': 'static_library', 'type': 'static_library',
'sources': [ 'sources': [
'public/environment/buffer_tls.h', 'public/cpp/environment/buffer_tls.h',
'public/environment/default_async_waiter.h', 'public/cpp/environment/default_async_waiter.h',
'public/environment/environment.h', 'public/cpp/environment/environment.h',
'public/environment/lib/default_async_waiter.cc', 'public/cpp/environment/lib/default_async_waiter.cc',
'public/environment/lib/buffer_tls.cc', 'public/cpp/environment/lib/buffer_tls.cc',
'public/environment/lib/buffer_tls_setup.h', 'public/cpp/environment/lib/buffer_tls_setup.h',
'public/environment/lib/environment.cc', 'public/cpp/environment/lib/environment.cc',
], ],
'include_dirs': [ 'include_dirs': [
'..', '..',
......
include_rules = [ include_rules = [
"-mojo" "-mojo",
"+mojo/public/environment" "+mojo/public/bindings",
"+mojo/public/system" "+mojo/public/cpp/environment",
"+mojo/public/cpp/system",
] ]
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include <assert.h> #include <assert.h>
#include "mojo/public/cpp/environment/buffer_tls.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/environment/buffer_tls.h"
namespace mojo { namespace mojo {
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#include "mojo/public/bindings/lib/message_queue.h" #include "mojo/public/bindings/lib/message_queue.h"
#include "mojo/public/bindings/message.h" #include "mojo/public/bindings/message.h"
#include "mojo/public/cpp/environment/default_async_waiter.h"
#include "mojo/public/cpp/system/core.h" #include "mojo/public/cpp/system/core.h"
#include "mojo/public/environment/default_async_waiter.h"
namespace mojo { namespace mojo {
class ErrorHandler; class ErrorHandler;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "mojo/public/bindings/array.h" #include "mojo/public/bindings/array.h"
#include "mojo/public/bindings/lib/fixed_buffer.h" #include "mojo/public/bindings/lib/fixed_buffer.h"
#include "mojo/public/bindings/lib/scratch_buffer.h" #include "mojo/public/bindings/lib/scratch_buffer.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/cpp/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "mojo/public/bindings/lib/bindings_serialization.h" #include "mojo/public/bindings/lib/bindings_serialization.h"
#include "mojo/public/bindings/lib/fixed_buffer.h" #include "mojo/public/bindings/lib/fixed_buffer.h"
#include "mojo/public/bindings/lib/scratch_buffer.h" #include "mojo/public/bindings/lib/scratch_buffer.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/cpp/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
#include "mojo/public/bindings/lib/connector.h" #include "mojo/public/bindings/lib/connector.h"
#include "mojo/public/bindings/lib/message_builder.h" #include "mojo/public/bindings/lib/message_builder.h"
#include "mojo/public/bindings/lib/message_queue.h" #include "mojo/public/bindings/lib/message_queue.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#include "mojo/public/bindings/allocation_scope.h" #include "mojo/public/bindings/allocation_scope.h"
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/bindings/tests/sample_factory.mojom.h" #include "mojo/public/bindings/tests/sample_factory.mojom.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h"
#include "mojo/public/tests/test_utils.h" #include "mojo/public/tests/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/bindings/tests/math_calculator.mojom.h" #include "mojo/public/bindings/tests/math_calculator.mojom.h"
#include "mojo/public/bindings/tests/sample_service.mojom.h" #include "mojo/public/bindings/tests/sample_service.mojom.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/bindings/tests/sample_import.mojom.h" #include "mojo/public/bindings/tests/sample_import.mojom.h"
#include "mojo/public/bindings/tests/sample_interfaces.mojom.h" #include "mojo/public/bindings/tests/sample_interfaces.mojom.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h"
#include "mojo/public/tests/test_utils.h" #include "mojo/public/tests/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
#include "mojo/public/bindings/lib/message_builder.h" #include "mojo/public/bindings/lib/message_builder.h"
#include "mojo/public/bindings/lib/message_queue.h" #include "mojo/public/bindings/lib/message_queue.h"
#include "mojo/public/bindings/lib/router.h" #include "mojo/public/bindings/lib/router.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "mojo/public/bindings/allocation_scope.h" #include "mojo/public/bindings/allocation_scope.h"
#include "mojo/public/bindings/tests/sample_service.mojom.h" #include "mojo/public/bindings/tests/sample_service.mojom.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/cpp/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "mojo/public/bindings/allocation_scope.h" #include "mojo/public/bindings/allocation_scope.h"
#include "mojo/public/bindings/tests/test_structs.mojom.h" #include "mojo/public/bindings/tests/test_structs.mojom.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/cpp/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_ENVIRONMENT_BUFFER_TLS_H_ #ifndef MOJO_PUBLIC_CPP_ENVIRONMENT_BUFFER_TLS_H_
#define MOJO_PUBLIC_ENVIRONMENT_BUFFER_TLS_H_ #define MOJO_PUBLIC_CPP_ENVIRONMENT_BUFFER_TLS_H_
namespace mojo { namespace mojo {
class Buffer; class Buffer;
...@@ -17,4 +17,4 @@ Buffer* SetCurrentBuffer(Buffer* buffer); ...@@ -17,4 +17,4 @@ Buffer* SetCurrentBuffer(Buffer* buffer);
} // namespace internal } // namespace internal
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_ENVIRONMENT_BUFFER_TLS_H_ #endif // MOJO_PUBLIC_CPP_ENVIRONMENT_BUFFER_TLS_H_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_ENVIRONMENT_DEFAULT_ASYNC_WAITER_H_ #ifndef MOJO_PUBLIC_CPP_ENVIRONMENT_DEFAULT_ASYNC_WAITER_H_
#define MOJO_PUBLIC_ENVIRONMENT_DEFAULT_ASYNC_WAITER_H_ #define MOJO_PUBLIC_CPP_ENVIRONMENT_DEFAULT_ASYNC_WAITER_H_
#include "mojo/public/c/system/async_waiter.h" #include "mojo/public/c/system/async_waiter.h"
...@@ -14,4 +14,4 @@ MojoAsyncWaiter* GetDefaultAsyncWaiter(); ...@@ -14,4 +14,4 @@ MojoAsyncWaiter* GetDefaultAsyncWaiter();
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_ENVIRONMENT_DEFAULT_ASYNC_WAITER_H_ #endif // MOJO_PUBLIC_CPP_ENVIRONMENT_DEFAULT_ASYNC_WAITER_H_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_ENVIRONMENT_ENVIRONMENT_H_ #ifndef MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_
#define MOJO_PUBLIC_ENVIRONMENT_ENVIRONMENT_H_ #define MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
...@@ -21,4 +21,4 @@ class Environment { ...@@ -21,4 +21,4 @@ class Environment {
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_ENVIRONMENT_ENVIRONMENT_H_ #endif // MOJO_PUBLIC_CPP_ENVIRONMENT_ENVIRONMENT_H_
include_rules = [
"+mojo/public/cpp/environment",
"+mojo/public/cpp/utility",
]
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/environment/buffer_tls.h" #include "mojo/public/cpp/environment/buffer_tls.h"
#include <assert.h> #include <assert.h>
#include "mojo/public/cpp/environment/lib/buffer_tls_setup.h"
#include "mojo/public/cpp/utility/lib/thread_local.h" #include "mojo/public/cpp/utility/lib/thread_local.h"
#include "mojo/public/environment/lib/buffer_tls_setup.h"
namespace mojo { namespace mojo {
namespace internal { namespace internal {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_ENVIRONMENT_STANDALONE_BUFFER_TLS_SETUP_H_ #ifndef MOJO_PUBLIC_CPP_ENVIRONMENT_STANDALONE_BUFFER_TLS_SETUP_H_
#define MOJO_PUBLIC_ENVIRONMENT_STANDALONE_BUFFER_TLS_SETUP_H_ #define MOJO_PUBLIC_CPP_ENVIRONMENT_STANDALONE_BUFFER_TLS_SETUP_H_
namespace mojo { namespace mojo {
namespace internal { namespace internal {
...@@ -14,4 +14,4 @@ void TearDownCurrentBuffer(); ...@@ -14,4 +14,4 @@ void TearDownCurrentBuffer();
} // namespace internal } // namespace internal
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_ENVIRONMENT_STANDALONE_BUFFER_TLS_SETUP_H_ #endif // MOJO_PUBLIC_CPP_ENVIRONMENT_STANDALONE_BUFFER_TLS_SETUP_H_
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/environment/default_async_waiter.h" #include "mojo/public/cpp/environment/default_async_waiter.h"
#include <assert.h> #include <assert.h>
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/environment/environment.h" #include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/environment/lib/buffer_tls_setup.h"
#include "mojo/public/cpp/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/lib/buffer_tls_setup.h"
namespace mojo { namespace mojo {
......
include_rules = [
"+testing",
"+mojo/public/cpp/utility",
# TODO(vtl): Temporary until these are moved to mojo/public/cpp:
"+mojo/public/tests",
]
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
#include <string> #include <string>
#include "mojo/public/cpp/environment/default_async_waiter.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/core.h" #include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/default_async_waiter.h"
#include "mojo/public/environment/environment.h"
#include "mojo/public/tests/test_utils.h" #include "mojo/public/tests/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
......
include_rules = [
"-mojo/public"
"+mojo/public/system"
]
include_rules = [
"+mojo/public/environment"
"+mojo/public/cpp/utility"
]
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef MOJO_PUBLIC_GLES2_GLES2_CPP_H_ #ifndef MOJO_PUBLIC_GLES2_GLES2_CPP_H_
#define MOJO_PUBLIC_GLES2_GLES2_CPP_H_ #define MOJO_PUBLIC_GLES2_GLES2_CPP_H_
#include "mojo/public/environment/default_async_waiter.h" #include "mojo/public/cpp/environment/default_async_waiter.h"
#include "mojo/public/gles2/gles2.h" #include "mojo/public/gles2/gles2.h"
namespace mojo { namespace mojo {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "base/message_loop/message_loop.h" #include "base/message_loop/message_loop.h"
#include "mojo/public/bindings/allocation_scope.h" #include "mojo/public/bindings/allocation_scope.h"
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/shell/application.h" #include "mojo/public/shell/application.h"
#include "mojo/public/shell/shell.mojom.h" #include "mojo/public/shell/shell.mojom.h"
#include "mojo/service_manager/service_loader.h" #include "mojo/service_manager/service_loader.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment