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

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

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 570
571 } // namespace 571 } // namespace
572 572
573 // static 573 // static
574 InspectorIndexedDBAgent* InspectorIndexedDBAgent::create(InspectedFrames* inspec tedFrames) 574 InspectorIndexedDBAgent* InspectorIndexedDBAgent::create(InspectedFrames* inspec tedFrames)
575 { 575 {
576 return new InspectorIndexedDBAgent(inspectedFrames); 576 return new InspectorIndexedDBAgent(inspectedFrames);
577 } 577 }
578 578
579 InspectorIndexedDBAgent::InspectorIndexedDBAgent(InspectedFrames* inspectedFrame s) 579 InspectorIndexedDBAgent::InspectorIndexedDBAgent(InspectedFrames* inspectedFrame s)
580 : InspectorBaseAgent<InspectorIndexedDBAgent, protocol::IndexedDB::Frontend> ("IndexedDB") 580 : m_inspectedFrames(inspectedFrames)
581 , m_inspectedFrames(inspectedFrames)
582 { 581 {
583 } 582 }
584 583
585 InspectorIndexedDBAgent::~InspectorIndexedDBAgent() 584 InspectorIndexedDBAgent::~InspectorIndexedDBAgent()
586 { 585 {
587 } 586 }
588 587
589 void InspectorIndexedDBAgent::restore() 588 void InspectorIndexedDBAgent::restore()
590 { 589 {
591 if (m_state->booleanProperty(IndexedDBAgentState::indexedDBAgentEnabled, fal se)) { 590 if (m_state->booleanProperty(IndexedDBAgentState::indexedDBAgentEnabled, fal se)) {
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 clearObjectStore->start(idbFactory, document->getSecurityOrigin(), databaseN ame); 804 clearObjectStore->start(idbFactory, document->getSecurityOrigin(), databaseN ame);
806 } 805 }
807 806
808 DEFINE_TRACE(InspectorIndexedDBAgent) 807 DEFINE_TRACE(InspectorIndexedDBAgent)
809 { 808 {
810 visitor->trace(m_inspectedFrames); 809 visitor->trace(m_inspectedFrames);
811 InspectorBaseAgent::trace(visitor); 810 InspectorBaseAgent::trace(visitor);
812 } 811 }
813 812
814 } // namespace blink 813 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698