Changeset 166935 in webkit
- Timestamp:
- Apr 8, 2014, 10:45:50 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r166934 r166935 1 2014-04-08 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] Add a _certificateChain property to WKWebProcessPlugInFrame 4 https://bugs.webkit.org/show_bug.cgi?id=131370 5 6 Reviewed by Anders Carlsson. 7 8 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm: 9 (-[WKWebProcessPlugInFrame _certificateChain]): Added this getter, which uses the new 10 WebFrame::certificateInfo. 11 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h: 12 * WebProcess/WebPage/WebFrame.cpp: 13 (WebKit::WebFrame::certificateInfo): Added this getter. 14 * WebProcess/WebPage/WebFrame.h: 15 1 16 2014-04-08 Dan Bernstein <mitz@apple.com> 2 17 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm
r166361 r166935 38 38 #import "_WKFrameHandleInternal.h" 39 39 #import <JavaScriptCore/JSValue.h> 40 #import <WebCore/CertificateInfo.h> 40 41 #import <WebCore/IntPoint.h> 41 42 … … 111 112 } 112 113 114 - (NSArray *)_certificateChain 115 { 116 return (NSArray *)_frame->certificateInfo().certificateChain(); 117 } 118 113 119 #pragma mark WKObject protocol implementation 114 120 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h
r166361 r166935 37 37 38 38 @property (nonatomic, readonly) BOOL _hasCustomContentProvider; 39 @property (nonatomic, readonly) NSArray *_certificateChain; 39 40 40 41 @end -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp
r166262 r166935 45 45 #include <JavaScriptCore/JSValueRef.h> 46 46 #include <WebCore/ArchiveResource.h> 47 #include <WebCore/CertificateInfo.h> 47 48 #include <WebCore/Chrome.h> 48 49 #include <WebCore/DocumentLoader.h> … … 402 403 } 403 404 405 const WebCore::CertificateInfo& WebFrame::certificateInfo() const 406 { 407 if (!m_coreFrame) 408 return std::move(CertificateInfo()); 409 410 DocumentLoader* documentLoader = m_coreFrame->loader().documentLoader(); 411 if (!documentLoader) 412 return std::move(CertificateInfo()); 413 414 return std::move(CertificateInfo(documentLoader->response())); 415 } 416 404 417 String WebFrame::innerText() const 405 418 { -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.h
r166262 r166935 44 44 45 45 namespace WebCore { 46 class CertificateInfo; 46 47 class Frame; 47 48 class HTMLFrameOwnerElement; … … 92 93 String name() const; 93 94 String url() const; 95 const WebCore::CertificateInfo& certificateInfo() const; 94 96 String innerText() const; 95 97 bool isFrameSet() const;
Note:
See TracChangeset
for help on using the changeset viewer.