<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>33252</bug_id>
          
          <creation_ts>2010-01-06 04:32:59 -0800</creation_ts>
          <short_desc>Allow custom memory allocation control for IconDatabaseClient class</short_desc>
          <delta_ts>2010-02-01 23:56:44 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zoltan Horvath">zoltan</reporter>
          <assigned_to name="Zoltan Horvath">zoltan</assigned_to>
          <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>177565</commentid>
    <comment_count>0</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2010-01-06 04:32:59 -0800</bug_when>
    <thetext>Inherits the following struct from Noncopyable because it is instantiated by &apos;new&apos; and no need to be copyable:

class name - instantiated at: WebCore/&apos;location&apos;
class IconDatabaseClient - loader/icon/IconDatabase.cpp:89</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177566</commentid>
    <comment_count>1</comment_count>
      <attachid>45960</attachid>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2010-01-06 04:34:23 -0800</bug_when>
    <thetext>Created attachment 45960
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177568</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-01-06 04:36:29 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 45960 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177596</commentid>
    <comment_count>3</comment_count>
      <attachid>45960</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-01-06 09:00:02 -0800</bug_when>
    <thetext>Comment on attachment 45960
proposed patch

This is an Abstract Base Class.  I don&apos;t think that this interface should require non-copyable.  The implementors of this interface should inherit from NonCopyable or FastAllocBase instead, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177619</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-01-06 09:38:22 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; This is an Abstract Base Class.

It&apos;s not. It has no pure virtual functions and is instantiated, as the patch says, on line 89 of IconDatabase.cpp.

However, I think it would make more sense if it was an abstract base class. The version that does nothing could be derived from it.

I think there&apos;s no harm in making the change from this patch, but it&apos;s not great to have this client different from other clients.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>181756</commentid>
    <comment_count>5</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2010-01-18 00:02:40 -0800</bug_when>
    <thetext>So, what should be the best solution? Using fastNew in this case wouldn&apos;t be nice. Add an extra class? Or Inherit this client?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>181927</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-01-18 10:52:32 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; So, what should be the best solution? Using fastNew in this case wouldn&apos;t be
&gt; nice. Add an extra class? Or Inherit this client?

I know you’re hoping I’ll decide, but both options seem OK to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185444</commentid>
    <comment_count>7</comment_count>
      <attachid>45960</attachid>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2010-01-28 05:59:04 -0800</bug_when>
    <thetext>Comment on attachment 45960
proposed patch

Okay, this change modifies fewest. I marked r? the patch again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186643</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-01 16:11:39 -0800</bug_when>
    <thetext>Attachment 45960 was posted by a committer and has review+, assigning to Zoltan Horvath for commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186831</commentid>
    <comment_count>9</comment_count>
      <attachid>45960</attachid>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2010-02-01 23:56:33 -0800</bug_when>
    <thetext>Comment on attachment 45960
proposed patch

Clearing flags on attachment: 45960

Committed r54210: &lt;http://trac.webkit.org/changeset/54210&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186832</commentid>
    <comment_count>10</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2010-02-01 23:56:44 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>45960</attachid>
            <date>2010-01-06 04:34:23 -0800</date>
            <delta_ts>2010-02-01 23:56:33 -0800</delta_ts>
            <desc>proposed patch</desc>
            <filename>IconDatabaseClient.patch</filename>
            <type>text/plain</type>
            <size>1497</size>
            <attacher name="Zoltan Horvath">zoltan</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1Mjg1NCkKKysrIFdlYkNvcm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XIvaWNv
bi9JY29uRGF0YWJhc2VDbGllbnQuaAkocmV2aXNpb24gNTI4NTQpCisrKyBXZWJDb3JlL2xvYWRl
ci9pY29uL0ljb25EYXRhYmFzZUNsaWVudC5oCSh3b3JraW5nIGNvcHkpCkBAIC0yOSw2ICsyOSw4
IEBACiAjaWZuZGVmIEljb25EYXRhYmFzZUNsaWVudF9oCiAjZGVmaW5lIEljb25EYXRhYmFzZUNs
aWVudF9oCiAKKyNpbmNsdWRlIDx3dGYvTm9uY29weWFibGUuaD4KKwogLy8gQWxsIG9mIHRoZXNl
IGNsaWVudCBtZXRob2RzIHdpbGwgYmUgY2FsbGVkIGZyb20gYSBub24tbWFpbiB0aHJlYWQKIC8v
IFRha2UgYXBwcm9wcmlhdGUgbWVhc3VyZXMKICAKQEAgLTM2LDcgKzM4LDcgQEAKIAogY2xhc3Mg
U3RyaW5nOwogCi1jbGFzcyBJY29uRGF0YWJhc2VDbGllbnQgeworY2xhc3MgSWNvbkRhdGFiYXNl
Q2xpZW50IDogcHVibGljIE5vbmNvcHlhYmxlIHsKIHB1YmxpYzoKICAgICB2aXJ0dWFsIH5JY29u
RGF0YWJhc2VDbGllbnQoKSB7IH0KICAgICB2aXJ0dWFsIGJvb2wgcGVyZm9ybUltcG9ydCgpIHsg
cmV0dXJuIHRydWU7IH0K
</data>

          </attachment>
      

    </bug>

</bugzilla>