WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 17898
Split PluginMessageThrottlerWin into its own files
https://bugs.webkit.org/show_bug.cgi?id=17898
Summary
Split PluginMessageThrottlerWin into its own files
Rodney Dawes
Reported
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.
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
View All
Add attachment
proposed patch, testcase, etc.
Rodney Dawes
Comment 1
2008-03-17 12:51:18 PDT
Created
attachment 19844
[details]
Patch to split PluginMessageThrottlerWin from PluginViewWin.cpp
Adam Roben (:aroben)
Comment 2
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.
Rodney Dawes
Comment 3
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.
Adam Roben (:aroben)
Comment 4
2008-03-17 13:35:09 PDT
Committed in
r31106
Adam Roben (:aroben)
Comment 5
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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug