Changeset 225700 in webkit


Ignore:
Timestamp:
Dec 8, 2017 2:23:22 PM (6 years ago)
Author:
achristensen@apple.com
Message:

Remove unused code in WebPageGroup
https://bugs.webkit.org/show_bug.cgi?id=180604

Reviewed by Youenn Fablet.

  • UIProcess/WebPageGroup.cpp:

(WebKit::WebPageGroup::userContentController):
(WebKit::WebPageGroup::createNonNull): Deleted.
(WebKit::WebPageGroup::preferencesDidChange): Deleted.

  • UIProcess/WebPageGroup.h:
  • UIProcess/WebProcessPool.cpp:

(WebKit::WebProcessPool::WebProcessPool):

Location:
trunk/Source/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r225694 r225700  
     12017-12-08  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove unused code in WebPageGroup
     4        https://bugs.webkit.org/show_bug.cgi?id=180604
     5
     6        Reviewed by Youenn Fablet.
     7
     8        * UIProcess/WebPageGroup.cpp:
     9        (WebKit::WebPageGroup::userContentController):
     10        (WebKit::WebPageGroup::createNonNull): Deleted.
     11        (WebKit::WebPageGroup::preferencesDidChange): Deleted.
     12        * UIProcess/WebPageGroup.h:
     13        * UIProcess/WebProcessPool.cpp:
     14        (WebKit::WebProcessPool::WebProcessPool):
     15
    1162017-12-08  Alex Christensen  <achristensen@webkit.org>
    217
  • trunk/Source/WebKit/UIProcess/WebPageGroup.cpp

    r216809 r225700  
    5656
    5757Ref<WebPageGroup> WebPageGroup::create(const String& identifier, bool visibleToInjectedBundle, bool visibleToHistoryClient)
    58 {
    59     return adoptRef(*new WebPageGroup(identifier, visibleToInjectedBundle, visibleToHistoryClient));
    60 }
    61 
    62 Ref<WebPageGroup> WebPageGroup::createNonNull(const String& identifier, bool visibleToInjectedBundle, bool visibleToHistoryClient)
    6358{
    6459    return adoptRef(*new WebPageGroup(identifier, visibleToInjectedBundle, visibleToHistoryClient));
     
    130125}
    131126
    132 void WebPageGroup::preferencesDidChange()
    133 {
    134     for (HashSet<WebPageProxy*>::iterator it = m_pages.begin(), end = m_pages.end(); it != end; ++it) {
    135         WebPageProxy* page = *it;
    136         page->preferencesDidChange();
    137     }
    138 }
    139 
    140127WebUserContentControllerProxy& WebPageGroup::userContentController()
    141128{
    142     return *m_userContentController;
     129    return m_userContentController;
    143130}
    144131
  • trunk/Source/WebKit/UIProcess/WebPageGroup.h

    r216473 r225700  
    2424 */
    2525
    26 #ifndef WebPageGroup_h
    27 #define WebPageGroup_h
     26#pragma once
    2827
    2928#include "APIObject.h"
     
    4544    WebPageGroup(const String& identifier = String(), bool visibleToInjectedBundle = true, bool visibleToHistoryClient = true);
    4645    static Ref<WebPageGroup> create(const String& identifier = String(), bool visibleToInjectedBundle = true, bool visibleToHistoryClient = true);
    47     static Ref<WebPageGroup> createNonNull(const String& identifier = String(), bool visibleToInjectedBundle = true, bool visibleToHistoryClient = true);
     46
    4847    static WebPageGroup* get(uint64_t pageGroupID);
    4948
     
    5958    void setPreferences(WebPreferences*);
    6059    WebPreferences& preferences() const;
    61     void preferencesDidChange();
    6260
    6361    WebUserContentControllerProxy& userContentController();
     
    6664    WebPageGroupData m_data;
    6765    RefPtr<WebPreferences> m_preferences;
    68     RefPtr<WebUserContentControllerProxy> m_userContentController;
     66    Ref<WebUserContentControllerProxy> m_userContentController;
    6967    HashSet<WebPageProxy*> m_pages;
    7068};
    7169
    7270} // namespace WebKit
    73 
    74 #endif // WebPageGroup_h
  • trunk/Source/WebKit/UIProcess/WebProcessPool.cpp

    r225694 r225700  
    217217WebProcessPool::WebProcessPool(API::ProcessPoolConfiguration& configuration)
    218218    : m_configuration(configuration.copy())
    219     , m_defaultPageGroup(WebPageGroup::createNonNull())
     219    , m_defaultPageGroup(WebPageGroup::create())
    220220    , m_injectedBundleClient(std::make_unique<API::InjectedBundleClient>())
    221221    , m_automationClient(std::make_unique<API::AutomationClient>())
Note: See TracChangeset for help on using the changeset viewer.