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

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: Created 6 years, 5 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 bool InspectorPageAgent::dataContent(const char* data, unsigned size, const Stri ng& textEncodingName, bool withBase64Encode, String* result) 297 bool InspectorPageAgent::dataContent(const char* data, unsigned size, const Stri ng& textEncodingName, bool withBase64Encode, String* result)
298 { 298 {
299 if (withBase64Encode) { 299 if (withBase64Encode) {
300 *result = base64Encode(data, size); 300 *result = base64Encode(data, size);
301 return true; 301 return true;
302 } 302 }
303 303
304 return decodeBuffer(data, size, textEncodingName, result); 304 return decodeBuffer(data, size, textEncodingName, result);
305 } 305 }
306 306
307 PassOwnPtr<InspectorPageAgent> InspectorPageAgent::create(Page* page, InjectedSc riptManager* injectedScriptManager, InspectorClient* client, InspectorOverlay* o verlay) 307 PassOwnPtrWillBeRawPtr<InspectorPageAgent> InspectorPageAgent::create(Page* page , InjectedScriptManager* injectedScriptManager, InspectorClient* client, Inspect orOverlay* overlay)
308 { 308 {
309 return adoptPtr(new InspectorPageAgent(page, injectedScriptManager, client, overlay)); 309 return adoptPtrWillBeNoop(new InspectorPageAgent(page, injectedScriptManager , client, overlay));
310 } 310 }
311 311
312 Resource* InspectorPageAgent::cachedResource(LocalFrame* frame, const KURL& url) 312 Resource* InspectorPageAgent::cachedResource(LocalFrame* frame, const KURL& url)
313 { 313 {
314 Document* document = frame->document(); 314 Document* document = frame->document();
315 if (!document) 315 if (!document)
316 return 0; 316 return 0;
317 Resource* cachedResource = document->fetcher()->cachedResource(url); 317 Resource* cachedResource = document->fetcher()->cachedResource(url);
318 if (!cachedResource) { 318 if (!cachedResource) {
319 Vector<Document*> allImports = InspectorPageAgent::importsForFrame(frame ); 319 Vector<Document*> allImports = InspectorPageAgent::importsForFrame(frame );
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 } 1425 }
1426 1426
1427 bool InspectorPageAgent::getEditedResourceContent(const String& url, String* con tent) 1427 bool InspectorPageAgent::getEditedResourceContent(const String& url, String* con tent)
1428 { 1428 {
1429 if (!m_editedResourceContent.contains(url)) 1429 if (!m_editedResourceContent.contains(url))
1430 return false; 1430 return false;
1431 *content = m_editedResourceContent.get(url); 1431 *content = m_editedResourceContent.get(url);
1432 return true; 1432 return true;
1433 } 1433 }
1434 1434
1435 void InspectorPageAgent::trace(Visitor* visitor)
1436 {
1437 visitor->trace(m_page);
1438 InspectorBaseAgent::trace(visitor);
1439 }
1440
1435 } // namespace WebCore 1441 } // namespace WebCore
1436 1442
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698