Commit 04b95b27 authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

[ios] Use chrome_browser_state_forward.h in /ios/chrome/browser/url_loading

Instead of forward declaring ChromeBrowserState in the ios
namespace, use a header. This will allow moving the class
to the global namespace without having to change all the
forward declaration at the same time.

This CL was uploaded by git cl split.

R=marq@chromium.org

Bug: 1042208
Change-Id: I1349bdd47e3b14b023bf292539822cb22a37a0ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2007287
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733372}
parent a1b7a6a4
......@@ -11,16 +11,13 @@
#include "base/ios/block_types.h"
#import "ios/chrome/app/application_delegate/tab_opening.h"
#include "ios/chrome/app/application_mode.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
#include "ui/base/page_transition_types.h"
struct UrlLoadParams;
@class TabModel;
namespace ios {
class ChromeBrowserState;
}
// Objective-C delegate for AppUrlLoadingService.
@protocol AppURLLoadingServiceDelegate
......
......@@ -5,13 +5,10 @@
#ifndef IOS_CHROME_BROWSER_URL_LOADING_TEST_APP_URL_LOADING_SERVICE_H_
#define IOS_CHROME_BROWSER_URL_LOADING_TEST_APP_URL_LOADING_SERVICE_H_
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
#include "ios/chrome/browser/url_loading/app_url_loading_service.h"
#import "ios/chrome/browser/url_loading/url_loading_params.h"
namespace ios {
class ChromeBrowserState;
}
// Service used to manage url loading at application level.
class TestAppUrlLoadingService : public AppUrlLoadingService {
public:
......
......@@ -10,10 +10,7 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
namespace ios {
class ChromeBrowserState;
}
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class UrlLoadingNotifier;
......
......@@ -10,10 +10,7 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
namespace ios {
class ChromeBrowserState;
}
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
class UrlLoadingService;
......
......@@ -8,12 +8,11 @@
#import <Foundation/Foundation.h>
#include "components/sessions/core/session_id.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
#include "ui/base/window_open_disposition.h"
class GURL;
namespace ios {
class ChromeBrowserState;
}
namespace web {
class WebState;
}
......
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