Commit aea0b3e5 authored by Eugene But's avatar Eugene But Committed by Commit Bot

Create ios/web/public/service and ios/web/service directories.

This CL is a part of ios/web restructuring proposed here:
https://docs.google.com/document/d/1C2YIU0rDbH5wz2VI6nk0COrktwY3DbF-e7QbMIAKEJc/edit

Bug: 942244
Change-Id: Ifd5cee307d197f877864e1700de8be0704f48707
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1709842
Commit-Queue: Eugene But <eugenebut@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@google.com>
Reviewed-by: default avatarMustafa Emre Acer <meacer@chromium.org>
Auto-Submit: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680192}
parent d9fa8af0
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#import "ios/chrome/test/app/chrome_test_util.h" #import "ios/chrome/test/app/chrome_test_util.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.h" #import "ios/chrome/test/earl_grey/chrome_test_case.h"
#include "ios/web/public/browser_state.h" #include "ios/web/public/browser_state.h"
#include "ios/web/public/service_manager_connection.h" #include "ios/web/public/service/service_manager_connection.h"
#include "services/identity/public/mojom/constants.mojom.h" #include "services/identity/public/mojom/constants.mojom.h"
#include "services/identity/public/mojom/identity_accessor.mojom.h" #include "services/identity/public/mojom/identity_accessor.mojom.h"
#include "services/service_manager/public/cpp/connector.h" #include "services/service_manager/public/cpp/connector.h"
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "ios/chrome/browser/application_context.h" #include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/google/google_brand.h" #include "ios/chrome/browser/google/google_brand.h"
#include "ios/chrome/common/channel_info.h" #include "ios/chrome/common/channel_info.h"
#include "ios/web/public/service_manager_connection.h" #include "ios/web/public/service/service_manager_connection.h"
#include "services/network/public/cpp/shared_url_loader_factory.h" #include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/service_manager/public/cpp/connector.h" #include "services/service_manager/public/cpp/connector.h"
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "ios/public/provider/chrome/browser/voice/audio_session_controller.h" #include "ios/public/provider/chrome/browser/voice/audio_session_controller.h"
#include "ios/public/provider/chrome/browser/voice/voice_search_provider.h" #include "ios/public/provider/chrome/browser/voice/voice_search_provider.h"
#include "ios/web/public/navigation/browser_url_rewriter.h" #include "ios/web/public/navigation/browser_url_rewriter.h"
#include "ios/web/public/service_names.mojom.h" #include "ios/web/public/service/service_names.mojom.h"
#include "ios/web/public/user_agent.h" #include "ios/web/public/user_agent.h"
#include "net/http/http_util.h" #include "net/http/http_util.h"
#include "ui/base/l10n/l10n_util.h" #include "ui/base/l10n/l10n_util.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "components/services/unzip/public/mojom/constants.mojom.h" #include "components/services/unzip/public/mojom/constants.mojom.h"
#include "components/services/unzip/public/mojom/unzipper.mojom.h" #include "components/services/unzip/public/mojom/unzipper.mojom.h"
#include "ios/chrome/browser/web/chrome_web_client.h" #include "ios/chrome/browser/web/chrome_web_client.h"
#include "ios/web/public/service_manager_connection.h" #include "ios/web/public/service/service_manager_connection.h"
#include "ios/web/public/test/scoped_testing_web_client.h" #include "ios/web/public/test/scoped_testing_web_client.h"
#include "ios/web/public/test/test_service_manager_context.h" #include "ios/web/public/test/test_service_manager_context.h"
#include "ios/web/public/test/test_web_thread_bundle.h" #include "ios/web/public/test/test_web_thread_bundle.h"
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
import("//ios/build/config.gni") import("//ios/build/config.gni")
import("//ios/web/js_compile.gni") import("//ios/web/js_compile.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni") import("//testing/test.gni")
import("//tools/grit/grit_rule.gni") import("//tools/grit/grit_rule.gni")
...@@ -18,16 +17,16 @@ group("all_tests") { ...@@ -18,16 +17,16 @@ group("all_tests") {
source_set("web") { source_set("web") {
public_deps = [ public_deps = [
":service_names", "//ios/web/public/service:service_names",
# TODO(crbug.com/616244): Remove private files from public dependencies. # TODO(crbug.com/616244): Remove private files from public dependencies.
":services",
":threads", ":threads",
"//ios/web/navigation:core", "//ios/web/navigation:core",
"//ios/web/net", "//ios/web/net",
"//ios/web/public", "//ios/web/public",
"//ios/web/public/download", "//ios/web/public/download",
"//ios/web/public/init", "//ios/web/public/init",
"//ios/web/service",
"//ios/web/web_state:web_state_impl_header", "//ios/web/web_state:web_state_impl_header",
"//ios/web/web_state/ui", "//ios/web/web_state/ui",
"//ios/web/web_state/ui:wk_web_view_configuration_provider", "//ios/web/web_state/ui:wk_web_view_configuration_provider",
...@@ -40,7 +39,6 @@ source_set("web") { ...@@ -40,7 +39,6 @@ source_set("web") {
":js_resources", ":js_resources",
":navigation_resources", ":navigation_resources",
":resources", ":resources",
":services",
":threads", ":threads",
"//base", "//base",
"//ios/web/common", "//ios/web/common",
...@@ -53,15 +51,13 @@ source_set("web") { ...@@ -53,15 +51,13 @@ source_set("web") {
"//ios/web/public/security", "//ios/web/public/security",
"//ios/web/public/session", "//ios/web/public/session",
"//ios/web/security", "//ios/web/security",
"//ios/web/service",
"//ios/web/session", "//ios/web/session",
"//ios/web/thread", "//ios/web/thread",
"//ios/web/web_state", "//ios/web/web_state",
"//ios/web/web_state:web_view_internal_creation_util", "//ios/web/web_state:web_view_internal_creation_util",
"//services/network:network_service", "//services/network:network_service",
"//services/network/public/mojom",
"//services/service_manager",
"//services/service_manager/public/cpp", "//services/service_manager/public/cpp",
"//services/service_manager/public/mojom",
] ]
sources = [ sources = [
...@@ -94,34 +90,6 @@ source_set("threads") { ...@@ -94,34 +90,6 @@ source_set("threads") {
configs += [ "//build/config/compiler:enable_arc" ] configs += [ "//build/config/compiler:enable_arc" ]
} }
source_set("services") {
deps = [
":service_names",
"//ios/web/public",
"//services/network:network_service",
"//services/network/public/mojom",
"//services/service_manager",
"//services/service_manager/public/cpp",
"//services/service_manager/public/mojom",
]
sources = [
"service_manager_connection_impl.cc",
"service_manager_connection_impl.h",
"service_manager_context.h",
"service_manager_context.mm",
"web_browser_manifest.h",
"web_browser_manifest.mm",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
mojom("service_names") {
sources = [
"public/service_names.mojom",
]
}
source_set("core") { source_set("core") {
configs += [ "//build/config/compiler:enable_arc" ] configs += [ "//build/config/compiler:enable_arc" ]
deps = [ deps = [
...@@ -269,7 +237,6 @@ source_set("ios_web_general_unittests") { ...@@ -269,7 +237,6 @@ source_set("ios_web_general_unittests") {
"//ios/web/test:test_constants", "//ios/web/test:test_constants",
"//ios/web/test:test_support", "//ios/web/test:test_support",
"//net:test_support", "//net:test_support",
"//services/service_manager/public/cpp",
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
"//third_party/ocmock", "//third_party/ocmock",
...@@ -280,7 +247,6 @@ source_set("ios_web_general_unittests") { ...@@ -280,7 +247,6 @@ source_set("ios_web_general_unittests") {
"browser_state_unittest.cc", "browser_state_unittest.cc",
"history_state_util_unittest.mm", "history_state_util_unittest.mm",
"network_context_owner_unittest.cc", "network_context_owner_unittest.cc",
"service_manager_connection_impl_unittest.cc",
"test/web_test_unittest.mm", "test/web_test_unittest.mm",
"web_client_unittest.mm", "web_client_unittest.mm",
"web_thread_unittest.cc", "web_thread_unittest.cc",
...@@ -314,7 +280,6 @@ source_set("ios_web_navigation_unittests") { ...@@ -314,7 +280,6 @@ source_set("ios_web_navigation_unittests") {
"//ios/web/test/fakes", "//ios/web/test/fakes",
"//ios/web/web_state/ui:crw_web_view_navigation_proxy", "//ios/web/web_state/ui:crw_web_view_navigation_proxy",
"//net:test_support", "//net:test_support",
"//services/service_manager/public/cpp",
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
"//third_party/ocmock", "//third_party/ocmock",
......
...@@ -4,8 +4,3 @@ marq@chromium.org ...@@ -4,8 +4,3 @@ marq@chromium.org
# TEAM: ios-directory-owners@chromium.org # TEAM: ios-directory-owners@chromium.org
# OS: iOS # OS: iOS
per-file web_browser_manifest.cc=set noparent
per-file web_browser_manifest.cc=file://ipc/SECURITY_OWNERS
per-file web_browser_manifest.h=set noparent
per-file web_browser_manifest.h=file://ipc/SECURITY_OWNERS
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include "base/token.h" #include "base/token.h"
#include "ios/web/public/init/network_context_owner.h" #include "ios/web/public/init/network_context_owner.h"
#include "ios/web/public/security/certificate_policy_cache.h" #include "ios/web/public/security/certificate_policy_cache.h"
#include "ios/web/public/service_manager_connection.h" #include "ios/web/public/service/service_manager_connection.h"
#include "ios/web/public/service_names.mojom.h" #include "ios/web/public/service/service_names.mojom.h"
#include "ios/web/public/thread/web_task_traits.h" #include "ios/web/public/thread/web_task_traits.h"
#include "ios/web/public/thread/web_thread.h" #include "ios/web/public/thread/web_thread.h"
#include "ios/web/public/web_client.h" #include "ios/web/public/web_client.h"
......
...@@ -17,11 +17,11 @@ source_set("init") { ...@@ -17,11 +17,11 @@ source_set("init") {
"//base", "//base",
"//base:i18n", "//base:i18n",
"//crypto", "//crypto",
"//ios/web:services",
"//ios/web:threads", "//ios/web:threads",
"//ios/web/net", "//ios/web/net",
"//ios/web/public", "//ios/web/public",
"//ios/web/public/init", "//ios/web/public/init",
"//ios/web/service",
"//ios/web/webui", "//ios/web/webui",
"//mojo/core/embedder", "//mojo/core/embedder",
"//net", "//net",
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "ios/web/public/init/web_main_parts.h" #include "ios/web/public/init/web_main_parts.h"
#include "ios/web/public/thread/web_task_traits.h" #include "ios/web/public/thread/web_task_traits.h"
#import "ios/web/public/web_client.h" #import "ios/web/public/web_client.h"
#include "ios/web/service_manager_context.h" #include "ios/web/service/service_manager_context.h"
#include "ios/web/web_sub_thread.h" #include "ios/web/web_sub_thread.h"
#include "ios/web/web_thread_impl.h" #include "ios/web/web_thread_impl.h"
#include "ios/web/webui/url_data_manager_ios.h" #include "ios/web/webui/url_data_manager_ios.h"
......
...@@ -11,6 +11,7 @@ source_set("public") { ...@@ -11,6 +11,7 @@ source_set("public") {
":web_state_types", ":web_state_types",
"//ios/web/public/favicon", "//ios/web/public/favicon",
"//ios/web/public/navigation", "//ios/web/public/navigation",
"//ios/web/public/service",
"//ios/web/public/thread", "//ios/web/public/thread",
"//net", "//net",
"//services/network/public/cpp", "//services/network/public/cpp",
...@@ -29,7 +30,6 @@ source_set("public") { ...@@ -29,7 +30,6 @@ source_set("public") {
"java_script_dialog_callback.h", "java_script_dialog_callback.h",
"java_script_dialog_presenter.h", "java_script_dialog_presenter.h",
"java_script_dialog_type.h", "java_script_dialog_type.h",
"service_manager_connection.h",
"url_schemes.mm", "url_schemes.mm",
"web_client.h", "web_client.h",
"web_state/page_display_state.mm", "web_state/page_display_state.mm",
...@@ -38,8 +38,6 @@ source_set("public") { ...@@ -38,8 +38,6 @@ source_set("public") {
"web_state/web_state.h", "web_state/web_state.h",
"web_state/web_state_delegate.h", "web_state/web_state_delegate.h",
"web_state/web_state_delegate_bridge.h", "web_state/web_state_delegate_bridge.h",
"web_state/web_state_interface_provider.cc",
"web_state/web_state_interface_provider.h",
"web_state/web_state_observer_bridge.h", "web_state/web_state_observer_bridge.h",
"web_state/web_state_user_data.h", "web_state/web_state_user_data.h",
] ]
......
# Copyright 2019 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.
import("//mojo/public/tools/bindings/mojom.gni")
source_set("service") {
deps = [
"//base",
"//services/network/public/cpp",
"//services/network/public/mojom",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp:cpp_types",
"//services/service_manager/public/mojom",
]
sources = [
"service_manager_connection.h",
"web_state_interface_provider.h",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
mojom("service_names") {
sources = [
"service_names.mojom",
]
}
rockot@google.com
# TEAM: ios-directory-owners@chromium.org
# OS: iOS
per-file *.mojom=set noparent
per-file *.mojom=file://ipc/SECURITY_OWNERS
This directory contains API for establishing mojo connection with web service.
...@@ -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 IOS_WEB_PUBLIC_SERVICE_MANAGER_CONNECTION_H_ #ifndef IOS_WEB_PUBLIC_SERVICE_SERVICE_MANAGER_CONNECTION_H_
#define IOS_WEB_PUBLIC_SERVICE_MANAGER_CONNECTION_H_ #define IOS_WEB_PUBLIC_SERVICE_SERVICE_MANAGER_CONNECTION_H_
#include <memory> #include <memory>
...@@ -69,4 +69,4 @@ class ServiceManagerConnection { ...@@ -69,4 +69,4 @@ class ServiceManagerConnection {
} // namespace web } // namespace web
#endif // IOS_WEB_PUBLIC_SERVICE_MANAGER_CONNECTION_H_ #endif // IOS_WEB_PUBLIC_SERVICE_SERVICE_MANAGER_CONNECTION_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 IOS_WEB_WEB_STATE_WEB_STATE_INTERFACE_PROVIDER_H_ #ifndef IOS_WEB_PUBLIC_SERVICE_WEB_STATE_INTERFACE_PROVIDER_H_
#define IOS_WEB_WEB_STATE_WEB_STATE_INTERFACE_PROVIDER_H_ #define IOS_WEB_PUBLIC_SERVICE_WEB_STATE_INTERFACE_PROVIDER_H_
#include "base/macros.h" #include "base/macros.h"
#include "mojo/public/cpp/bindings/binding.h" #include "mojo/public/cpp/bindings/binding.h"
...@@ -36,4 +36,4 @@ class WebStateInterfaceProvider ...@@ -36,4 +36,4 @@ class WebStateInterfaceProvider
} // namespace web } // namespace web
#endif // IOS_WEB_WEB_STATE_WEB_STATE_INTERFACE_PROVIDER_H_ #endif // IOS_WEB_PUBLIC_SERVICE_WEB_STATE_INTERFACE_PROVIDER_H_
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "ios/web/public/test/test_service_manager_context.h" #include "ios/web/public/test/test_service_manager_context.h"
#include "ios/web/service_manager_context.h" #include "ios/web/service/service_manager_context.h"
#if !defined(__has_feature) || !__has_feature(objc_arc) #if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support." #error "This file requires ARC support."
......
# Copyright 2019 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.
source_set("service") {
deps = [
"//ios/web/public",
"//ios/web/public/service:service_names",
"//services/network:network_service",
"//services/network/public/mojom",
"//services/service_manager",
"//services/service_manager/public/cpp",
"//services/service_manager/public/mojom",
]
sources = [
"service_manager_connection_impl.cc",
"service_manager_connection_impl.h",
"service_manager_context.h",
"service_manager_context.mm",
"web_browser_manifest.h",
"web_browser_manifest.mm",
"web_state_interface_provider.cc",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("unittests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
deps = [
":service",
"//base",
"//base/test:test_support",
"//ios/web/public/test",
"//services/service_manager/public/cpp",
"//testing/gtest",
]
sources = [
"service_manager_connection_impl_unittest.cc",
]
}
rockot@google.com
# TEAM: ios-directory-owners@chromium.org
# OS: iOS
per-file web_browser_manifest.cc=set noparent
per-file web_browser_manifest.cc=file://ipc/SECURITY_OWNERS
per-file web_browser_manifest.h=set noparent
per-file web_browser_manifest.h=file://ipc/SECURITY_OWNERS
...@@ -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 "ios/web/service_manager_connection_impl.h" #include "ios/web/service/service_manager_connection_impl.h"
#include <queue> #include <queue>
#include <utility> #include <utility>
...@@ -39,10 +39,9 @@ class ServiceManagerConnectionImpl::IOThreadContext ...@@ -39,10 +39,9 @@ class ServiceManagerConnectionImpl::IOThreadContext
: public base::RefCountedThreadSafe<IOThreadContext>, : public base::RefCountedThreadSafe<IOThreadContext>,
public service_manager::Service { public service_manager::Service {
public: public:
IOThreadContext( IOThreadContext(service_manager::mojom::ServiceRequest service_request,
service_manager::mojom::ServiceRequest service_request, scoped_refptr<base::SequencedTaskRunner> io_task_runner,
scoped_refptr<base::SequencedTaskRunner> io_task_runner, service_manager::mojom::ConnectorRequest connector_request)
service_manager::mojom::ConnectorRequest connector_request)
: pending_service_request_(std::move(service_request)), : pending_service_request_(std::move(service_request)),
io_task_runner_(io_task_runner), io_task_runner_(io_task_runner),
pending_connector_request_(std::move(connector_request)), pending_connector_request_(std::move(connector_request)),
......
...@@ -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 IOS_WEB_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ #ifndef IOS_WEB_SERVICE_SERVICE_MANAGER_CONNECTION_IMPL_H_
#define IOS_WEB_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ #define IOS_WEB_SERVICE_SERVICE_MANAGER_CONNECTION_IMPL_H_
#include <memory> #include <memory>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "base/memory/ref_counted.h" #include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h" #include "base/sequenced_task_runner.h"
#include "ios/web/public/service_manager_connection.h" #include "ios/web/public/service/service_manager_connection.h"
#include "mojo/public/cpp/system/message_pipe.h" #include "mojo/public/cpp/system/message_pipe.h"
#include "services/service_manager/public/cpp/identity.h" #include "services/service_manager/public/cpp/identity.h"
#include "services/service_manager/public/mojom/service.mojom.h" #include "services/service_manager/public/mojom/service.mojom.h"
...@@ -63,4 +63,4 @@ class ServiceManagerConnectionImpl : public ServiceManagerConnection { ...@@ -63,4 +63,4 @@ class ServiceManagerConnectionImpl : public ServiceManagerConnection {
} // namespace web } // namespace web
#endif // IOS_WEB_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ #endif // IOS_WEB_SERVICE_SERVICE_MANAGER_CONNECTION_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 "ios/web/service_manager_connection_impl.h" #include "ios/web/service/service_manager_connection_impl.h"
#include "base/bind_helpers.h" #include "base/bind_helpers.h"
#include "base/run_loop.h" #include "base/run_loop.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 IOS_WEB_SERVICE_MANAGER_CONTEXT_H_ #ifndef IOS_WEB_SERVICE_SERVICE_MANAGER_CONTEXT_H_
#define IOS_WEB_SERVICE_MANAGER_CONTEXT_H_ #define IOS_WEB_SERVICE_SERVICE_MANAGER_CONTEXT_H_
#include <string> #include <string>
...@@ -42,4 +42,4 @@ class ServiceManagerContext { ...@@ -42,4 +42,4 @@ class ServiceManagerContext {
} // namespace web } // namespace web
#endif // IOS_WEB_SERVICE_MANAGER_CONTEXT_H_ #endif // IOS_WEB_SERVICE_SERVICE_MANAGER_CONTEXT_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 "ios/web/service_manager_context.h" #include "ios/web/service/service_manager_context.h"
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
#include "base/single_thread_task_runner.h" #include "base/single_thread_task_runner.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/task/post_task.h" #include "base/task/post_task.h"
#include "ios/web/public/service_manager_connection.h" #include "ios/web/public/service/service_manager_connection.h"
#include "ios/web/public/service_names.mojom.h" #include "ios/web/public/service_names.mojom.h"
#include "ios/web/public/thread/web_task_traits.h" #include "ios/web/public/thread/web_task_traits.h"
#include "ios/web/public/thread/web_thread.h" #include "ios/web/public/thread/web_thread.h"
#include "ios/web/public/web_client.h" #include "ios/web/public/web_client.h"
#include "ios/web/service_manager_connection_impl.h" #include "ios/web/service/service_manager_connection_impl.h"
#import "ios/web/web_browser_manifest.h" #import "ios/web/service/web_browser_manifest.h"
#include "mojo/public/cpp/bindings/remote.h" #include "mojo/public/cpp/bindings/remote.h"
#include "services/service_manager/public/cpp/connector.h" #include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/constants.h" #include "services/service_manager/public/cpp/constants.h"
...@@ -155,9 +155,7 @@ class ServiceManagerContext::InProcessServiceManagerContext ...@@ -155,9 +155,7 @@ class ServiceManagerContext::InProcessServiceManagerContext
metadata->SetPID(base::GetCurrentProcId()); metadata->SetPID(base::GetCurrentProcId());
} }
void ShutDownOnIOThread() { void ShutDownOnIOThread() { service_manager_.reset(); }
service_manager_.reset();
}
std::unique_ptr<service_manager::ServiceManager> service_manager_; std::unique_ptr<service_manager::ServiceManager> service_manager_;
......
...@@ -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 IOS_WEB_WEB_BROWSER_MANIFEST_H_ #ifndef IOS_WEB_SERVICE_WEB_BROWSER_MANIFEST_H_
#define IOS_WEB_WEB_BROWSER_MANIFEST_H_ #define IOS_WEB_SERVICE_WEB_BROWSER_MANIFEST_H_
#include "services/service_manager/public/cpp/manifest.h" #include "services/service_manager/public/cpp/manifest.h"
...@@ -17,4 +17,4 @@ const service_manager::Manifest& GetWebBrowserManifest(); ...@@ -17,4 +17,4 @@ const service_manager::Manifest& GetWebBrowserManifest();
} // namespace web } // namespace web
#endif // IOS_WEB_WEB_BROWSER_MANIFEST_H_ #endif // IOS_WEB_SERVICE_WEB_BROWSER_MANIFEST_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.
#import "ios/web/web_browser_manifest.h" #import "ios/web/service/web_browser_manifest.h"
#include "base/no_destructor.h" #include "base/no_destructor.h"
#include "ios/web/public/service_names.mojom.h" #include "ios/web/public/service_names.mojom.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 "ios/web/public/web_state/web_state_interface_provider.h" #include "ios/web/public/service/web_state_interface_provider.h"
namespace web { namespace web {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#include "base/bind.h" #include "base/bind.h"
#include "ios/web/public/service_names.mojom.h" #include "ios/web/public/service/service_names.mojom.h"
#include "ios/web/public/user_agent.h" #include "ios/web/public/user_agent.h"
#import "ios/web/public/web_state/web_state.h" #import "ios/web/public/web_state/web_state.h"
#include "ios/web/shell/shell_web_main_parts.h" #include "ios/web/shell/shell_web_main_parts.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#import "base/strings/sys_string_conversions.h" #import "base/strings/sys_string_conversions.h"
#import "ios/testing/earl_grey/earl_grey_app.h" #import "ios/testing/earl_grey/earl_grey_app.h"
#include "ios/web/public/browser_state.h" #include "ios/web/public/browser_state.h"
#include "ios/web/public/service_manager_connection.h" #include "ios/web/public/service/service_manager_connection.h"
#import "ios/web/public/web_state/web_state.h" #import "ios/web/public/web_state/web_state.h"
#import "ios/web/shell/test/app/web_shell_test_util.h" #import "ios/web/shell/test/app/web_shell_test_util.h"
#import "ios/web/shell/web_usage_controller.mojom.h" #import "ios/web/shell/web_usage_controller.mojom.h"
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#import "ios/web/navigation/wk_navigation_action_util.h" #import "ios/web/navigation/wk_navigation_action_util.h"
#import "ios/web/navigation/wk_navigation_util.h" #import "ios/web/navigation/wk_navigation_util.h"
#import "ios/web/public/java_script_dialog_type.h" #import "ios/web/public/java_script_dialog_type.h"
#include "ios/web/public/service/web_state_interface_provider.h"
#import "ios/web/public/web_client.h" #import "ios/web/public/web_client.h"
#include "ios/web/public/web_state/web_state_interface_provider.h"
#import "ios/web/web_state/ui/crw_context_menu_controller.h" #import "ios/web/web_state/ui/crw_context_menu_controller.h"
#import "ios/web/web_state/ui/crw_wk_ui_handler_delegate.h" #import "ios/web/web_state/ui/crw_wk_ui_handler_delegate.h"
#import "ios/web/web_state/user_interaction_state.h" #import "ios/web/web_state/user_interaction_state.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#import "ios/web/public/java_script_dialog_presenter.h" #import "ios/web/public/java_script_dialog_presenter.h"
#import "ios/web/public/navigation/navigation_item.h" #import "ios/web/public/navigation/navigation_item.h"
#import "ios/web/public/navigation/web_state_policy_decider.h" #import "ios/web/public/navigation/web_state_policy_decider.h"
#include "ios/web/public/service/web_state_interface_provider.h"
#import "ios/web/public/session/crw_navigation_item_storage.h" #import "ios/web/public/session/crw_navigation_item_storage.h"
#import "ios/web/public/session/crw_session_storage.h" #import "ios/web/public/session/crw_session_storage.h"
#import "ios/web/public/session/serializable_user_data_manager.h" #import "ios/web/public/session/serializable_user_data_manager.h"
...@@ -37,7 +38,6 @@ ...@@ -37,7 +38,6 @@
#import "ios/web/public/web_client.h" #import "ios/web/public/web_client.h"
#import "ios/web/public/web_state/context_menu_params.h" #import "ios/web/public/web_state/context_menu_params.h"
#import "ios/web/public/web_state/web_state_delegate.h" #import "ios/web/public/web_state/web_state_delegate.h"
#include "ios/web/public/web_state/web_state_interface_provider.h"
#include "ios/web/public/web_state/web_state_observer.h" #include "ios/web/public/web_state/web_state_observer.h"
#include "ios/web/public/webui/web_ui_ios_controller.h" #include "ios/web/public/webui/web_ui_ios_controller.h"
#import "ios/web/security/web_interstitial_impl.h" #import "ios/web/security/web_interstitial_impl.h"
......
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "base/strings/sys_string_conversions.h" #include "base/strings/sys_string_conversions.h"
#import "base/test/ios/wait_util.h" #import "base/test/ios/wait_util.h"
#include "ios/web/public/service/web_state_interface_provider.h"
#import "ios/web/public/test/fakes/test_web_state.h" #import "ios/web/public/test/fakes/test_web_state.h"
#include "ios/web/public/test/web_test.h" #include "ios/web/public/test/web_test.h"
#include "ios/web/public/web_state/web_state_interface_provider.h"
#include "ios/web/test/mojo_test.mojom.h" #include "ios/web/test/mojo_test.mojom.h"
#include "ios/web/web_state/web_state_impl.h" #include "ios/web/web_state/web_state_impl.h"
#include "mojo/public/cpp/bindings/binding_set.h" #include "mojo/public/cpp/bindings/binding_set.h"
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
#include "base/threading/thread_task_runner_handle.h" #include "base/threading/thread_task_runner_handle.h"
#include "ios/web/grit/ios_web_resources.h" #include "ios/web/grit/ios_web_resources.h"
#import "ios/web/public/navigation/navigation_manager.h" #import "ios/web/public/navigation/navigation_manager.h"
#include "ios/web/public/service/web_state_interface_provider.h"
#import "ios/web/public/test/navigation_test_util.h" #import "ios/web/public/test/navigation_test_util.h"
#import "ios/web/public/web_state/web_state.h" #import "ios/web/public/web_state/web_state.h"
#include "ios/web/public/web_state/web_state_interface_provider.h"
#include "ios/web/public/webui/web_ui_ios_controller.h" #include "ios/web/public/webui/web_ui_ios_controller.h"
#include "ios/web/public/webui/web_ui_ios_controller_factory.h" #include "ios/web/public/webui/web_ui_ios_controller_factory.h"
#include "ios/web/public/webui/web_ui_ios_data_source.h" #include "ios/web/public/webui/web_ui_ios_data_source.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