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

Side by Side Diff: Source/core/inspector/InspectorPageAgent.cpp

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 { 743 {
744 String content; 744 String content;
745 if (getEditedResourceContent(url, &content)) { 745 if (getEditedResourceContent(url, &content)) {
746 callback->sendSuccess(content, false); 746 callback->sendSuccess(content, false);
747 return; 747 return;
748 } 748 }
749 if (!m_inspectorResourceContentLoader) { 749 if (!m_inspectorResourceContentLoader) {
750 callback->sendFailure("Agent is not enabled."); 750 callback->sendFailure("Agent is not enabled.");
751 return; 751 return;
752 } 752 }
753 m_inspectorResourceContentLoader->ensureResourcesContentLoaded(adoptPtrWillB eNoop(new GetResourceContentLoadListener(this, frameId, url, callback))); 753 m_inspectorResourceContentLoader->ensureResourcesContentLoaded(new GetResour ceContentLoadListener(this, frameId, url, callback));
754 } 754 }
755 755
756 static bool textContentForResource(Resource* cachedResource, String* result) 756 static bool textContentForResource(Resource* cachedResource, String* result)
757 { 757 {
758 if (hasTextContent(cachedResource)) { 758 if (hasTextContent(cachedResource)) {
759 String content; 759 String content;
760 bool base64Encoded; 760 bool base64Encoded;
761 if (InspectorPageAgent::cachedResourceContent(cachedResource, result, &b ase64Encoded)) { 761 if (InspectorPageAgent::cachedResourceContent(cachedResource, result, &b ase64Encoded)) {
762 ASSERT(!base64Encoded); 762 ASSERT(!base64Encoded);
763 return true; 763 return true;
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 void InspectorPageAgent::trace(Visitor* visitor) 1469 void InspectorPageAgent::trace(Visitor* visitor)
1470 { 1470 {
1471 visitor->trace(m_page); 1471 visitor->trace(m_page);
1472 visitor->trace(m_injectedScriptManager); 1472 visitor->trace(m_injectedScriptManager);
1473 visitor->trace(m_inspectorResourceContentLoader); 1473 visitor->trace(m_inspectorResourceContentLoader);
1474 InspectorBaseAgent::trace(visitor); 1474 InspectorBaseAgent::trace(visitor);
1475 } 1475 }
1476 1476
1477 } // namespace blink 1477 } // namespace blink
1478 1478
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698