Skip to content

Commit

Permalink
[iOS] Prepare to move ios/c/b/signin to model subfolder
Browse files Browse the repository at this point in the history
iOS is refactoring this code to move these files into a subfolder. This
prepares for that migration.

This is part of a multi-step CL:
1. This
2. crrev.com/i/6606688
3. TBD

Bug: 1480356
Change-Id: I426b4ffcdb15a477e73e387db64c59470a29ca92
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4981052
Reviewed-by: Jérôme Lebel <jlebel@chromium.org>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/main@{#1216208}
  • Loading branch information
rkgibson2 authored and Chromium LUCI CQ committed Oct 27, 2023
1 parent 38620b9 commit 0cecab8
Show file tree
Hide file tree
Showing 21 changed files with 274 additions and 0 deletions.
74 changes: 74 additions & 0 deletions ios/chrome/browser/signin/model/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

source_set("model") {
sources = [
"authentication_service.h",
"authentication_service_factory.h",
"authentication_service_observer.h",
"chrome_account_manager_service.h",
"chrome_account_manager_service_factory.h",
"identity_manager_factory.h",
]
public_deps = [ "//ios/chrome/browser/signin" ]
}

source_set("signin_util") {
sources = [ "signin_util.h" ]
public_deps = [ "//ios/chrome/browser/signin:signin_util" ]
}

source_set("capabilities_types") {
sources = [
"capabilities_dict.h",
"capabilities_types.h",
]
public_deps = [ "//ios/chrome/browser/signin:capabilities_types" ]
}

source_set("constants") {
sources = [ "constants.h" ]
public_deps = [ "//ios/chrome/browser/signin:constants" ]
}

source_set("system_identity") {
sources = [ "system_identity.h" ]
public_deps = [ "//ios/chrome/browser/signin:system_identity" ]
}

source_set("system_identity_manager") {
sources = [
"refresh_access_token_error.h",
"system_identity_interaction_manager.h",
"system_identity_manager.h",
"system_identity_manager_observer.h",
]
public_deps = [ "//ios/chrome/browser/signin:system_identity_manager" ]
}

source_set("fake_system_identity_manager") {
testonly = true
sources = [ "fake_system_identity_manager.h" ]
public_deps = [ "//ios/chrome/browser/signin:fake_system_identity_manager" ]
}

source_set("fake_system_identity") {
testonly = true
sources = [ "fake_system_identity.h" ]
public_deps = [ "//ios/chrome/browser/signin:fake_system_identity" ]
}

source_set("trusted_vault") {
sources = [ "trusted_vault_client_backend.h" ]
public_deps = [ "//ios/chrome/browser/signin:trusted_vault" ]
}

source_set("test_support") {
testonly = true
sources = [
"fake_authentication_service_delegate.h",
"identity_test_environment_browser_state_adaptor.h",
]
public_deps = [ "//ios/chrome/browser/signin:test_support" ]
}
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/authentication_service.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_H_

#import "ios/chrome/browser/signin/authentication_service.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/authentication_service_factory.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_FACTORY_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_FACTORY_H_

#include "ios/chrome/browser/signin/authentication_service_factory.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_FACTORY_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/authentication_service_observer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_OBSERVER_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_OBSERVER_H_

#include "ios/chrome/browser/signin/authentication_service_observer.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_AUTHENTICATION_SERVICE_OBSERVER_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/capabilities_dict.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_CAPABILITIES_DICT_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_CAPABILITIES_DICT_H_

#include "ios/chrome/browser/signin/capabilities_dict.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_CAPABILITIES_DICT_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/capabilities_types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_CAPABILITIES_TYPES_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_CAPABILITIES_TYPES_H_

#include "ios/chrome/browser/signin/capabilities_types.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_CAPABILITIES_TYPES_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/chrome_account_manager_service.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_CHROME_ACCOUNT_MANAGER_SERVICE_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_CHROME_ACCOUNT_MANAGER_SERVICE_H_

#include "ios/chrome/browser/signin/chrome_account_manager_service.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_CHROME_ACCOUNT_MANAGER_SERVICE_H_
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_CHROME_ACCOUNT_MANAGER_SERVICE_FACTORY_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_CHROME_ACCOUNT_MANAGER_SERVICE_FACTORY_H_

#include "ios/chrome/browser/signin/chrome_account_manager_service_factory.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_CHROME_ACCOUNT_MANAGER_SERVICE_FACTORY_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/constants.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_CONSTANTS_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_CONSTANTS_H_

#include "ios/chrome/browser/signin/constants.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_CONSTANTS_H_
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_AUTHENTICATION_SERVICE_DELEGATE_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_AUTHENTICATION_SERVICE_DELEGATE_H_

#import "ios/chrome/browser/signin/fake_authentication_service_delegate.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_AUTHENTICATION_SERVICE_DELEGATE_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/fake_system_identity.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_SYSTEM_IDENTITY_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_SYSTEM_IDENTITY_H_

#include "ios/chrome/browser/signin/fake_system_identity.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_SYSTEM_IDENTITY_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/fake_system_identity_manager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_SYSTEM_IDENTITY_MANAGER_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_SYSTEM_IDENTITY_MANAGER_H_

#include "ios/chrome/browser/signin/fake_system_identity_manager"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_FAKE_SYSTEM_IDENTITY_MANAGER_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/identity_manager_factory.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_IDENTITY_MANAGER_FACTORY_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_IDENTITY_MANAGER_FACTORY_H_

#include "ios/chrome/browser/signin/identity_manager_factory.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_IDENTITY_MANAGER_FACTORY_H_
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_IDENTITY_TEST_ENVIRONMENT_BROWSER_STATE_ADAPTOR_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_IDENTITY_TEST_ENVIRONMENT_BROWSER_STATE_ADAPTOR_H_

#include "ios/chrome/browser/signin/identity_test_environment_browser_state_adaptor.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_IDENTITY_TEST_ENVIRONMENT_BROWSER_STATE_ADAPTOR_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/refresh_access_token_error.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_REFRESH_ACCESS_TOKEN_ERROR_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_REFRESH_ACCESS_TOKEN_ERROR_H_

#include "ios/chrome/browser/signin/refresh_access_token_error.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_REFRESH_ACCESS_TOKEN_ERROR_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/signin_util.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_SIGNIN_UTIL_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_SIGNIN_UTIL_H_

#include "ios/chrome/browser/signin/signin_util.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_SIGNIN_UTIL_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/system_identity.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_H_

#include "ios/chrome/browser/signin/system_identity.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_H_
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_INTERACTION_MANAGER_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_INTERACTION_MANAGER_H_

#include "ios/chrome/browser/signin/system_identity_interaction_manager.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_INTERACTION_MANAGER_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/system_identity_manager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_MANAGER_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_MANAGER_H_

#include "ios/chrome/browser/signin/system_identity_manager.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_MANAGER_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/system_identity_manager_observer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_MANAGER_OBSERVER_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_MANAGER_OBSERVER_H_

#include "ios/chrome/browser/signin/system_identity_manager_observer.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_SYSTEM_IDENTITY_MANAGER_OBSERVER_H_
10 changes: 10 additions & 0 deletions ios/chrome/browser/signin/model/trusted_vault_client_backend.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SIGNIN_MODEL_TRUSTED_VAULT_CLIENT_BACKEND_H_
#define IOS_CHROME_BROWSER_SIGNIN_MODEL_TRUSTED_VAULT_CLIENT_BACKEND_H_

#include "ios/chrome/browser/signin/trusted_vault_client_backend.h"

#endif // IOS_CHROME_BROWSER_SIGNIN_MODEL_TRUSTED_VAULT_CLIENT_BACKEND_H_

0 comments on commit 0cecab8

Please sign in to comment.