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