Bug 17898 - Split PluginMessageThrottlerWin into its own files
Summary: Split PluginMessageThrottlerWin into its own files
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-17 12:50 PDT by Rodney Dawes
Modified: 2008-03-17 13:35 PDT (History)
0 users

See Also:


Attachments
Patch to split PluginMessageThrottlerWin from PluginViewWin.cpp (111.13 KB, patch)
2008-03-17 12:51 PDT, Rodney Dawes
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodney Dawes 2008-03-17 12:50:42 PDT
As a requirement for refactoring PluginView into shared code, we need to split out PluginMessageThrottlerWin into its own source files, so that the class is defined in a header which can be included, to resolve the methods needed by the OwnPtr template used with this class in PluginView. The attached patch accomplishes this.
Comment 1 Rodney Dawes 2008-03-17 12:51:18 PDT
Created attachment 19844 [details]
Patch to split PluginMessageThrottlerWin from PluginViewWin.cpp
Comment 2 Adam Roben (:aroben) 2008-03-17 13:03:34 PDT
Comment on attachment 19844 [details]
Patch to split PluginMessageThrottlerWin from PluginViewWin.cpp

+++ WebCore/plugins/PluginView.h	(working copy)
@@ -34,6 +34,7 @@
 #include "IntRect.h"
 #include "KURL.h"
 #include "PlatformString.h"
+#include "PluginMessageThrottlerWin.h"
 #include "PluginStream.h"
 #include "ResourceRequest.h"
 #include "Timer.h"
@@ -59,7 +60,6 @@ namespace WebCore {
     class KeyboardEvent;
     class MouseEvent;
     class KURL;
-    class PluginMessageThrottlerWin;
     class PluginPackage;
     class PluginRequest;
     class PluginStream;

This change should not be necessary for just moving the class into its own files.

PluginView.h should not change in this patch.

+#ifndef PluginMessageThrottlerWin_H

That should be a lowercase "h" at the end of the macro.

I'll fix the above two issues when landing this patch.
Comment 3 Rodney Dawes 2008-03-17 13:21:01 PDT
(In reply to comment #2)
> This change should not be necessary for just moving the class into its own
> files.
> 
> PluginView.h should not change in this patch.

I changed this because the compile failed without doing so. I also noted this change in the ChangeLog entry.
Comment 4 Adam Roben (:aroben) 2008-03-17 13:35:09 PDT
Committed in r31106
Comment 5 Adam Roben (:aroben) 2008-03-17 13:35:33 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > This change should not be necessary for just moving the class into its own
> > files.
> > 
> > PluginView.h should not change in this patch.
> 
> I changed this because the compile failed without doing so. I also noted this
> change in the ChangeLog entry.

It works just fine if you add the include to PluginViewWin.cpp instead, which is where it's actually needed. I did this before landing.