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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed 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 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 bool InspectorPageAgent::dataContent(const char* data, unsigned size, const Stri ng& textEncodingName, bool withBase64Encode, String* result) 276 bool InspectorPageAgent::dataContent(const char* data, unsigned size, const Stri ng& textEncodingName, bool withBase64Encode, String* result)
277 { 277 {
278 if (withBase64Encode) { 278 if (withBase64Encode) {
279 *result = base64Encode(data, size); 279 *result = base64Encode(data, size);
280 return true; 280 return true;
281 } 281 }
282 282
283 return decodeBuffer(data, size, textEncodingName, result); 283 return decodeBuffer(data, size, textEncodingName, result);
284 } 284 }
285 285
286 PassOwnPtr<InspectorPageAgent> InspectorPageAgent::create(Page* page, InjectedSc riptManager* injectedScriptManager, InspectorClient* client, InspectorOverlay* o verlay) 286 PassOwnPtrWillBeRawPtr<InspectorPageAgent> InspectorPageAgent::create(Page* page , InjectedScriptManager* injectedScriptManager, InspectorClient* client, Inspect orOverlay* overlay)
287 { 287 {
288 return adoptPtr(new InspectorPageAgent(page, injectedScriptManager, client, overlay)); 288 return adoptPtrWillBeNoop(new InspectorPageAgent(page, injectedScriptManager , client, overlay));
289 } 289 }
290 290
291 Resource* InspectorPageAgent::cachedResource(LocalFrame* frame, const KURL& url) 291 Resource* InspectorPageAgent::cachedResource(LocalFrame* frame, const KURL& url)
292 { 292 {
293 Document* document = frame->document(); 293 Document* document = frame->document();
294 if (!document) 294 if (!document)
295 return 0; 295 return 0;
296 Resource* cachedResource = document->fetcher()->cachedResource(url); 296 Resource* cachedResource = document->fetcher()->cachedResource(url);
297 if (!cachedResource) { 297 if (!cachedResource) {
298 Vector<Document*> allImports = InspectorPageAgent::importsForFrame(frame ); 298 Vector<Document*> allImports = InspectorPageAgent::importsForFrame(frame );
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 } 1385 }
1386 1386
1387 bool InspectorPageAgent::getEditedResourceContent(const String& url, String* con tent) 1387 bool InspectorPageAgent::getEditedResourceContent(const String& url, String* con tent)
1388 { 1388 {
1389 if (!m_editedResourceContent.contains(url)) 1389 if (!m_editedResourceContent.contains(url))
1390 return false; 1390 return false;
1391 *content = m_editedResourceContent.get(url); 1391 *content = m_editedResourceContent.get(url);
1392 return true; 1392 return true;
1393 } 1393 }
1394 1394
1395 void InspectorPageAgent::trace(Visitor* visitor)
1396 {
1397 visitor->trace(m_page);
1398 InspectorBaseAgent::trace(visitor);
1399 }
1400
1395 } // namespace WebCore 1401 } // namespace WebCore
1396 1402
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698