Changeset 50748 in webkit


Ignore:
Timestamp:
Nov 10, 2009 11:24:21 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-10 Zoltan Horvath <zoltan@webkit.org>

Reviewed by Darin Adler.

Allow custom memory allocation control for the part of loader directory in WebCore
https://bugs.webkit.org/show_bug.cgi?id=31161

Inherits the following classes from Noncopyable because these are instantiated
by 'new' and these are no need to be copyable:

class Request - WebCore/loader/loader.cpp:100
struct ScheduledRedirection - WebCore/loader/RedirectScheduler.cpp:164
class ApplicationCacheStorage - WebCore/loader/appcache/ApplicationCacheStorage.cpp:1121
class ApplicationCacheHost - WebCore/loader/DocumentLoader.cpp:151
class ImageEventSender - WebCore/loader/ImageLoader.cpp:54
struct ProgressItem - WebCore/loader/ProgressTracker.cpp:169

Inherits ThreadableLoaderClient class from Noncopyable because (its child class)
MainThreadBridge is instantiated by 'new' in
WebCore/loader/WorkerThreadableLoader.cpp:59 it is no need to be copyable.

ThreadableLoaderClient's inheriting has been changed to public.

  • loader/ImageLoader.cpp:
  • loader/ProgressTracker.cpp:
  • loader/RedirectScheduler.cpp:
  • loader/Request.h:
  • loader/ThreadableLoaderClient.h:
  • loader/WorkerThreadableLoader.h:
  • loader/appcache/ApplicationCacheHost.h:
  • loader/appcache/ApplicationCacheStorage.h:
Location:
trunk/WebCore
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50736 r50748  
     12009-11-10  Zoltan Horvath  <zoltan@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Allow custom memory allocation control for the part of loader directory in WebCore
     6        https://bugs.webkit.org/show_bug.cgi?id=31161
     7
     8        Inherits the following classes from Noncopyable because these are instantiated
     9        by 'new' and these are no need to be copyable:
     10
     11        class Request - WebCore/loader/loader.cpp:100
     12        struct ScheduledRedirection - WebCore/loader/RedirectScheduler.cpp:164
     13        class ApplicationCacheStorage - WebCore/loader/appcache/ApplicationCacheStorage.cpp:1121
     14        class ApplicationCacheHost -  WebCore/loader/DocumentLoader.cpp:151
     15        class ImageEventSender - WebCore/loader/ImageLoader.cpp:54
     16        struct ProgressItem - WebCore/loader/ProgressTracker.cpp:169
     17
     18        Inherits ThreadableLoaderClient class from Noncopyable because (its child class)
     19        MainThreadBridge is instantiated by 'new' in
     20        WebCore/loader/WorkerThreadableLoader.cpp:59 it is no need to be copyable.
     21
     22        ThreadableLoaderClient's inheriting has been changed to public.
     23
     24        * loader/ImageLoader.cpp:
     25        * loader/ProgressTracker.cpp:
     26        * loader/RedirectScheduler.cpp:
     27        * loader/Request.h:
     28        * loader/ThreadableLoaderClient.h:
     29        * loader/WorkerThreadableLoader.h:
     30        * loader/appcache/ApplicationCacheHost.h:
     31        * loader/appcache/ApplicationCacheStorage.h:
     32
    1332009-11-10  Philippe Normand  <pnormand@igalia.com>
    234
  • trunk/WebCore/loader/ImageLoader.cpp

    r50658 r50748  
    3232namespace WebCore {
    3333
    34 class ImageEventSender {
     34class ImageEventSender : public Noncopyable {
    3535public:
    3636    ImageEventSender(const AtomicString& eventType);
  • trunk/WebCore/loader/ProgressTracker.cpp

    r50658 r50748  
    4848static const int progressItemDefaultEstimatedLength = 1024 * 16;
    4949
    50 struct ProgressItem {
     50struct ProgressItem : Noncopyable {
    5151    ProgressItem(long long length)
    5252        : bytesReceived(0)
  • trunk/WebCore/loader/RedirectScheduler.cpp

    r50675 r50748  
    4545namespace WebCore {
    4646
    47 struct ScheduledRedirection {
     47struct ScheduledRedirection : Noncopyable {
    4848    enum Type { redirection, locationChange, historyNavigation, formSubmission };
    4949
  • trunk/WebCore/loader/Request.h

    r50658 r50748  
    3131    class DocLoader;
    3232
    33     class Request {
     33    class Request : public Noncopyable {
    3434    public:
    3535        Request(DocLoader*, CachedResource*, bool incremental, bool skipCanLoadCheck, bool sendResourceLoadCallbacks);
  • trunk/WebCore/loader/ThreadableLoaderClient.h

    r50658 r50748  
    3737    class ResourceResponse;
    3838
    39     class ThreadableLoaderClient {
     39    class ThreadableLoaderClient : public Noncopyable {
    4040    public:
    4141        virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long long /*totalBytesToBeSent*/) { }
  • trunk/WebCore/loader/WorkerThreadableLoader.h

    r50658 r50748  
    9595        //    done in createCallbackTask), so the ThreadableLoaderClientWrapper instance is there until all
    9696        //    tasks are executed.
    97         class MainThreadBridge : ThreadableLoaderClient {
     97        class MainThreadBridge : public ThreadableLoaderClient {
    9898        public:
    9999            // All executed on the worker context's thread.
  • trunk/WebCore/loader/appcache/ApplicationCacheHost.h

    r50658 r50748  
    5858#endif
    5959
    60     class ApplicationCacheHost {
     60    class ApplicationCacheHost : public Noncopyable {
    6161    public:
    6262        // The Status numeric values are specified in the HTML5 spec.
  • trunk/WebCore/loader/appcache/ApplicationCacheStorage.h

    r50658 r50748  
    4545class StorageIDJournal;
    4646
    47 class ApplicationCacheStorage {
     47class ApplicationCacheStorage : public Noncopyable {
    4848public:
    4949    void setCacheDirectory(const String&);
Note: See TracChangeset for help on using the changeset viewer.