Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Side by Side Diff: Source/modules/filesystem/InspectorFileSystemAgent.cpp

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 { 716 {
717 for (LocalFrame* frame = m_page->mainFrame(); frame; frame = frame->tree().t raverseNext()) { 717 for (LocalFrame* frame = m_page->mainFrame(); frame; frame = frame->tree().t raverseNext()) {
718 if (frame->document() && frame->document()->securityOrigin()->isSameSche meHostPort(origin)) 718 if (frame->document() && frame->document()->securityOrigin()->isSameSche meHostPort(origin))
719 return frame->document(); 719 return frame->document();
720 } 720 }
721 721
722 *error = "No frame is available for the request"; 722 *error = "No frame is available for the request";
723 return 0; 723 return 0;
724 } 724 }
725 725
726 void InspectorFileSystemAgent::trace(Visitor* visitor)
727 {
728 visitor->trace(m_page);
729 InspectorBaseAgent::trace(visitor);
730 }
731
726 } // namespace WebCore 732 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/filesystem/InspectorFileSystemAgent.h ('k') | Source/modules/geolocation/GeolocationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698