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

Side by Side Diff: third_party/WebKit/public/web/WebDocument.h

Issue 2567173002: Clean up Document::isSecureContext (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 WebDocument& operator=(const WebDocument& e) { 66 WebDocument& operator=(const WebDocument& e) {
67 WebNode::assign(e); 67 WebNode::assign(e);
68 return *this; 68 return *this;
69 } 69 }
70 void assign(const WebDocument& e) { WebNode::assign(e); } 70 void assign(const WebDocument& e) { WebNode::assign(e); }
71 71
72 BLINK_EXPORT WebURL url() const; 72 BLINK_EXPORT WebURL url() const;
73 // Note: Security checks should use the getSecurityOrigin(), not url(). 73 // Note: Security checks should use the getSecurityOrigin(), not url().
74 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const; 74 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const;
75 BLINK_EXPORT bool isSecureContext(WebString& errorMessage) const; 75 BLINK_EXPORT bool isSecureContext() const;
76 76
77 BLINK_EXPORT WebString encoding() const; 77 BLINK_EXPORT WebString encoding() const;
78 BLINK_EXPORT WebString contentLanguage() const; 78 BLINK_EXPORT WebString contentLanguage() const;
79 BLINK_EXPORT WebString referrer() const; 79 BLINK_EXPORT WebString referrer() const;
80 BLINK_EXPORT WebColor themeColor() const; 80 BLINK_EXPORT WebColor themeColor() const;
81 // The url of the OpenSearch Desription Document (if any). 81 // The url of the OpenSearch Desription Document (if any).
82 BLINK_EXPORT WebURL openSearchDescriptionURL() const; 82 BLINK_EXPORT WebURL openSearchDescriptionURL() const;
83 83
84 // Returns the frame the document belongs to or 0 if the document is 84 // Returns the frame the document belongs to or 0 if the document is
85 // frameless. 85 // frameless.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 BLINK_EXPORT WebDocument& operator=(Document*); 144 BLINK_EXPORT WebDocument& operator=(Document*);
145 BLINK_EXPORT operator Document*() const; 145 BLINK_EXPORT operator Document*() const;
146 #endif 146 #endif
147 }; 147 };
148 148
149 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); 149 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument);
150 150
151 } // namespace blink 151 } // namespace blink
152 152
153 #endif 153 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698