Changeset 57325 in webkit


Ignore:
Timestamp:
Apr 9, 2010 3:46:19 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-09 Jochen Eisinger <jochen@chromium.org>

Reviewed by Adam Barth.

Expose SecurityOrigin::canRequest in WebSecurityOrigin.
https://bugs.webkit.org/show_bug.cgi?id=37271

  • public/WebSecurityOrigin.h:
  • src/WebSecurityOrigin.cpp: (WebKit::WebSecurityOrigin::canRequest):
Location:
trunk/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r57322 r57325  
     12010-04-09  Jochen Eisinger  <jochen@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Expose SecurityOrigin::canRequest in WebSecurityOrigin.
     6        https://bugs.webkit.org/show_bug.cgi?id=37271
     7
     8        * public/WebSecurityOrigin.h:
     9        * src/WebSecurityOrigin.cpp:
     10        (WebKit::WebSecurityOrigin::canRequest):
     11
    1122010-04-09  Zhenyao Mo  <zmo@google.com>
    213
  • trunk/WebKit/chromium/public/WebSecurityOrigin.h

    r56330 r57325  
    7474    WEBKIT_API bool isEmpty() const;
    7575
    76     // Returns true if this SecurityOrigin can script objects in the given
     76    // Returns true if this WebSecurityOrigin can script objects in the given
    7777    // SecurityOrigin. For example, call this function before allowing
    7878    // script from one security origin to read or write objects from
    7979    // another SecurityOrigin.
    8080    WEBKIT_API bool canAccess(const WebSecurityOrigin&) const;
     81
     82    // Returns true if this WebSecurityOrigin can read content retrieved from
     83    // the given URL. For example, call this function before allowing script
     84    // from a given security origin to receive contents from a given URL.
     85    WEBKIT_API bool canRequest(const WebURL&) const;
    8186
    8287    // Returns a string representation of the WebSecurityOrigin.  The empty
  • trunk/WebKit/chromium/src/WebSecurityOrigin.cpp

    r56330 r57325  
    104104}
    105105
     106bool WebSecurityOrigin::canRequest(const WebURL& url) const
     107{
     108    ASSERT(m_private);
     109    return m_private->canRequest(url);
     110}
     111
    106112WebString WebSecurityOrigin::toString() const
    107113{
Note: See TracChangeset for help on using the changeset viewer.