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...) Expand 10 before | Expand all | Expand 10 after 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 { | 717 { |
718 for (LocalFrame* frame = m_page->mainFrame(); frame; frame = frame->tree().t
raverseNext()) { | 718 for (LocalFrame* frame = m_page->mainFrame(); frame; frame = frame->tree().t
raverseNext()) { |
719 if (frame->document() && frame->document()->securityOrigin()->isSameSche
meHostPort(origin)) | 719 if (frame->document() && frame->document()->securityOrigin()->isSameSche
meHostPort(origin)) |
720 return frame->document(); | 720 return frame->document(); |
721 } | 721 } |
722 | 722 |
723 *error = "No frame is available for the request"; | 723 *error = "No frame is available for the request"; |
724 return 0; | 724 return 0; |
725 } | 725 } |
726 | 726 |
| 727 void InspectorFileSystemAgent::trace(Visitor* visitor) |
| 728 { |
| 729 visitor->trace(m_page); |
| 730 InspectorBaseAgent::trace(visitor); |
| 731 } |
| 732 |
727 } // namespace WebCore | 733 } // namespace WebCore |
OLD | NEW |