Cleanup: Remove unneeded forward declarations in printing, sandbox, and skia.
BUG=none TEST=none Review URL: http://codereview.chromium.org/8538001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109961 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@ -6,6 +6,7 @@
|
|||||||
#define PRINTING_EMF_WIN_H_
|
#define PRINTING_EMF_WIN_H_
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "base/basictypes.h"
|
#include "base/basictypes.h"
|
||||||
@ -15,7 +16,6 @@
|
|||||||
class FilePath;
|
class FilePath;
|
||||||
|
|
||||||
namespace gfx {
|
namespace gfx {
|
||||||
class Point;
|
|
||||||
class Rect;
|
class Rect;
|
||||||
class Size;
|
class Size;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
class FilePath;
|
class FilePath;
|
||||||
|
|
||||||
namespace gfx {
|
namespace gfx {
|
||||||
class Point;
|
|
||||||
class Rect;
|
class Rect;
|
||||||
class Size;
|
class Size;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ class FilePath;
|
|||||||
namespace gfx {
|
namespace gfx {
|
||||||
class Rect;
|
class Rect;
|
||||||
class Size;
|
class Size;
|
||||||
class Point;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace printing {
|
namespace printing {
|
||||||
|
@ -17,10 +17,6 @@
|
|||||||
class FilePath;
|
class FilePath;
|
||||||
class MessageLoop;
|
class MessageLoop;
|
||||||
|
|
||||||
namespace gfx {
|
|
||||||
class Font;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace printing {
|
namespace printing {
|
||||||
|
|
||||||
class Metafile;
|
class Metafile;
|
||||||
|
@ -9,8 +9,6 @@
|
|||||||
|
|
||||||
namespace printing {
|
namespace printing {
|
||||||
|
|
||||||
class PrintedDocument;
|
|
||||||
|
|
||||||
// Source of printed pages.
|
// Source of printed pages.
|
||||||
class PrintedPagesSource {
|
class PrintedPagesSource {
|
||||||
public:
|
public:
|
||||||
|
@ -15,8 +15,6 @@ class DictionaryValue;
|
|||||||
|
|
||||||
namespace printing {
|
namespace printing {
|
||||||
|
|
||||||
class Metafile;
|
|
||||||
|
|
||||||
class PRINTING_EXPORT PrintingContextNoSystemDialog : public PrintingContext {
|
class PRINTING_EXPORT PrintingContextNoSystemDialog : public PrintingContext {
|
||||||
public:
|
public:
|
||||||
explicit PrintingContextNoSystemDialog(const std::string& app_locale);
|
explicit PrintingContextNoSystemDialog(const std::string& app_locale);
|
||||||
@ -47,4 +45,3 @@ class PRINTING_EXPORT PrintingContextNoSystemDialog : public PrintingContext {
|
|||||||
} // namespace printing
|
} // namespace printing
|
||||||
|
|
||||||
#endif // PRINTING_PRINTING_CONTEXT_NO_SYSTEM_DIALOG_H_
|
#endif // PRINTING_PRINTING_CONTEXT_NO_SYSTEM_DIALOG_H_
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
@ -6,12 +6,11 @@
|
|||||||
#define SANDBOX_SANDBOX_POC_MAIN_UI_WINDOW_H__
|
#define SANDBOX_SANDBOX_POC_MAIN_UI_WINDOW_H__
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "base/basictypes.h"
|
#include "base/basictypes.h"
|
||||||
|
|
||||||
namespace sandbox {
|
namespace sandbox {
|
||||||
class BrokerServices;
|
class BrokerServices;
|
||||||
class SandboxFactory;
|
|
||||||
class TargetProcess;
|
|
||||||
enum ResultCode;
|
enum ResultCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,6 +56,7 @@ class MainUIWindow {
|
|||||||
wchar_t* command_line,
|
wchar_t* command_line,
|
||||||
int show_command,
|
int show_command,
|
||||||
sandbox::BrokerServices* broker);
|
sandbox::BrokerServices* broker);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// The default value DLL name to add to the edit box.
|
// The default value DLL name to add to the edit box.
|
||||||
static const wchar_t kDefaultDll_[];
|
static const wchar_t kDefaultDll_[];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
@ -30,7 +30,6 @@ namespace sandbox {
|
|||||||
|
|
||||||
class BrokerServices;
|
class BrokerServices;
|
||||||
class ProcessState;
|
class ProcessState;
|
||||||
class TargetProcess;
|
|
||||||
class TargetPolicy;
|
class TargetPolicy;
|
||||||
class TargetServices;
|
class TargetServices;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2006-2011 The Chromium Authors. All rights reserved.
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
@ -6,6 +6,7 @@
|
|||||||
#define SANDBOX_SRC_SANDBOX_POLICY_BASE_H_
|
#define SANDBOX_SRC_SANDBOX_POLICY_BASE_H_
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -21,9 +22,8 @@
|
|||||||
|
|
||||||
namespace sandbox {
|
namespace sandbox {
|
||||||
|
|
||||||
class TargetProcess;
|
|
||||||
class PolicyRule;
|
|
||||||
class LowLevelPolicy;
|
class LowLevelPolicy;
|
||||||
|
class TargetProcess;
|
||||||
struct PolicyGlobal;
|
struct PolicyGlobal;
|
||||||
|
|
||||||
// We act as a policy dispatcher, implementing the handler for the "ping" IPC,
|
// We act as a policy dispatcher, implementing the handler for the "ping" IPC,
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||||
// 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 SANDBOX_SRC_TARGET_PROCESS_H__
|
#ifndef SANDBOX_SRC_TARGET_PROCESS_H__
|
||||||
#define SANDBOX_SRC_TARGET_PROCESS_H__
|
#define SANDBOX_SRC_TARGET_PROCESS_H__
|
||||||
|
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include "base/basictypes.h"
|
#include "base/basictypes.h"
|
||||||
#include "sandbox/src/crosscall_server.h"
|
#include "sandbox/src/crosscall_server.h"
|
||||||
@ -13,9 +13,7 @@
|
|||||||
|
|
||||||
namespace sandbox {
|
namespace sandbox {
|
||||||
|
|
||||||
class BrokerServicesBase;
|
|
||||||
class SharedMemIPCServer;
|
class SharedMemIPCServer;
|
||||||
class BrokerDispatcherBase;
|
|
||||||
class ThreadProvider;
|
class ThreadProvider;
|
||||||
|
|
||||||
// TargetProcess models a target instance (child process). Objects of this
|
// TargetProcess models a target instance (child process). Objects of this
|
||||||
|
@ -13,17 +13,15 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "third_party/skia/include/core/SkPreConfig.h"
|
|
||||||
#include "third_party/skia/include/core/SkDevice.h"
|
|
||||||
#include "third_party/skia/include/core/SkColor.h"
|
#include "third_party/skia/include/core/SkColor.h"
|
||||||
|
#include "third_party/skia/include/core/SkDevice.h"
|
||||||
|
#include "third_party/skia/include/core/SkPreConfig.h"
|
||||||
|
|
||||||
class SkMatrix;
|
class SkMatrix;
|
||||||
class SkMetaData;
|
class SkMetaData;
|
||||||
class SkPath;
|
class SkPath;
|
||||||
class SkRegion;
|
class SkRegion;
|
||||||
|
|
||||||
struct SkIRect;
|
|
||||||
|
|
||||||
#if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) \
|
#if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) \
|
||||||
|| defined(OS_SUN)
|
|| defined(OS_SUN)
|
||||||
typedef struct _cairo cairo_t;
|
typedef struct _cairo cairo_t;
|
||||||
@ -73,7 +71,7 @@ SK_API PlatformDevice* GetPlatformDevice(SkDevice* device);
|
|||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
// Initializes the default settings and colors in a device context.
|
// Initializes the default settings and colors in a device context.
|
||||||
SK_API void InitializeDC(HDC context);
|
SK_API void InitializeDC(HDC context);
|
||||||
#elif defined (OS_MACOSX)
|
#elif defined(OS_MACOSX)
|
||||||
// Returns the CGContext that backing the SkDevice. Forwards to the bound
|
// Returns the CGContext that backing the SkDevice. Forwards to the bound
|
||||||
// PlatformDevice. Returns NULL if no PlatformDevice is bound.
|
// PlatformDevice. Returns NULL if no PlatformDevice is bound.
|
||||||
SK_API CGContextRef GetBitmapContext(SkDevice* device);
|
SK_API CGContextRef GetBitmapContext(SkDevice* device);
|
||||||
@ -179,4 +177,4 @@ class SK_API PlatformDevice {
|
|||||||
|
|
||||||
} // namespace skia
|
} // namespace skia
|
||||||
|
|
||||||
#endif
|
#endif // SKIA_EXT_PLATFORM_DEVICE_H_
|
||||||
|
@ -13,10 +13,7 @@
|
|||||||
#include "third_party/skia/include/core/SkTScopedPtr.h"
|
#include "third_party/skia/include/core/SkTScopedPtr.h"
|
||||||
#include "third_party/skia/include/pdf/SkPDFDevice.h"
|
#include "third_party/skia/include/pdf/SkPDFDevice.h"
|
||||||
|
|
||||||
class SkClipStack;
|
|
||||||
class SkMatrix;
|
class SkMatrix;
|
||||||
struct SkIRect;
|
|
||||||
struct SkRect;
|
|
||||||
|
|
||||||
namespace skia {
|
namespace skia {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user