| OLD | NEW |
| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 WebDocument& operator=(const WebDocument& e) | 69 WebDocument& operator=(const WebDocument& e) |
| 70 { | 70 { |
| 71 WebNode::assign(e); | 71 WebNode::assign(e); |
| 72 return *this; | 72 return *this; |
| 73 } | 73 } |
| 74 void assign(const WebDocument& e) { WebNode::assign(e); } | 74 void assign(const WebDocument& e) { WebNode::assign(e); } |
| 75 | 75 |
| 76 BLINK_EXPORT WebURL url() const; | 76 BLINK_EXPORT WebURL url() const; |
| 77 // Note: Security checks should use the securityOrigin(), not url(). | 77 // Note: Security checks should use the securityOrigin(), not url(). |
| 78 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; | 78 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; |
| 79 BLINK_EXPORT bool isPrivilegedContext(WebString& errorMessage); |
| 79 | 80 |
| 80 BLINK_EXPORT WebString encoding() const; | 81 BLINK_EXPORT WebString encoding() const; |
| 81 BLINK_EXPORT WebString contentLanguage() const; | 82 BLINK_EXPORT WebString contentLanguage() const; |
| 82 BLINK_EXPORT WebString referrer() const; | 83 BLINK_EXPORT WebString referrer() const; |
| 83 BLINK_EXPORT WebColor themeColor() const; | 84 BLINK_EXPORT WebColor themeColor() const; |
| 84 // The url of the OpenSearch Desription Document (if any). | 85 // The url of the OpenSearch Desription Document (if any). |
| 85 BLINK_EXPORT WebURL openSearchDescriptionURL() const; | 86 BLINK_EXPORT WebURL openSearchDescriptionURL() const; |
| 86 | 87 |
| 87 // Returns the frame the document belongs to or 0 if the document is framele
ss. | 88 // Returns the frame the document belongs to or 0 if the document is framele
ss. |
| 88 BLINK_EXPORT WebLocalFrame* frame() const; | 89 BLINK_EXPORT WebLocalFrame* frame() const; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 #if BLINK_IMPLEMENTATION | 153 #if BLINK_IMPLEMENTATION |
| 153 WebDocument(const PassRefPtrWillBeRawPtr<Document>&); | 154 WebDocument(const PassRefPtrWillBeRawPtr<Document>&); |
| 154 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&); | 155 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&); |
| 155 operator PassRefPtrWillBeRawPtr<Document>() const; | 156 operator PassRefPtrWillBeRawPtr<Document>() const; |
| 156 #endif | 157 #endif |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace blink | 160 } // namespace blink |
| 160 | 161 |
| 161 #endif | 162 #endif |
| OLD | NEW |