webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
WebDataSource.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003, 2004, 2005, 2012 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of Apple Inc. ("Apple") nor the names of
14  * its contributors may be used to endorse or promote products derived
15  * from this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #import <Foundation/Foundation.h>
30 #import <WebKitLegacy/WebDocument.h>
31 
32 @class NSMutableURLRequest;
33 @class NSURLConnection;
34 @class NSURLRequest;
35 @class NSURLResponse;
36 @class WebArchive;
37 @class WebFrame;
38 @class WebResource;
39 
47 @interface WebDataSource : NSObject
48 {
49 @package
50  void *_private;
51 }
52 
59 - (instancetype)initWithRequest:(NSURLRequest *)request;
60 
67 @property (nonatomic, readonly, copy) NSData *data;
68 
78 @property (nonatomic, readonly, strong) id<WebDocumentRepresentation> representation;
79 
84 @property (nonatomic, readonly, strong) WebFrame *webFrame;
85 
91 @property (nonatomic, readonly, strong) NSURLRequest *initialRequest;
92 
97 @property (nonatomic, readonly, strong) NSMutableURLRequest *request;
98 
103 @property (nonatomic, readonly, strong) NSURLResponse *response;
104 
110 @property (nonatomic, readonly, copy) NSString *textEncodingName;
111 
116 @property (nonatomic, getter=isLoading, readonly) BOOL loading;
117 
122 @property (nonatomic, readonly, copy) NSString *pageTitle;
123 
130 @property (nonatomic, readonly, strong) NSURL *unreachableURL;
131 
139 @property (nonatomic, readonly, strong) WebArchive *webArchive;
140 
148 @property (nonatomic, readonly, strong) WebResource *mainResource;
149 
155 @property (nonatomic, readonly, copy) NSArray *subresources;
156 
164 
176 - (void)addSubresource:(WebResource *)subresource;
177 
178 @end
BOOL
Definition: PlatformScreenIOS.mm:46
virtual HRESULT STDMETHODCALLTYPE isLoading(_Out_ BOOL *)
Definition: WebDataSource.cpp:265
OBJC_CLASS NSURLResponse
Definition: ResourceResponse.h:35
NSString * pageTitle
Definition: WebDataSource.h:122
Definition: WebFrame.h:48
Definition: WebArchive.h:47
id< WebDocumentRepresentation > representation
Definition: WebDataSource.h:78
WebFrame * webFrame
Definition: WebDataSource.h:84
virtual HRESULT STDMETHODCALLTYPE subresourceForURL(_In_ BSTR url, _COM_Outptr_opt_ IWebResource **)
Definition: WebDataSource.cpp:331
NSArray * subresources
Definition: WebDataSource.h:155
NSMutableURLRequest * request
Definition: WebDataSource.h:97
OBJC_CLASS NSURL
Definition: WebCoreSystemInterface.h:108
void
Definition: AVFoundationCFSoftLinking.h:81
Definition: interfaces.idl:200
NSString * textEncodingName
Definition: WebDataSource.h:110
virtual HRESULT STDMETHODCALLTYPE addSubresource(_In_opt_ IWebResource *)
Definition: WebDataSource.cpp:356
GLenum GLuint id
Definition: gl2ext.h:134
OBJC_CLASS NSMutableURLRequest
Definition: WebCoreSystemInterface.h:105
Definition: WebResource.h:39
struct NSString NSString
Definition: WebCoreNSStringExtras.h:35
OBJC_CLASS NSURLRequest
Definition: ResourceRequest.h:32
NSURLResponse * response
Definition: WebDataSource.h:103
NSURL * unreachableURL
Definition: WebDataSource.h:130
EGLStreamKHR EGLint EGLint EGLint const void * data
Definition: eglext.h:984
OBJC_CLASS NSArray
Definition: DataDetection.h:33
BOOL loading
Definition: WebDataSource.h:116
WebArchive * webArchive
Definition: WebDataSource.h:139
WebResource * mainResource
Definition: WebDataSource.h:148
NSURLRequest * initialRequest
Definition: WebDataSource.h:91
OBJC_CLASS NSURLConnection
Definition: WebCoreSystemInterface.h:109
virtual HRESULT STDMETHODCALLTYPE initWithRequest(_In_opt_ IWebURLRequest *)
Definition: WebDataSource.cpp:164
Definition: WebDataSource.h:47
OBJC_CLASS NSData
Definition: WebCoreSystemInterface.h:96
OBJC_CLASS WebFrame
Definition: DumpRenderTreeMac.h:38