Commit 2bd73443 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove some media router includes in headers.

Forward declare instead. Also fix nits along the way.

Change-Id: I746a551d1ba7ac4eb85034a96464a8aaf600d6ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1714667Reviewed-by: default avatarTakumi Fujimoto <takumif@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680055}
parent 9f87b420
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "services/service_manager/public/cpp/binder_registry.h" #include "services/service_manager/public/cpp/binder_registry.h"
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
#include "base/task/post_task.h"
#include "chromeos/services/ime/public/mojom/constants.mojom.h" #include "chromeos/services/ime/public/mojom/constants.mojom.h"
#include "chromeos/services/ime/public/mojom/input_engine.mojom.h" #include "chromeos/services/ime/public/mojom/input_engine.mojom.h"
#include "chromeos/services/media_perception/public/mojom/media_perception.mojom.h" #include "chromeos/services/media_perception/public/mojom/media_perception.mojom.h"
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#include "chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.h" #include "chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.h"
#include "chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h"
using local_discovery::ServiceDescription; using local_discovery::ServiceDescription;
namespace media_router { namespace media_router {
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "base/macros.h" #include "base/macros.h"
#include "chrome/browser/local_discovery/service_discovery_device_lister.h" #include "chrome/browser/local_discovery/service_discovery_device_lister.h"
#include "chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h"
namespace local_discovery { namespace local_discovery {
class ServiceDiscoveryClient; class ServiceDiscoveryClient;
...@@ -18,6 +17,8 @@ class ServiceDiscoveryClient; ...@@ -18,6 +17,8 @@ class ServiceDiscoveryClient;
namespace media_router { namespace media_router {
class DnsSdDelegate;
// Manages a watcher for a specific MDNS/DNS-SD service type and notifies // Manages a watcher for a specific MDNS/DNS-SD service type and notifies
// a delegate of changes to watched services. // a delegate of changes to watched services.
class DnsSdDeviceLister class DnsSdDeviceLister
...@@ -35,6 +36,7 @@ class DnsSdDeviceLister ...@@ -35,6 +36,7 @@ class DnsSdDeviceLister
void Reset(); void Reset();
protected: protected:
// local_discovery::ServiceDiscoveryDeviceLister::Delegate:
void OnDeviceChanged( void OnDeviceChanged(
const std::string& service_type, const std::string& service_type,
bool added, bool added,
...@@ -52,7 +54,7 @@ class DnsSdDeviceLister ...@@ -52,7 +54,7 @@ class DnsSdDeviceLister
// The client and service type used to create |device_lister_|. // The client and service type used to create |device_lister_|.
local_discovery::ServiceDiscoveryClient* const service_discovery_client_; local_discovery::ServiceDiscoveryClient* const service_discovery_client_;
std::string service_type_; const std::string service_type_;
DISALLOW_COPY_AND_ASSIGN(DnsSdDeviceLister); DISALLOW_COPY_AND_ASSIGN(DnsSdDeviceLister);
}; };
......
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
#ifndef CHROME_BROWSER_MEDIA_ROUTER_PROVIDERS_CAST_CAST_MEDIA_ROUTE_PROVIDER_H_ #ifndef CHROME_BROWSER_MEDIA_ROUTER_PROVIDERS_CAST_CAST_MEDIA_ROUTE_PROVIDER_H_
#define CHROME_BROWSER_MEDIA_ROUTER_PROVIDERS_CAST_CAST_MEDIA_ROUTE_PROVIDER_H_ #define CHROME_BROWSER_MEDIA_ROUTER_PROVIDERS_CAST_CAST_MEDIA_ROUTE_PROVIDER_H_
#include <memory>
#include <string>
#include <vector>
#include "base/containers/flat_map.h" #include "base/containers/flat_map.h"
#include "base/macros.h" #include "base/macros.h"
#include "chrome/browser/media/router/providers/cast/cast_app_discovery_service.h" #include "chrome/browser/media/router/providers/cast/cast_app_discovery_service.h"
...@@ -16,6 +20,10 @@ namespace cast_channel { ...@@ -16,6 +20,10 @@ namespace cast_channel {
class CastMessageHandler; class CastMessageHandler;
} }
namespace service_manager {
class Connector;
}
namespace url { namespace url {
class Origin; class Origin;
} }
...@@ -24,6 +32,7 @@ namespace media_router { ...@@ -24,6 +32,7 @@ namespace media_router {
class CastActivityManager; class CastActivityManager;
class CastSessionTracker; class CastSessionTracker;
class DataDecoder;
// MediaRouteProvider for Cast sinks. This class may be created on any sequence. // MediaRouteProvider for Cast sinks. This class may be created on any sequence.
// All other methods, however, must be called on the task runner provided // All other methods, however, must be called on the task runner provided
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include "base/gtest_prod_util.h" #include "base/gtest_prod_util.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/sequence_checker.h" #include "base/sequence_checker.h"
#include "chrome/browser/media/router/discovery/mdns/cast_media_sink_service.h"
#include "chrome/browser/media/router/discovery/mdns/cast_media_sink_service_impl.h"
#include "chrome/browser/media/router/media_sinks_observer.h" #include "chrome/browser/media/router/media_sinks_observer.h"
#include "chrome/common/media_router/discovery/media_sink_internal.h" #include "chrome/common/media_router/discovery/media_sink_internal.h"
#include "chrome/common/media_router/media_source.h" #include "chrome/common/media_router/media_source.h"
...@@ -28,6 +26,7 @@ class CastAppDiscoveryService; ...@@ -28,6 +26,7 @@ class CastAppDiscoveryService;
class CastMediaSinkService; class CastMediaSinkService;
class DialMediaSinkService; class DialMediaSinkService;
class DialMediaSinkServiceImpl; class DialMediaSinkServiceImpl;
class MediaSinkServiceBase;
// This class uses DialMediaSinkService and CastMediaSinkService to discover // This class uses DialMediaSinkService and CastMediaSinkService to discover
// sinks used by the Cast MediaRouteProvider. It also encapsulates the setup // sinks used by the Cast MediaRouteProvider. It also encapsulates the setup
......
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