summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 17:39:26 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 17:39:26 +0000
commit8157198176d0e92bc2a1b9892c70b11b1f7be8ba (patch)
tree1a701c27db94cf40925d39765a78d712197a5fe1
parent4f9ce92165cf301891a0ce0a4e44f9be5e275797 (diff)
downloadchromium_src-8157198176d0e92bc2a1b9892c70b11b1f7be8ba.zip
chromium_src-8157198176d0e92bc2a1b9892c70b11b1f7be8ba.tar.gz
chromium_src-8157198176d0e92bc2a1b9892c70b11b1f7be8ba.tar.bz2
Minor cleanup in PepperPluginDelegate.
Make Client's destructor protected to make it clear that one should not delete a Client pointer. R=neb BUG=none TEST=none Review URL: http://codereview.chromium.org/3304023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59392 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/glue/plugins/pepper_plugin_delegate.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/glue/plugins/pepper_plugin_delegate.h b/webkit/glue/plugins/pepper_plugin_delegate.h
index 9d03584..162b4bb6 100644
--- a/webkit/glue/plugins/pepper_plugin_delegate.h
+++ b/webkit/glue/plugins/pepper_plugin_delegate.h
@@ -84,9 +84,10 @@ class PluginDelegate {
class PlatformAudio {
public:
class Client {
- public:
+ protected:
virtual ~Client() {}
+ public:
// Called when the stream is created.
virtual void StreamCreated(base::SharedMemoryHandle shared_memory_handle,
size_t shared_memory_size,
@@ -144,8 +145,8 @@ class PluginDelegate {
// Notifies that the number of find results has changed.
virtual void DidChangeNumberOfFindResults(int identifier,
- int total,
- bool final_result) = 0;
+ int total,
+ bool final_result) = 0;
// Notifies that the index of the currently selected item has been updated.
virtual void DidChangeSelectedFindResult(int identifier, int index) = 0;