Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentLoader.h

Issue 2795673002: Added UseCounter for clearing browsing context name on cross-origin name (Closed)
Patch Set: Rebase-update Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 LocalFrame* frame() const { return m_frame; } 90 LocalFrame* frame() const { return m_frame; }
91 91
92 ResourceTimingInfo* getNavigationTimingInfo() const; 92 ResourceTimingInfo* getNavigationTimingInfo() const;
93 93
94 virtual void detachFromFrame(); 94 virtual void detachFromFrame();
95 95
96 unsigned long mainResourceIdentifier() const; 96 unsigned long mainResourceIdentifier() const;
97 97
98 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, 98 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&,
99 const String& source); 99 const String& source,
100 SecurityOrigin* frameSecurityO rigin);
100 101
101 const AtomicString& mimeType() const; 102 const AtomicString& mimeType() const;
102 103
103 const ResourceRequest& originalRequest() const; 104 const ResourceRequest& originalRequest() const;
104 105
105 const ResourceRequest& getRequest() const; 106 const ResourceRequest& getRequest() const;
106 107
107 ResourceFetcher* fetcher() const { return m_fetcher.get(); } 108 ResourceFetcher* fetcher() const { return m_fetcher.get(); }
108 109
109 void setSubresourceFilter(SubresourceFilter*); 110 void setSubresourceFilter(SubresourceFilter*);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // installNewDocument() does the work of creating a Document and 228 // installNewDocument() does the work of creating a Document and
228 // DocumentWriter, as well as creating a new LocalDOMWindow if needed. It also 229 // DocumentWriter, as well as creating a new LocalDOMWindow if needed. It also
229 // initalizes a bunch of state on the Document (e.g., the state based on 230 // initalizes a bunch of state on the Document (e.g., the state based on
230 // response headers). 231 // response headers).
231 enum class InstallNewDocumentReason { kNavigation, kJavascriptURL }; 232 enum class InstallNewDocumentReason { kNavigation, kJavascriptURL };
232 void installNewDocument(const DocumentInit&, 233 void installNewDocument(const DocumentInit&,
233 const AtomicString& mimeType, 234 const AtomicString& mimeType,
234 const AtomicString& encoding, 235 const AtomicString& encoding,
235 InstallNewDocumentReason, 236 InstallNewDocumentReason,
236 ParserSynchronizationPolicy, 237 ParserSynchronizationPolicy,
237 const KURL& overridingURL); 238 const KURL& overridingURL,
239 SecurityOrigin* frameSecurityOrigin);
238 void didInstallNewDocument(Document*); 240 void didInstallNewDocument(Document*);
239 void didCommitNavigation(); 241 void didCommitNavigation();
240 242
241 void ensureWriter(const AtomicString& mimeType, 243 void ensureWriter(const AtomicString& mimeType,
242 const KURL& overridingURL = KURL()); 244 const KURL& overridingURL = KURL());
243 void endWriting(); 245 void endWriting();
244 246
245 // Use these method only where it's guaranteed that |m_frame| hasn't been 247 // Use these method only where it's guaranteed that |m_frame| hasn't been
246 // cleared. 248 // cleared.
247 FrameLoader& frameLoader() const; 249 FrameLoader& frameLoader() const;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // Used to protect against reentrancy into dataReceived(). 350 // Used to protect against reentrancy into dataReceived().
349 bool m_inDataReceived; 351 bool m_inDataReceived;
350 RefPtr<SharedBuffer> m_dataBuffer; 352 RefPtr<SharedBuffer> m_dataBuffer;
351 }; 353 };
352 354
353 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 355 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
354 356
355 } // namespace blink 357 } // namespace blink
356 358
357 #endif // DocumentLoader_h 359 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698