Reviewed by Adele.
[WebKit-https.git] / WebKit / WebView / WebDataSourceInternal.h
1 /*
2  * Copyright (C) 2005, 2006 Apple Computer, 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 Computer, 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 <WebKit/WebDataSourcePrivate.h>
30 #import <WebKitSystemInterface.h>
31
32 @class NSURL;
33
34 @class DOMDocumentFragment;
35 @class DOMElement;
36 @class DOMRange;
37 @class NSError;
38 @class NSURLRequest;
39 @class NSURLResponse;
40 @class WebArchive;
41 @class WebLoader;
42 @class WebFrameBridge;
43 @class WebHistoryItem;
44 @class WebMainResourceLoader;
45 @class WebPolicyDecisionListener;
46 @class WebResource;
47 @class WebUnarchivingState;
48 @class WebView;
49 @protocol WebDocumentRepresentation;
50
51 @interface WebDataSource (WebInternal)
52 - (void)_setTitle:(NSString *)title;
53 - (NSString *)_overrideEncoding;
54 - (void)_setIconURL:(NSURL *)URL;
55 - (void)_setIconURL:(NSURL *)URL withType:(NSString *)iconType;
56 - (void)_setOverrideEncoding:(NSString *)overrideEncoding;
57 - (void)_addToUnarchiveState:(WebArchive *)archive;
58 - (NSURL *)_URLForHistory;
59 - (NSURLRequest *)_originalRequest;
60 - (BOOL)_isClientRedirect;
61 - (void)_makeRepresentation;
62 - (BOOL)_loadingFromPageCache;
63 - (NSArray *)_responses;
64 - (void)_setPrimaryLoadComplete:(BOOL)flag;
65 - (void)_stopLoading;
66 - (BOOL)_isDocumentHTML;
67 - (void)__adoptRequest:(NSMutableURLRequest *)request;
68 - (void)_setTriggeringAction:(NSDictionary *)action;
69 - (NSDictionary *)_triggeringAction;
70 - (WebView *)_webView;
71 - (WebFrameBridge *)_bridge;
72 - (void)_stopLoadingWithError:(NSError *)error;
73 - (NSURLRequest *)_lastCheckedRequest;
74 - (void)_defersCallbacksChanged;
75 - (void)_setLastCheckedRequest:(NSURLRequest *)request;
76 - (void)_setURL:(NSURL *)URL;
77 - (void)_setIsClientRedirect:(BOOL)flag;
78 - (WebArchive *)_popSubframeArchiveWithName:(NSString *)frameName;
79 - (void)_loadFromPageCache:(NSDictionary *)pageCache;
80 - (NSURL *)_URL;
81 - (void)_setWebFrame:(WebFrame *)frame;
82 - (BOOL)_isStopping;
83 - (NSString *)_title;
84 - (DOMElement *)_imageElementWithImageResource:(WebResource *)resource;
85 - (DOMDocumentFragment *)_documentFragmentWithImageResource:(WebResource *)resource;
86 - (DOMDocumentFragment *)_documentFragmentWithArchive:(WebArchive *)archive;
87 + (NSMutableDictionary *)_repTypesAllowImageTypeOmission:(BOOL)allowImageTypeOmission;
88 - (void)_replaceSelectionWithArchive:(WebArchive *)archive selectReplacement:(BOOL)selectReplacement;
89 - (double)_loadingStartedTime;
90 - (void)_stopRecordingResponses;
91 - (void)_startLoading;
92 - (WebResource *)_archivedSubresourceForURL:(NSURL *)URL;
93 - (double)_loadingStartedTime;
94 - (void)_stopRecordingResponses;
95 - (void)_startLoading;
96 - (WebResource *)_archivedSubresourceForURL:(NSURL *)URL;
97 - (void)_defersCallbacksChanged;
98 - (id)_identifierForInitialRequest:(NSURLRequest *)clientRequest;
99 - (NSURLRequest *)_willSendRequest:(NSMutableURLRequest *)clientRequest forResource:(id)identifier redirectResponse:(NSURLResponse *)redirectResponse;
100 - (void)_didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)currentWebChallenge forResource:(id)identifier;
101 - (void)_didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)currentWebChallenge forResource:(id)identifier;
102 - (void)_didReceiveResponse:(NSURLResponse *)r forResource:(id)identifier;
103 - (void)_didReceiveData:(NSData *)data contentLength:(int)lengthReceived forResource:(id)identifier;
104 - (void)_didFinishLoadingForResource:(id)identifier;
105 - (void)_didFailLoadingWithError:(NSError *)error forResource:(id)identifier;
106 - (void)_downloadWithLoadingConnection:(NSURLConnection *)connection request:(NSURLRequest *)request response:(NSURLResponse *)r proxy:(WKNSURLConnectionDelegateProxyPtr) proxy;
107 - (BOOL)_defersCallbacks;
108 - (void)_receivedMainResourceError:(NSError *)error complete:(BOOL)isComplete;
109 - (void)_receivedData:(NSData *)data;
110 - (void)_setRequest:(NSURLRequest *)request;
111 - (void)_setResponse:(NSURLResponse *)response;
112 - (void)_finishedLoading;
113 - (void)_setupForReplaceByMIMEType:(NSString *)mimeType;
114 - (void)_mainReceivedError:(NSError *)error complete:(BOOL)isComplete;
115 - (void)_decidePolicyForMIMEType:(NSString *)MIMEType decisionListener:(WebPolicyDecisionListener *)listener;
116
117
118
119 @end