summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ppapi/c/private/ppb_flash_file.h2
-rw-r--r--ppapi/cpp/dev/font_dev.h3
-rw-r--r--ppapi/cpp/dev/url_util_dev.h2
-rw-r--r--ppapi/cpp/dev/widget_dev.h3
-rw-r--r--ppapi/cpp/file_system.h3
-rw-r--r--ppapi/cpp/graphics_3d.h2
-rw-r--r--ppapi/cpp/graphics_3d_client.h7
-rw-r--r--ppapi/cpp/image_data.h1
-rw-r--r--ppapi/cpp/instance.h4
-rw-r--r--ppapi/cpp/var.h3
-rw-r--r--ppapi/native_client/src/shared/ppapi_proxy/plugin_resource_tracker.h2
-rw-r--r--ppapi/native_client/src/trusted/plugin/desc_based_handle.h2
-rw-r--r--ppapi/native_client/src/trusted/plugin/method_map.h10
-rw-r--r--ppapi/native_client/src/trusted/plugin/plugin.h1
-rw-r--r--ppapi/native_client/src/trusted/plugin/scriptable_handle.h11
-rw-r--r--ppapi/native_client/src/trusted/plugin/service_runtime.h2
-rw-r--r--ppapi/proxy/dispatcher.h2
-rw-r--r--ppapi/proxy/enter_proxy.h8
-rw-r--r--ppapi/proxy/host_dispatcher.h13
-rw-r--r--ppapi/proxy/host_var_serialization_rules.h4
-rw-r--r--ppapi/proxy/plugin_dispatcher.h8
-rw-r--r--ppapi/proxy/plugin_resource_tracker.h4
-rw-r--r--ppapi/proxy/plugin_var_tracker.h2
-rw-r--r--ppapi/proxy/ppapi_param_traits.h1
-rw-r--r--ppapi/proxy/ppb_broker_proxy.h10
-rw-r--r--ppapi/proxy/ppb_buffer_proxy.h10
-rw-r--r--ppapi/proxy/ppb_context_3d_proxy.h5
-rw-r--r--ppapi/proxy/ppb_cursor_control_proxy.h10
-rw-r--r--ppapi/proxy/ppb_file_chooser_proxy.h7
-rw-r--r--ppapi/proxy/ppb_file_ref_proxy.h4
-rw-r--r--ppapi/proxy/ppb_file_system_proxy.h4
-rw-r--r--ppapi/proxy/ppb_flash_proxy.h9
-rw-r--r--ppapi/proxy/ppb_font_proxy.h6
-rw-r--r--ppapi/proxy/ppb_surface_3d_proxy.h10
-rw-r--r--ppapi/proxy/ppb_text_input_proxy.h10
-rw-r--r--ppapi/proxy/ppb_var_deprecated_proxy.h9
-rw-r--r--ppapi/proxy/ppb_video_capture_proxy.h13
-rw-r--r--ppapi/proxy/ppp_class_proxy.h3
-rw-r--r--ppapi/proxy/ppp_instance_proxy.h4
-rw-r--r--ppapi/proxy/proxy_channel.h4
-rw-r--r--ppapi/proxy/proxy_module.h2
-rw-r--r--ppapi/shared_impl/url_request_info_impl.h4
-rw-r--r--ppapi/shared_impl/video_decoder_impl.h6
-rw-r--r--ppapi/tests/test_core.h10
-rw-r--r--ppapi/tests/test_graphics_2d.h11
-rw-r--r--ppapi/tests/test_video_decoder.h5
-rw-r--r--ppapi/thunk/resource_creation_api.h1
47 files changed, 72 insertions, 185 deletions
diff --git a/ppapi/c/private/ppb_flash_file.h b/ppapi/c/private/ppb_flash_file.h
index e43a008..ac8c0fb 100644
--- a/ppapi/c/private/ppb_flash_file.h
+++ b/ppapi/c/private/ppb_flash_file.h
@@ -21,8 +21,6 @@ typedef int PP_FileHandle;
static const PP_FileHandle PP_kInvalidFileHandle = -1;
#endif
-struct PP_CompletionCallback;
-struct PP_FontDescription_Dev;
struct PP_FileInfo;
struct PP_DirEntry_Dev {
diff --git a/ppapi/cpp/dev/font_dev.h b/ppapi/cpp/dev/font_dev.h
index 1ffb08b..a9604e9 100644
--- a/ppapi/cpp/dev/font_dev.h
+++ b/ppapi/cpp/dev/font_dev.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
// found in the LICENSE file.
@@ -15,7 +15,6 @@ struct PP_FontDescription_Dev;
namespace pp {
-class Font_dev;
class ImageData;
class Instance;
class Point;
diff --git a/ppapi/cpp/dev/url_util_dev.h b/ppapi/cpp/dev/url_util_dev.h
index 02f6276..168e796 100644
--- a/ppapi/cpp/dev/url_util_dev.h
+++ b/ppapi/cpp/dev/url_util_dev.h
@@ -11,7 +11,6 @@
namespace pp {
class Instance;
-class Module;
// Simple wrapper around the PPB_URLUtil interface.
class URLUtil_Dev {
@@ -56,4 +55,3 @@ class URLUtil_Dev {
} // namespace pp
#endif // PPAPI_CPP_DEV_URL_UTIL_DEV_H_
-
diff --git a/ppapi/cpp/dev/widget_dev.h b/ppapi/cpp/dev/widget_dev.h
index 79540a8..68988bf 100644
--- a/ppapi/cpp/dev/widget_dev.h
+++ b/ppapi/cpp/dev/widget_dev.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
// found in the LICENSE file.
@@ -12,7 +12,6 @@ namespace pp {
class ImageData;
class InputEvent;
-class Instance;
class Rect;
// This is the base class for widget elements. As such, it can't be created
diff --git a/ppapi/cpp/file_system.h b/ppapi/cpp/file_system.h
index fc789359..73b4813 100644
--- a/ppapi/cpp/file_system.h
+++ b/ppapi/cpp/file_system.h
@@ -15,12 +15,9 @@
/// @file
/// This file defines the API to create a file system associated with a file.
-struct PP_FileInfo;
-
namespace pp {
class CompletionCallback;
-class FileRef;
/// The <code>FileSystem</code> class identifies the file system type
/// associated with a file.
diff --git a/ppapi/cpp/graphics_3d.h b/ppapi/cpp/graphics_3d.h
index 67b6a79..d9e1fdb 100644
--- a/ppapi/cpp/graphics_3d.h
+++ b/ppapi/cpp/graphics_3d.h
@@ -14,7 +14,6 @@ namespace pp {
class CompletionCallback;
class Instance;
-class Var;
/// This class represents a 3D rendering context in the browser.
class Graphics3D : public Resource {
@@ -191,4 +190,3 @@ class Graphics3D : public Resource {
} // namespace pp
#endif // PPAPI_CPP_GRAPHICS_3D_H_
-
diff --git a/ppapi/cpp/graphics_3d_client.h b/ppapi/cpp/graphics_3d_client.h
index 1d2e053..60299ca 100644
--- a/ppapi/cpp/graphics_3d_client.h
+++ b/ppapi/cpp/graphics_3d_client.h
@@ -13,9 +13,6 @@
namespace pp {
class Instance;
-class Rect;
-class Scrollbar_Dev;
-class Widget_Dev;
// This class provides a C++ interface for callbacks related to 3D. You
// would normally use multiple inheritance to derive from this class in your
@@ -27,7 +24,7 @@ class Graphics3DClient {
///
/// @param[in] instance The instance that will own the new
/// <code>Graphics3DClient</code>.
- Graphics3DClient(Instance* instance);
+ explicit Graphics3DClient(Instance* instance);
/// Destructor.
virtual ~Graphics3DClient();
@@ -42,4 +39,4 @@ class Graphics3DClient {
} // namespace pp
-#endif // PPAPI_CPP_DEV_GRAPHICS_3D_CLIENT_H_
+#endif // PPAPI_CPP_GRAPHICS_3D_CLIENT_H_
diff --git a/ppapi/cpp/image_data.h b/ppapi/cpp/image_data.h
index e8bed28..1e6def8 100644
--- a/ppapi/cpp/image_data.h
+++ b/ppapi/cpp/image_data.h
@@ -17,7 +17,6 @@
namespace pp {
class Instance;
-class Plugin;
class ImageData : public Resource {
public:
diff --git a/ppapi/cpp/instance.h b/ppapi/cpp/instance.h
index 654aedbb..981f29c 100644
--- a/ppapi/cpp/instance.h
+++ b/ppapi/cpp/instance.h
@@ -23,11 +23,7 @@ namespace pp {
class Graphics2D;
class Graphics3D;
class InputEvent;
-class ImageData;
-class Point;
class Rect;
-class Rect;
-class Resource;
class Surface3D_Dev;
class URLLoader;
class Var;
diff --git a/ppapi/cpp/var.h b/ppapi/cpp/var.h
index 01b4072..0cd8218 100644
--- a/ppapi/cpp/var.h
+++ b/ppapi/cpp/var.h
@@ -17,8 +17,6 @@
/// your module and the page.
namespace pp {
-class Instance;
-
/// A generic type used for passing data types between the module and the page.
class Var {
public:
@@ -293,7 +291,6 @@ class Var {
// a bool at Var construction. If somebody makes such a mistake, (s)he will
// get a compilation error.
Var(void* non_scriptable_object_pointer);
-
};
} // namespace pp
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_resource_tracker.h b/ppapi/native_client/src/shared/ppapi_proxy/plugin_resource_tracker.h
index 0979b51..81c07e2 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_resource_tracker.h
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_resource_tracker.h
@@ -16,7 +16,6 @@
namespace ppapi_proxy {
-class PluginInstance;
class PluginResource;
// This class maintains a global list of all live pepper resources. It allows
@@ -88,4 +87,3 @@ class PluginResourceTracker {
} // namespace ppapi_proxy
#endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_TRACKER_H_
-
diff --git a/ppapi/native_client/src/trusted/plugin/desc_based_handle.h b/ppapi/native_client/src/trusted/plugin/desc_based_handle.h
index 3ae5b02..396b373 100644
--- a/ppapi/native_client/src/trusted/plugin/desc_based_handle.h
+++ b/ppapi/native_client/src/trusted/plugin/desc_based_handle.h
@@ -27,8 +27,6 @@ class DescWrapper;
namespace plugin {
-class Plugin;
-
// DescBasedHandles are used to convey NaClDesc objects through JavaScript.
class DescBasedHandle {
public:
diff --git a/ppapi/native_client/src/trusted/plugin/method_map.h b/ppapi/native_client/src/trusted/plugin/method_map.h
index 1bbde2f..1bf8b80 100644
--- a/ppapi/native_client/src/trusted/plugin/method_map.h
+++ b/ppapi/native_client/src/trusted/plugin/method_map.h
@@ -1,8 +1,6 @@
-/*
- * Copyright 2008 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can
- * be found in the LICENSE file.
- */
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// Lookup table types for method dispatching.
@@ -19,8 +17,6 @@
namespace plugin {
-class Plugin;
-
bool InitSrpcArgArray(NaClSrpcArg* arr, int size);
void FreeSrpcArg(NaClSrpcArg* arg);
diff --git a/ppapi/native_client/src/trusted/plugin/plugin.h b/ppapi/native_client/src/trusted/plugin/plugin.h
index cc804b7..bb1c220 100644
--- a/ppapi/native_client/src/trusted/plugin/plugin.h
+++ b/ppapi/native_client/src/trusted/plugin/plugin.h
@@ -35,7 +35,6 @@
#include "ppapi/cpp/var.h"
struct NaClSrpcChannel;
-struct NaClDesc;
namespace nacl {
class DescWrapper;
diff --git a/ppapi/native_client/src/trusted/plugin/scriptable_handle.h b/ppapi/native_client/src/trusted/plugin/scriptable_handle.h
index e0e42a8..17d83fe 100644
--- a/ppapi/native_client/src/trusted/plugin/scriptable_handle.h
+++ b/ppapi/native_client/src/trusted/plugin/scriptable_handle.h
@@ -1,9 +1,6 @@
-/*
- * Copyright 2011 (c) The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// The browser scriptable container class. The methods on this class
// are defined in the specific API directories.
@@ -28,8 +25,6 @@
#include "ppapi/cpp/dev/scriptable_object_deprecated.h"
#include "ppapi/cpp/private/var_private.h"
-struct NaClDesc;
-
namespace plugin {
// Forward declarations for externals.
diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.h b/ppapi/native_client/src/trusted/plugin/service_runtime.h
index 2d539e6..1d0c3bf 100644
--- a/ppapi/native_client/src/trusted/plugin/service_runtime.h
+++ b/ppapi/native_client/src/trusted/plugin/service_runtime.h
@@ -36,8 +36,6 @@ class BrowserInterface;
class ErrorInfo;
class Plugin;
class SrpcClient;
-class SrtSocket;
-class ScriptableHandle;
class ServiceRuntime;
// Callback resources are essentially our continuation state.
diff --git a/ppapi/proxy/dispatcher.h b/ppapi/proxy/dispatcher.h
index 988f53d..a4a8f06 100644
--- a/ppapi/proxy/dispatcher.h
+++ b/ppapi/proxy/dispatcher.h
@@ -22,8 +22,6 @@
namespace ppapi {
-class WebKitForwarding;
-
namespace proxy {
class VarSerializationRules;
diff --git a/ppapi/proxy/enter_proxy.h b/ppapi/proxy/enter_proxy.h
index 3f819ba..5306a80 100644
--- a/ppapi/proxy/enter_proxy.h
+++ b/ppapi/proxy/enter_proxy.h
@@ -15,10 +15,6 @@
namespace ppapi {
-namespace thunk {
-class ResourceCreationAPI;
-}
-
namespace proxy {
// Wrapper around EnterResourceNoLock that takes a host resource. This is used
@@ -31,7 +27,7 @@ template<typename ResourceT>
class EnterPluginFromHostResource
: public thunk::EnterResourceNoLock<ResourceT> {
public:
- EnterPluginFromHostResource(const HostResource& host_resource)
+ explicit EnterPluginFromHostResource(const HostResource& host_resource)
: thunk::EnterResourceNoLock<ResourceT>(
PluginGlobals::Get()->plugin_resource_tracker()->
PluginResourceForHostResource(host_resource),
@@ -48,7 +44,7 @@ template<typename ResourceT>
class EnterHostFromHostResource
: public thunk::EnterResourceNoLock<ResourceT> {
public:
- EnterHostFromHostResource(const HostResource& host_resource)
+ explicit EnterHostFromHostResource(const HostResource& host_resource)
: thunk::EnterResourceNoLock<ResourceT>(
host_resource.host_resource(), false) {
// Validate that we're in the host rather than the plugin. Otherwise this
diff --git a/ppapi/proxy/host_dispatcher.h b/ppapi/proxy/host_dispatcher.h
index 10fca5c..31de206 100644
--- a/ppapi/proxy/host_dispatcher.h
+++ b/ppapi/proxy/host_dispatcher.h
@@ -16,15 +16,6 @@
#include "ppapi/shared_impl/function_group_base.h"
struct PPB_Proxy_Private;
-struct PPB_Var_Deprecated;
-
-namespace base {
-class WaitableEvent;
-}
-
-namespace IPC {
-class SyncChannel;
-}
namespace ppapi {
@@ -32,8 +23,6 @@ struct Preferences;
namespace proxy {
-class VarSerialization;
-
class PPAPI_PROXY_EXPORT HostDispatcher : public Dispatcher {
public:
// Constructor for the renderer side.
@@ -124,7 +113,7 @@ class PPAPI_PROXY_EXPORT HostDispatcher : public Dispatcher {
// since that's what most callers have.
class ScopedModuleReference {
public:
- ScopedModuleReference(Dispatcher* dispatcher);
+ explicit ScopedModuleReference(Dispatcher* dispatcher);
~ScopedModuleReference();
private:
diff --git a/ppapi/proxy/host_var_serialization_rules.h b/ppapi/proxy/host_var_serialization_rules.h
index 478a872..70e9a7b 100644
--- a/ppapi/proxy/host_var_serialization_rules.h
+++ b/ppapi/proxy/host_var_serialization_rules.h
@@ -5,6 +5,8 @@
#ifndef PPAPI_PROXY_HOST_VAR_SERIALIZATION_RULES_H_
#define PPAPI_PROXY_HOST_VAR_SERIALIZATION_RULES_H_
+#include <string>
+
#include "base/basictypes.h"
#include "ppapi/c/pp_module.h"
#include "ppapi/proxy/var_serialization_rules.h"
@@ -14,8 +16,6 @@ struct PPB_Var;
namespace ppapi {
namespace proxy {
-class VarTracker;
-
// Implementation of the VarSerializationRules interface for the host side.
class HostVarSerializationRules : public VarSerializationRules {
public:
diff --git a/ppapi/proxy/plugin_dispatcher.h b/ppapi/proxy/plugin_dispatcher.h
index b16484c..fcfacfb 100644
--- a/ppapi/proxy/plugin_dispatcher.h
+++ b/ppapi/proxy/plugin_dispatcher.h
@@ -5,6 +5,7 @@
#ifndef PPAPI_PROXY_PLUGIN_DISPATCHER_H_
#define PPAPI_PROXY_PLUGIN_DISPATCHER_H_
+#include <set>
#include <string>
#include "base/basictypes.h"
@@ -18,16 +19,11 @@
#include "ppapi/shared_impl/function_group_base.h"
#include "ppapi/shared_impl/ppapi_preferences.h"
-class MessageLoop;
-
-namespace base {
-class WaitableEvent;
-}
-
namespace ppapi {
struct Preferences;
class Resource;
+class WebKitForwarding;
namespace proxy {
diff --git a/ppapi/proxy/plugin_resource_tracker.h b/ppapi/proxy/plugin_resource_tracker.h
index b87c6f8..35c2385 100644
--- a/ppapi/proxy/plugin_resource_tracker.h
+++ b/ppapi/proxy/plugin_resource_tracker.h
@@ -23,12 +23,8 @@ template<typename T> struct DefaultSingletonTraits;
namespace ppapi {
-class Var;
-
namespace proxy {
-class PluginDispatcher;
-
class PPAPI_PROXY_EXPORT PluginResourceTracker : public ResourceTracker {
public:
PluginResourceTracker();
diff --git a/ppapi/proxy/plugin_var_tracker.h b/ppapi/proxy/plugin_var_tracker.h
index 405b03f..b6bb893 100644
--- a/ppapi/proxy/plugin_var_tracker.h
+++ b/ppapi/proxy/plugin_var_tracker.h
@@ -16,8 +16,6 @@
#include "ppapi/proxy/ppapi_proxy_export.h"
#include "ppapi/shared_impl/var_tracker.h"
-struct PPB_Var;
-
template<typename T> struct DefaultSingletonTraits;
namespace ppapi {
diff --git a/ppapi/proxy/ppapi_param_traits.h b/ppapi/proxy/ppapi_param_traits.h
index 83d2988..4787dca 100644
--- a/ppapi/proxy/ppapi_param_traits.h
+++ b/ppapi/proxy/ppapi_param_traits.h
@@ -18,7 +18,6 @@
struct PP_FileInfo;
struct PP_ObjectProperty;
-struct PP_Flash_Menu;
struct PP_NetAddress_Private;
namespace ppapi {
diff --git a/ppapi/proxy/ppb_broker_proxy.h b/ppapi/proxy/ppb_broker_proxy.h
index 572cf79..d2f039a 100644
--- a/ppapi/proxy/ppb_broker_proxy.h
+++ b/ppapi/proxy/ppb_broker_proxy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_PPB_BROKER_PROXY_H_
-#define PPAPI_PPB_BROKER_PROXY_H_
+#ifndef PPAPI_PROXY_PPB_BROKER_PROXY_H_
+#define PPAPI_PROXY_PPB_BROKER_PROXY_H_
#include "base/sync_socket.h"
#include "ipc/ipc_platform_file.h"
@@ -12,8 +12,6 @@
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
-struct PPB_BrokerTrusted;
-
namespace ppapi {
class HostResource;
@@ -22,7 +20,7 @@ namespace proxy {
class PPB_Broker_Proxy : public InterfaceProxy {
public:
- PPB_Broker_Proxy(Dispatcher* dispatcher);
+ explicit PPB_Broker_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Broker_Proxy();
static PP_Resource CreateProxyResource(PP_Instance instance);
@@ -50,4 +48,4 @@ class PPB_Broker_Proxy : public InterfaceProxy {
} // namespace proxy
} // namespace ppapi
-#endif // PPAPI_PPB_BROKER_PROXY_H_
+#endif // PPAPI_PROXY_PPB_BROKER_PROXY_H_
diff --git a/ppapi/proxy/ppb_buffer_proxy.h b/ppapi/proxy/ppb_buffer_proxy.h
index 9b39c2c..08a2753 100644
--- a/ppapi/proxy/ppb_buffer_proxy.h
+++ b/ppapi/proxy/ppb_buffer_proxy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_PPB_BUFFER_PROXY_H_
-#define PPAPI_PPB_BUFFER_PROXY_H_
+#ifndef PPAPI_PROXY_PPB_BUFFER_PROXY_H_
+#define PPAPI_PROXY_PPB_BUFFER_PROXY_H_
#include "base/shared_memory.h"
#include "ppapi/c/pp_instance.h"
@@ -11,8 +11,6 @@
#include "ppapi/shared_impl/resource.h"
#include "ppapi/thunk/ppb_buffer_api.h"
-struct PPB_Buffer_Dev;
-
namespace ppapi {
class HostResource;
@@ -46,7 +44,7 @@ class Buffer : public thunk::PPB_Buffer_API, public Resource {
class PPB_Buffer_Proxy : public InterfaceProxy {
public:
- PPB_Buffer_Proxy(Dispatcher* dispatcher);
+ explicit PPB_Buffer_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Buffer_Proxy();
static PP_Resource CreateProxyResource(PP_Instance instance,
@@ -71,4 +69,4 @@ class PPB_Buffer_Proxy : public InterfaceProxy {
} // namespace proxy
} // namespace ppapi
-#endif // PPAPI_PPB_BUFFER_PROXY_H_
+#endif // PPAPI_PROXY_PPB_BUFFER_PROXY_H_
diff --git a/ppapi/proxy/ppb_context_3d_proxy.h b/ppapi/proxy/ppb_context_3d_proxy.h
index 2fb52c6..4747b4b 100644
--- a/ppapi/proxy/ppb_context_3d_proxy.h
+++ b/ppapi/proxy/ppb_context_3d_proxy.h
@@ -17,9 +17,6 @@
#include "ppapi/shared_impl/resource.h"
#include "ppapi/thunk/ppb_context_3d_api.h"
-struct PPB_Context3D_Dev;
-struct PPB_Context3DTrusted_Dev;
-
namespace gpu {
class CommandBuffer;
@@ -94,7 +91,7 @@ class Context3D : public Resource, public thunk::PPB_Context3D_API {
class PPB_Context3D_Proxy : public InterfaceProxy {
public:
- PPB_Context3D_Proxy(Dispatcher* dispatcher);
+ explicit PPB_Context3D_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Context3D_Proxy();
static PP_Resource Create(PP_Instance instance,
diff --git a/ppapi/proxy/ppb_cursor_control_proxy.h b/ppapi/proxy/ppb_cursor_control_proxy.h
index 5e9cfa8..f2d3e2c 100644
--- a/ppapi/proxy/ppb_cursor_control_proxy.h
+++ b/ppapi/proxy/ppb_cursor_control_proxy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_PPB_CURSOR_CONTROL_PROXY_H_
-#define PPAPI_PPB_CURSOR_CONTROL_PROXY_H_
+#ifndef PPAPI_PROXY_PPB_CURSOR_CONTROL_PROXY_H_
+#define PPAPI_PROXY_PPB_CURSOR_CONTROL_PROXY_H_
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_bool.h"
@@ -15,8 +15,6 @@
#include "ppapi/shared_impl/host_resource.h"
#include "ppapi/thunk/ppb_cursor_control_api.h"
-struct PPB_CursorControl_Dev;
-
namespace ppapi {
namespace proxy {
@@ -24,7 +22,7 @@ class PPB_CursorControl_Proxy
: public InterfaceProxy,
public ppapi::thunk::PPB_CursorControl_FunctionAPI {
public:
- PPB_CursorControl_Proxy(Dispatcher* dispatcher);
+ explicit PPB_CursorControl_Proxy(Dispatcher* dispatcher);
virtual ~PPB_CursorControl_Proxy();
// FunctionGroupBase overrides.
@@ -66,4 +64,4 @@ class PPB_CursorControl_Proxy
} // namespace proxy
} // namespace ppapi
-#endif // PPAPI_PPB_CURSOR_CONTROL_PROXY_H_
+#endif // PPAPI_PROXY_PPB_CURSOR_CONTROL_PROXY_H_
diff --git a/ppapi/proxy/ppb_file_chooser_proxy.h b/ppapi/proxy/ppb_file_chooser_proxy.h
index 1256cd3..887a32b 100644
--- a/ppapi/proxy/ppb_file_chooser_proxy.h
+++ b/ppapi/proxy/ppb_file_chooser_proxy.h
@@ -15,9 +15,6 @@
#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
#include "ppapi/thunk/ppb_file_chooser_api.h"
-struct PPB_FileChooser_Dev;
-struct PPB_FileChooserTrusted;
-
namespace ppapi {
class HostResource;
@@ -25,11 +22,9 @@ struct PPB_FileRef_CreateInfo;
namespace proxy {
-class SerializedVarReceiveInput;
-
class PPB_FileChooser_Proxy : public InterfaceProxy {
public:
- PPB_FileChooser_Proxy(Dispatcher* dispatcher);
+ explicit PPB_FileChooser_Proxy(Dispatcher* dispatcher);
virtual ~PPB_FileChooser_Proxy();
static const Info* GetTrustedInfo();
diff --git a/ppapi/proxy/ppb_file_ref_proxy.h b/ppapi/proxy/ppb_file_ref_proxy.h
index 07549c4..83fee18 100644
--- a/ppapi/proxy/ppb_file_ref_proxy.h
+++ b/ppapi/proxy/ppb_file_ref_proxy.h
@@ -15,8 +15,6 @@
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
-struct PPB_FileRef_Dev;
-
namespace ppapi {
class HostResource;
@@ -26,7 +24,7 @@ namespace proxy {
class PPB_FileRef_Proxy : public InterfaceProxy {
public:
- PPB_FileRef_Proxy(Dispatcher* dispatcher);
+ explicit PPB_FileRef_Proxy(Dispatcher* dispatcher);
virtual ~PPB_FileRef_Proxy();
static PP_Resource CreateProxyResource(PP_Resource file_system,
diff --git a/ppapi/proxy/ppb_file_system_proxy.h b/ppapi/proxy/ppb_file_system_proxy.h
index 07e3929..a07b824 100644
--- a/ppapi/proxy/ppb_file_system_proxy.h
+++ b/ppapi/proxy/ppb_file_system_proxy.h
@@ -16,8 +16,6 @@
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
-struct PPB_FileSystem_Dev;
-
namespace ppapi {
class HostResource;
@@ -26,7 +24,7 @@ namespace proxy {
class PPB_FileSystem_Proxy : public InterfaceProxy {
public:
- PPB_FileSystem_Proxy(Dispatcher* dispatcher);
+ explicit PPB_FileSystem_Proxy(Dispatcher* dispatcher);
virtual ~PPB_FileSystem_Proxy();
static const Info* GetInfo();
diff --git a/ppapi/proxy/ppb_flash_proxy.h b/ppapi/proxy/ppb_flash_proxy.h
index 2d224bd..8151d23 100644
--- a/ppapi/proxy/ppb_flash_proxy.h
+++ b/ppapi/proxy/ppb_flash_proxy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_PPB_FLASH_PROXY_H_
-#define PPAPI_PPB_FLASH_PROXY_H_
+#ifndef PPAPI_PROXY_PPB_FLASH_PROXY_H_
+#define PPAPI_PROXY_PPB_FLASH_PROXY_H_
#include <string>
#include <vector>
@@ -15,7 +15,6 @@
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/shared_impl/host_resource.h"
-struct PP_FileInfo;
struct PPB_Flash;
namespace ppapi {
@@ -29,7 +28,7 @@ class SerializedVarReturnValue;
class PPB_Flash_Proxy : public InterfaceProxy {
public:
- PPB_Flash_Proxy(Dispatcher* dispatcher);
+ explicit PPB_Flash_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Flash_Proxy();
static const PPB_Flash* GetInterface();
@@ -67,4 +66,4 @@ class PPB_Flash_Proxy : public InterfaceProxy {
} // namespace proxy
} // namespace ppapi
-#endif // PPAPI_PPB_FLASH_PROXY_H_
+#endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_
diff --git a/ppapi/proxy/ppb_font_proxy.h b/ppapi/proxy/ppb_font_proxy.h
index 9deb31f..136e509 100644
--- a/ppapi/proxy/ppb_font_proxy.h
+++ b/ppapi/proxy/ppb_font_proxy.h
@@ -14,17 +14,13 @@
#include "ppapi/shared_impl/webkit_forwarding.h"
#include "ppapi/thunk/ppb_font_api.h"
-struct PPB_Font_Dev;
-
namespace ppapi {
namespace proxy {
-class SerializedVarReturnValue;
-
class PPB_Font_Proxy : public InterfaceProxy,
public ppapi::thunk::PPB_Font_FunctionAPI {
public:
- PPB_Font_Proxy(Dispatcher* dispatcher);
+ explicit PPB_Font_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Font_Proxy();
// FunctionGroupBase overrides.
diff --git a/ppapi/proxy/ppb_surface_3d_proxy.h b/ppapi/proxy/ppb_surface_3d_proxy.h
index cf47888..b9d053d 100644
--- a/ppapi/proxy/ppb_surface_3d_proxy.h
+++ b/ppapi/proxy/ppb_surface_3d_proxy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_PPB_SURFACE_3D_PROXY_H_
-#define PPAPI_PPB_SURFACE_3D_PROXY_H_
+#ifndef PPAPI_PROXY_PPB_SURFACE_3D_PROXY_H_
+#define PPAPI_PROXY_PPB_SURFACE_3D_PROXY_H_
#include <vector>
@@ -16,8 +16,6 @@
#include "ppapi/shared_impl/resource.h"
#include "ppapi/thunk/ppb_surface_3d_api.h"
-struct PPB_Surface3D_Dev;
-
namespace ppapi {
namespace proxy {
@@ -63,7 +61,7 @@ class Surface3D : public ppapi::Resource,
class PPB_Surface3D_Proxy : public InterfaceProxy {
public:
- PPB_Surface3D_Proxy(Dispatcher* dispatcher);
+ explicit PPB_Surface3D_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Surface3D_Proxy();
static const Info* GetInfo();
@@ -98,4 +96,4 @@ class PPB_Surface3D_Proxy : public InterfaceProxy {
} // namespace proxy
} // namespace ppapi
-#endif // PPAPI_PPB_SURFACE_3D_PROXY_H_
+#endif // PPAPI_PROXY_PPB_SURFACE_3D_PROXY_H_
diff --git a/ppapi/proxy/ppb_text_input_proxy.h b/ppapi/proxy/ppb_text_input_proxy.h
index d692ea3..92a8b12 100644
--- a/ppapi/proxy/ppb_text_input_proxy.h
+++ b/ppapi/proxy/ppb_text_input_proxy.h
@@ -2,16 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_PPB_TEXT_INPUT_PROXY_H_
-#define PPAPI_PPB_TEXT_INPUT_PROXY_H_
+#ifndef PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_
+#define PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_rect.h"
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/thunk/ppb_text_input_api.h"
-struct PPB_TextInput_Dev;
-
namespace ppapi {
namespace proxy {
@@ -19,7 +17,7 @@ class PPB_TextInput_Proxy
: public InterfaceProxy,
public ppapi::thunk::PPB_TextInput_FunctionAPI {
public:
- PPB_TextInput_Proxy(Dispatcher* dispatcher);
+ explicit PPB_TextInput_Proxy(Dispatcher* dispatcher);
virtual ~PPB_TextInput_Proxy();
// FunctionGroupBase overrides.
@@ -53,4 +51,4 @@ class PPB_TextInput_Proxy
} // namespace proxy
} // namespace ppapi
-#endif // PPAPI_PPB_TEXT_INPUT_PROXY_H_
+#endif // PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_
diff --git a/ppapi/proxy/ppb_var_deprecated_proxy.h b/ppapi/proxy/ppb_var_deprecated_proxy.h
index 1eb62c6..5e6efd3 100644
--- a/ppapi/proxy/ppb_var_deprecated_proxy.h
+++ b/ppapi/proxy/ppb_var_deprecated_proxy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_PPB_VAR_DEPRECATED_PROXY_H_
-#define PPAPI_PPB_VAR_DEPRECATED_PROXY_H_
+#ifndef PPAPI_PROXY_PPB_VAR_DEPRECATED_PROXY_H_
+#define PPAPI_PROXY_PPB_VAR_DEPRECATED_PROXY_H_
#include <vector>
@@ -17,7 +17,6 @@ namespace ppapi {
namespace proxy {
class SerializedVar;
-class SerializedVarArray;
class SerializedVarReceiveInput;
class SerializedVarVectorOutParam;
class SerializedVarVectorReceiveInput;
@@ -26,7 +25,7 @@ class SerializedVarReturnValue;
class PPB_Var_Deprecated_Proxy : public InterfaceProxy {
public:
- PPB_Var_Deprecated_Proxy(Dispatcher* dispatcher);
+ explicit PPB_Var_Deprecated_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Var_Deprecated_Proxy();
static const Info* GetInfo();
@@ -100,4 +99,4 @@ class PPB_Var_Deprecated_Proxy : public InterfaceProxy {
} // namespace proxy
} // namespace ppapi
-#endif // PPAPI_PPB_VAR_DEPRECATED_PROXY_H_
+#endif // PPAPI_PROXY_PPB_VAR_DEPRECATED_PROXY_H_
diff --git a/ppapi/proxy/ppb_video_capture_proxy.h b/ppapi/proxy/ppb_video_capture_proxy.h
index e72899a..77295c7d 100644
--- a/ppapi/proxy/ppb_video_capture_proxy.h
+++ b/ppapi/proxy/ppb_video_capture_proxy.h
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_PPB_VIDEO_CAPTURE_PROXY_H_
-#define PPAPI_PPB_VIDEO_CAPTURE_PROXY_H_
+#ifndef PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_
+#define PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_
+
+#include <vector>
#include "ppapi/c/pp_instance.h"
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/proxy/serialized_structs.h"
-struct PPB_VideoCapture_Dev;
struct PPP_VideoCapture_Dev;
struct PP_VideoCaptureDeviceInfo_Dev;
@@ -21,7 +22,7 @@ namespace proxy {
class PPB_VideoCapture_Proxy : public InterfaceProxy {
public:
- PPB_VideoCapture_Proxy(Dispatcher* dispatcher);
+ explicit PPB_VideoCapture_Proxy(Dispatcher* dispatcher);
virtual ~PPB_VideoCapture_Proxy();
static PP_Resource CreateProxyResource(PP_Instance instance);
@@ -46,7 +47,7 @@ class PPB_VideoCapture_Proxy : public InterfaceProxy {
class PPP_VideoCapture_Proxy : public InterfaceProxy {
public:
- PPP_VideoCapture_Proxy(Dispatcher* dispatcher);
+ explicit PPP_VideoCapture_Proxy(Dispatcher* dispatcher);
virtual ~PPP_VideoCapture_Proxy();
static const Info* GetInfo();
@@ -79,4 +80,4 @@ class PPP_VideoCapture_Proxy : public InterfaceProxy {
} // namespace proxy
} // namespace ppapi
-#endif // PPAPI_PPB_VIDEO_CAPTURE_PROXY_H_
+#endif // PPAPI_PROXY_PPB_VIDEO_CAPTURE_PROXY_H_
diff --git a/ppapi/proxy/ppp_class_proxy.h b/ppapi/proxy/ppp_class_proxy.h
index d38716d..9f41061 100644
--- a/ppapi/proxy/ppp_class_proxy.h
+++ b/ppapi/proxy/ppp_class_proxy.h
@@ -13,7 +13,6 @@
#include "ppapi/proxy/interface_proxy.h"
struct PPB_Var_Deprecated;
-struct PPP_Class_Deprecated;
namespace ppapi {
namespace proxy {
@@ -28,7 +27,7 @@ class PPP_Class_Proxy : public InterfaceProxy {
public:
// PPP_Class isn't a normal interface that you can query for, so this
// constructor doesn't take an interface pointer.
- PPP_Class_Proxy(Dispatcher* dispatcher);
+ explicit PPP_Class_Proxy(Dispatcher* dispatcher);
virtual ~PPP_Class_Proxy();
// Factory function used for registration (normal code can just use the
diff --git a/ppapi/proxy/ppp_instance_proxy.h b/ppapi/proxy/ppp_instance_proxy.h
index 4088855..2fce675 100644
--- a/ppapi/proxy/ppp_instance_proxy.h
+++ b/ppapi/proxy/ppp_instance_proxy.h
@@ -21,11 +21,9 @@ struct PP_Rect;
namespace ppapi {
namespace proxy {
-class SerializedVarReturnValue;
-
class PPP_Instance_Proxy : public InterfaceProxy {
public:
- PPP_Instance_Proxy(Dispatcher* dispatcher);
+ explicit PPP_Instance_Proxy(Dispatcher* dispatcher);
virtual ~PPP_Instance_Proxy();
// Return the info for the 1.0 (latest, canonical) version of the interface.
diff --git a/ppapi/proxy/proxy_channel.h b/ppapi/proxy/proxy_channel.h
index 75b9ad3..0a1fb03 100644
--- a/ppapi/proxy/proxy_channel.h
+++ b/ppapi/proxy/proxy_channel.h
@@ -24,8 +24,6 @@ class TestSink;
namespace ppapi {
namespace proxy {
-class VarSerializationRules;
-
class PPAPI_PROXY_EXPORT ProxyChannel
: public IPC::Channel::Listener,
public IPC::Message::Sender {
@@ -77,7 +75,7 @@ class PPAPI_PROXY_EXPORT ProxyChannel
#endif
protected:
- ProxyChannel(base::ProcessHandle remote_process_handle);
+ explicit ProxyChannel(base::ProcessHandle remote_process_handle);
// You must call this function before anything else. Returns true on success.
// The delegate pointer must outlive this class, ownership is not
diff --git a/ppapi/proxy/proxy_module.h b/ppapi/proxy/proxy_module.h
index 8bddffa..1ee0b75 100644
--- a/ppapi/proxy/proxy_module.h
+++ b/ppapi/proxy/proxy_module.h
@@ -15,8 +15,6 @@ template<typename T> struct DefaultSingletonTraits;
namespace ppapi {
namespace proxy {
-class PluginDispatcher;
-
class PPAPI_PROXY_EXPORT ProxyModule {
public:
// The global singleton getter.
diff --git a/ppapi/shared_impl/url_request_info_impl.h b/ppapi/shared_impl/url_request_info_impl.h
index 35cc1b5..67e2e49 100644
--- a/ppapi/shared_impl/url_request_info_impl.h
+++ b/ppapi/shared_impl/url_request_info_impl.h
@@ -14,10 +14,6 @@
namespace ppapi {
-namespace thunk {
-class PPB_FileRef_API;
-}
-
struct PPAPI_SHARED_EXPORT PPB_URLRequestInfo_Data {
struct PPAPI_SHARED_EXPORT BodyItem {
BodyItem();
diff --git a/ppapi/shared_impl/video_decoder_impl.h b/ppapi/shared_impl/video_decoder_impl.h
index 1060740..4845776 100644
--- a/ppapi/shared_impl/video_decoder_impl.h
+++ b/ppapi/shared_impl/video_decoder_impl.h
@@ -21,12 +21,6 @@ class GLES2Implementation;
} // namespace gpu
namespace ppapi {
-namespace thunk {
-class PPB_Context3D_API;
-} // namespace thunk
-} // namespace ppapi
-
-namespace ppapi {
// Implements the logic to set and run callbacks for various video decoder
// events. Both the proxy and the renderer implementation share this code.
diff --git a/ppapi/tests/test_core.h b/ppapi/tests/test_core.h
index 2b5899a..be91fd5 100644
--- a/ppapi/tests/test_core.h
+++ b/ppapi/tests/test_core.h
@@ -2,15 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_TEST_TEST_CORE_H_
-#define PPAPI_TEST_TEST_CORE_H_
+#ifndef PPAPI_TESTS_TEST_CORE_H_
+#define PPAPI_TESTS_TEST_CORE_H_
#include <string>
#include "ppapi/tests/test_case.h"
-struct PPB_Core;
-
class TestCore : public TestCase {
public:
explicit TestCore(TestingInstance* instance) : TestCase(instance) {}
@@ -22,8 +20,6 @@ class TestCore : public TestCase {
std::string TestTime();
std::string TestTimeTicks();
-
};
-#endif // PPAPI_TEST_TEST_CORE_H_
-
+#endif // PPAPI_TESTS_TEST_CORE_H_
diff --git a/ppapi/tests/test_graphics_2d.h b/ppapi/tests/test_graphics_2d.h
index 95ba7ef..b683dec 100644
--- a/ppapi/tests/test_graphics_2d.h
+++ b/ppapi/tests/test_graphics_2d.h
@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PAPPI_TESTS_TEST_GRAPHICS_2D_H_
-#define PAPPI_TESTS_TEST_GRAPHICS_2D_H_
+#ifndef PPAPI_TESTS_TEST_GRAPHICS_2D_H_
+#define PPAPI_TESTS_TEST_GRAPHICS_2D_H_
+
+#include <string>
#include "ppapi/c/pp_stdint.h"
#include "ppapi/tests/test_case.h"
struct PPB_Graphics2D;
struct PPB_ImageData;
-struct PPB_Testing_Dev;
namespace pp {
class Graphics2D;
@@ -21,7 +22,7 @@ class Rect;
class TestGraphics2D : public TestCase {
public:
- TestGraphics2D(TestingInstance* instance) : TestCase(instance) {}
+ explicit TestGraphics2D(TestingInstance* instance) : TestCase(instance) {}
// TestCase implementation.
virtual bool Init();
@@ -84,4 +85,4 @@ class TestGraphics2D : public TestCase {
const PPB_ImageData* image_data_interface_;
};
-#endif // PAPPI_TESTS_TEST_GRAPHICS_2D_H_
+#endif // PPAPI_TESTS_TEST_GRAPHICS_2D_H_
diff --git a/ppapi/tests/test_video_decoder.h b/ppapi/tests/test_video_decoder.h
index 7409b4e..87e4054 100644
--- a/ppapi/tests/test_video_decoder.h
+++ b/ppapi/tests/test_video_decoder.h
@@ -5,15 +5,16 @@
#ifndef PPAPI_TESTS_TEST_VIDEO_DECODER_H_
#define PPAPI_TESTS_TEST_VIDEO_DECODER_H_
+#include <string>
+
#include "ppapi/c/pp_stdint.h"
#include "ppapi/tests/test_case.h"
-struct PPB_Var;
struct PPB_VideoDecoder_Dev;
class TestVideoDecoder : public TestCase {
public:
- TestVideoDecoder(TestingInstance* instance) : TestCase(instance) {}
+ explicit TestVideoDecoder(TestingInstance* instance) : TestCase(instance) {}
// TestCase implementation.
virtual bool Init();
diff --git a/ppapi/thunk/resource_creation_api.h b/ppapi/thunk/resource_creation_api.h
index b7bdd18..d1566cd 100644
--- a/ppapi/thunk/resource_creation_api.h
+++ b/ppapi/thunk/resource_creation_api.h
@@ -22,7 +22,6 @@
struct PP_Flash_Menu;
struct PP_FontDescription_Dev;
-struct PP_VideoCaptureDeviceInfo_Dev;
struct PP_Size;
namespace ppapi {