| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "wtf/PassRefPtr.h" | 67 #include "wtf/PassRefPtr.h" |
| 68 #include <v8.h> | 68 #include <v8.h> |
| 69 | 69 |
| 70 namespace blink { | 70 namespace blink { |
| 71 | 71 |
| 72 WebURL WebDocument::url() const | 72 WebURL WebDocument::url() const |
| 73 { | 73 { |
| 74 return constUnwrap<Document>()->url(); | 74 return constUnwrap<Document>()->url(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 WebSecurityOrigin WebDocument::securityOrigin() const | 77 WebSecurityOrigin WebDocument::getSecurityOrigin() const |
| 78 { | 78 { |
| 79 if (!constUnwrap<Document>()) | 79 if (!constUnwrap<Document>()) |
| 80 return WebSecurityOrigin(); | 80 return WebSecurityOrigin(); |
| 81 return WebSecurityOrigin(constUnwrap<Document>()->securityOrigin()); | 81 return WebSecurityOrigin(constUnwrap<Document>()->getSecurityOrigin()); |
| 82 } | 82 } |
| 83 | 83 |
| 84 bool WebDocument::isSecureContext(WebString& errorMessage) const | 84 bool WebDocument::isSecureContext(WebString& errorMessage) const |
| 85 { | 85 { |
| 86 const Document* document = constUnwrap<Document>(); | 86 const Document* document = constUnwrap<Document>(); |
| 87 if (!document) | 87 if (!document) |
| 88 return false; | 88 return false; |
| 89 String message; | 89 String message; |
| 90 bool result = document->isSecureContext(message); | 90 bool result = document->isSecureContext(message); |
| 91 errorMessage = message; | 91 errorMessage = message; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 m_private = elem; | 340 m_private = elem; |
| 341 return *this; | 341 return *this; |
| 342 } | 342 } |
| 343 | 343 |
| 344 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const | 344 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
| 345 { | 345 { |
| 346 return toDocument(m_private.get()); | 346 return toDocument(m_private.get()); |
| 347 } | 347 } |
| 348 | 348 |
| 349 } // namespace blink | 349 } // namespace blink |
| OLD | NEW |