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

Side by Side Diff: Source/modules/indexeddb/InspectorIndexedDBAgent.cpp

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 if (documentOrigin->toRawString() == securityOrigin) 546 if (documentOrigin->toRawString() == securityOrigin)
547 return toLocalFrame(frame); 547 return toLocalFrame(frame);
548 } 548 }
549 return 0; 549 return 0;
550 } 550 }
551 551
552 } // namespace 552 } // namespace
553 553
554 void InspectorIndexedDBAgent::provideTo(Page* page) 554 void InspectorIndexedDBAgent::provideTo(Page* page)
555 { 555 {
556 OwnPtr<InspectorIndexedDBAgent> agent(adoptPtr(new InspectorIndexedDBAgent(p age))); 556 OwnPtrWillBeRawPtr<InspectorIndexedDBAgent> agent(adoptPtrWillBeNoop(new Ins pectorIndexedDBAgent(page)));
557 page->inspectorController().registerModuleAgent(agent.release()); 557 page->inspectorController().registerModuleAgent(agent.release());
558 } 558 }
559 559
560 InspectorIndexedDBAgent::InspectorIndexedDBAgent(Page* page) 560 InspectorIndexedDBAgent::InspectorIndexedDBAgent(Page* page)
561 : InspectorBaseAgent<InspectorIndexedDBAgent>("IndexedDB") 561 : InspectorBaseAgent<InspectorIndexedDBAgent>("IndexedDB")
562 , m_page(page) 562 , m_page(page)
563 { 563 {
564 } 564 }
565 565
566 InspectorIndexedDBAgent::~InspectorIndexedDBAgent() 566 InspectorIndexedDBAgent::~InspectorIndexedDBAgent()
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 IDBFactory* idbFactory = assertIDBFactory(errorString, document); 766 IDBFactory* idbFactory = assertIDBFactory(errorString, document);
767 if (!idbFactory) 767 if (!idbFactory)
768 return; 768 return;
769 769
770 ScriptState* scriptState = ScriptState::forMainWorld(frame); 770 ScriptState* scriptState = ScriptState::forMainWorld(frame);
771 ScriptState::Scope scope(scriptState); 771 ScriptState::Scope scope(scriptState);
772 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(scriptS tate, objectStoreName, requestCallback); 772 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(scriptS tate, objectStoreName, requestCallback);
773 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName ); 773 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName );
774 } 774 }
775 775
776 void InspectorIndexedDBAgent::trace(Visitor* visitor)
777 {
778 visitor->trace(m_page);
779 InspectorBaseAgent::trace(visitor);
780 }
781
776 } // namespace WebCore 782 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698