Changeset 90457 in webkit


Ignore:
Timestamp:
Jul 6, 2011 7:24:08 AM (13 years ago)
Author:
jeffm@apple.com
Message:

Add WKPageCopyStandardUserAgentWithApplicationName
https://bugs.webkit.org/show_bug.cgi?id=63953

Reviewed by Adam Roben.

  • UIProcess/API/C/WKPage.cpp:

(WKPageCopyStandardUserAgentWithApplicationName): Added.

  • UIProcess/API/C/WKPagePrivate.h: Added WKPageCopyStandardUserAgentWithApplicationName().
  • UIProcess/WebPageProxy.h: Make standardUserAgent() public.
Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r90389 r90457  
     12011-07-05  Jeff Miller  <jeffm@apple.com>
     2
     3        Add WKPageCopyStandardUserAgentWithApplicationName
     4        https://bugs.webkit.org/show_bug.cgi?id=63953
     5
     6        Reviewed by Adam Roben.
     7
     8         * UIProcess/API/C/WKPage.cpp:
     9        (WKPageCopyStandardUserAgentWithApplicationName): Added.
     10        * UIProcess/API/C/WKPagePrivate.h: Added WKPageCopyStandardUserAgentWithApplicationName().
     11
     12        * UIProcess/WebPageProxy.h: Make standardUserAgent() public.
     13
    1142011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
    215
  • trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp

    r90224 r90457  
    503503}
    504504
     505WKStringRef WKPageCopyStandardUserAgentWithApplicationName(WKStringRef applicationName)
     506{
     507    return toCopiedAPI(WebPageProxy::standardUserAgent(toImpl(applicationName)->string()));
     508}
     509
    505510void WKPageValidateCommand(WKPageRef pageRef, WKStringRef command, void* context, WKPageValidateCommandCallback callback)
    506511{
  • trunk/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h

    r84519 r90457  
    5151WK_EXPORT WKPageDebugPaintFlags WKPageGetDebugPaintFlags(void);
    5252
     53WK_EXPORT WKStringRef WKPageCopyStandardUserAgentWithApplicationName(WKStringRef);
     54
    5355struct WKPrintInfo {
    5456    float pageSetupScaleFactor;
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.h

    r89582 r90457  
    347347    void setCustomUserAgent(const String&);
    348348    const String& customUserAgent() const { return m_customUserAgent; }
     349    static String standardUserAgent(const String& applicationName = String());
    349350
    350351    bool supportsTextEncoding() const;
     
    744745#endif
    745746
    746     static String standardUserAgent(const String& applicationName = String());
    747 
    748747    void clearPendingAPIRequestURL() { m_pendingAPIRequestURL = String(); }
    749748    void setPendingAPIRequestURL(const String& pendingAPIRequestURL) { m_pendingAPIRequestURL = pendingAPIRequestURL; }
Note: See TracChangeset for help on using the changeset viewer.