Commit 51f0dc6c authored by jbriance's avatar jbriance Committed by Commit bot

WebView: Cleanup class/struct forward declarations

Remove useless class and struct forward declarations, and add
missing ones in android_webview header files.

BUG=662195

Review-Url: https://codereview.chromium.org/2540163002
Cr-Commit-Position: refs/heads/master@{#435590}
parent 698c4714
......@@ -17,7 +17,6 @@ class MessageLoop;
namespace android_webview {
class AwBrowserContext;
class AwContentBrowserClient;
class AwBrowserMainParts : public content::BrowserMainParts {
......
......@@ -12,8 +12,6 @@
#include "base/callback_forward.h"
class GURL;
namespace net {
class HttpResponseHeaders;
class URLRequest;
......
......@@ -21,7 +21,6 @@ class FilePath;
}
namespace metrics {
struct ClientInfo;
class MetricsStateManager;
}
......
......@@ -15,7 +15,6 @@ class TouchHandleDrawable;
}
namespace android_webview {
struct ParentCompositorDrawConstraints;
class BrowserViewRendererClient {
public:
......
......@@ -18,10 +18,8 @@
struct AwDrawGLInfo;
namespace cc {
class Display;
class SurfaceFactory;
class SurfaceIdAllocator;
class SurfaceManager;
}
namespace android_webview {
......
......@@ -9,7 +9,6 @@
#include "net/base/network_delegate_impl.h"
namespace net {
class ProxyInfo;
class URLRequest;
}
......
......@@ -31,8 +31,6 @@ class URLRequestJobFactory;
namespace android_webview {
class AwNetworkDelegate;
class AwURLRequestContextGetter : public net::URLRequestContextGetter {
public:
AwURLRequestContextGetter(
......
......@@ -13,7 +13,6 @@
namespace net {
class HttpResponseHeaders;
class NetworkDelegate;
class URLRequest;
}
......
......@@ -19,7 +19,6 @@ class URLRequestInterceptor;
} // namespace net
namespace android_webview {
class AwBrowserContext;
// Gets the TaskRunner that the CookieStore must be called on.
scoped_refptr<base::SingleThreadTaskRunner> GetCookieStoreTaskRunner();
......
......@@ -16,8 +16,6 @@
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/size_f.h"
class GURL;
namespace content {
struct FrameNavigateParams;
struct LoadCommittedDetails;
......
......@@ -7,10 +7,6 @@
#include "base/macros.h"
namespace gl {
class GLContext;
}
namespace android_webview {
namespace internal {
......
......@@ -29,9 +29,7 @@ class Transform;
namespace android_webview {
class AwGLSurface;
class ParentOutputSurface;
class ScopedAppGLStateRestore;
class SurfacesInstance : public base::RefCounted<SurfacesInstance>,
public cc::DisplayClient,
......
......@@ -39,8 +39,6 @@ class BrowserViewRenderer;
class CompositorFrameConsumer;
class CompositorFrameProducer;
class FakeWindow;
class RenderThreadManager;
struct ParentCompositorDrawConstraints;
class RenderingTest : public testing::Test,
public BrowserViewRendererClient,
......
......@@ -10,7 +10,6 @@
#include "base/android/jni_android.h"
namespace net {
class URLRequestContext;
class URLRequestInterceptor;
} // namespace net
......
......@@ -20,14 +20,11 @@
#include "ui/android/view_android.h"
namespace autofill {
class AutofillMetrics;
class AutofillPopupDelegate;
class CardUnmaskDelegate;
class CreditCard;
class FormStructure;
class PasswordGenerator;
class PersonalDataManager;
struct FormData;
}
namespace content {
......
......@@ -30,7 +30,6 @@
class SkBitmap;
class TabContents;
struct AwDrawGLInfo;
namespace content {
class WebContents;
......@@ -43,7 +42,6 @@ class AwContentsClientBridge;
class AwGLFunctor;
class AwPdfExporter;
class AwWebContentsDelegate;
class HardwareRenderer;
class PermissionRequestHandler;
// Native side of java-class of same name.
......
......@@ -12,10 +12,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
class GURL;
namespace content {
class ResourceRequestInfo;
class WebContents;
}
......@@ -25,8 +22,6 @@ class URLRequest;
namespace android_webview {
class AwWebResourceResponse;
class AwContentsIoThreadClientImpl : public AwContentsIoThreadClient {
public:
// Called when AwContents is created before there is a Java client.
......
......@@ -19,8 +19,6 @@
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
class GURL;
namespace content {
class StoragePartition;
}
......
......@@ -15,8 +15,6 @@ class WebContents;
namespace android_webview {
class AwContents;
class AwWebContentsViewDelegate : public content::WebContentsViewDelegate {
public:
static content::WebContentsViewDelegate* Create(
......
......@@ -10,8 +10,6 @@
namespace android_webview {
class AwSettings;
class AwWebPreferencesPopulaterImpl : public AwWebPreferencesPopulater {
public:
AwWebPreferencesPopulaterImpl();
......
......@@ -17,7 +17,6 @@
#if BUILDFLAG(ENABLE_SPELLCHECK)
class SpellCheck;
class SpellCheckProvider;
#endif
namespace visitedlink {
......
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