Changeset 163800 in webkit


Ignore:
Timestamp:
Feb 10, 2014 10:59:43 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Add API for accessing session ephemerality from a page bundle
https://bugs.webkit.org/show_bug.cgi?id=128410

Patch by Martin Hock <mhock@apple.com> on 2014-02-10
Reviewed by Alexey Proskuryakov.

  • WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:

(WKBundlePageIsUsingEphemeralSession):

  • WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::isUsingEphemeralSession):

  • WebProcess/WebPage/WebPage.h:
Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r163799 r163800  
     12014-02-10  Martin Hock  <mhock@apple.com>
     2
     3        Add API for accessing session ephemerality from a page bundle
     4        https://bugs.webkit.org/show_bug.cgi?id=128410
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
     9        (WKBundlePageIsUsingEphemeralSession):
     10        * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
     11        * WebProcess/WebPage/WebPage.cpp:
     12        (WebKit::WebPage::isUsingEphemeralSession):
     13        * WebProcess/WebPage/WebPage.h:
     14
    1152014-02-10  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp

    r160969 r163800  
    543543    toImpl(pageRef)->stopExtendingIncrementalRenderingSuppression(token);
    544544}
     545
     546bool WKBundlePageIsUsingEphemeralSession(WKBundlePageRef pageRef)
     547{
     548    return toImpl(pageRef)->isUsingEphemeralSession();
     549}
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h

    r160104 r163800  
    108108WK_EXPORT WKBundleInspectorRef WKBundlePageGetInspector(WKBundlePageRef page);
    109109
     110WK_EXPORT bool WKBundlePageIsUsingEphemeralSession(WKBundlePageRef page);
     111
    110112#ifdef __cplusplus
    111113}
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r163739 r163800  
    21032103}
    21042104
     2105bool WebPage::isUsingEphemeralSession() const
     2106{
     2107    return SessionTracker::isEphemeralID(sessionID());
     2108}
     2109
    21052110void WebPage::setSessionID(uint64_t sessionID)
    21062111{
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h

    r163679 r163800  
    184184    uint64_t pageID() const { return m_pageID; }
    185185    uint64_t sessionID() const;
     186    bool isUsingEphemeralSession() const;
    186187    void setSessionID(uint64_t);
    187188
Note: See TracChangeset for help on using the changeset viewer.