| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 588 |
| 589 bool DeleteEntryRequest::didDeleteEntry() | 589 bool DeleteEntryRequest::didDeleteEntry() |
| 590 { | 590 { |
| 591 reportResult(static_cast<FileError::ErrorCode>(0)); | 591 reportResult(static_cast<FileError::ErrorCode>(0)); |
| 592 return true; | 592 return true; |
| 593 } | 593 } |
| 594 | 594 |
| 595 } // anonymous namespace | 595 } // anonymous namespace |
| 596 | 596 |
| 597 // static | 597 // static |
| 598 PassOwnPtr<InspectorFileSystemAgent> InspectorFileSystemAgent::create(Page* page
) | 598 PassOwnPtrWillBeRawPtr<InspectorFileSystemAgent> InspectorFileSystemAgent::creat
e(Page* page) |
| 599 { | 599 { |
| 600 return adoptPtr(new InspectorFileSystemAgent(page)); | 600 return adoptPtrWillBeNoop(new InspectorFileSystemAgent(page)); |
| 601 } | 601 } |
| 602 | 602 |
| 603 InspectorFileSystemAgent::~InspectorFileSystemAgent() | 603 InspectorFileSystemAgent::~InspectorFileSystemAgent() |
| 604 { | 604 { |
| 605 } | 605 } |
| 606 | 606 |
| 607 void InspectorFileSystemAgent::enable(ErrorString*) | 607 void InspectorFileSystemAgent::enable(ErrorString*) |
| 608 { | 608 { |
| 609 if (m_enabled) | 609 if (m_enabled) |
| 610 return; | 610 return; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 continue; | 719 continue; |
| 720 LocalFrame* localFrame = toLocalFrame(frame); | 720 LocalFrame* localFrame = toLocalFrame(frame); |
| 721 if (localFrame->document() && localFrame->document()->securityOrigin()->
isSameSchemeHostPort(origin)) | 721 if (localFrame->document() && localFrame->document()->securityOrigin()->
isSameSchemeHostPort(origin)) |
| 722 return localFrame->document(); | 722 return localFrame->document(); |
| 723 } | 723 } |
| 724 | 724 |
| 725 *error = "No frame is available for the request"; | 725 *error = "No frame is available for the request"; |
| 726 return 0; | 726 return 0; |
| 727 } | 727 } |
| 728 | 728 |
| 729 void InspectorFileSystemAgent::trace(Visitor* visitor) |
| 730 { |
| 731 visitor->trace(m_page); |
| 732 InspectorBaseAgent::trace(visitor); |
| 733 } |
| 734 |
| 729 } // namespace WebCore | 735 } // namespace WebCore |
| OLD | NEW |