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

Side by Side Diff: sky/engine/core/fetch/ResourceLoader.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/fetch/ResourceLoader.h ('k') | sky/engine/core/fetch/ResourceLoaderHost.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2010, 2011 Apple Inc. All rights reserved.
3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com) 3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 , m_connectionState(ConnectionStateNew) 83 , m_connectionState(ConnectionStateNew)
84 , m_requestCountTracker(adoptPtr(new RequestCountTracker(host, resource))) 84 , m_requestCountTracker(adoptPtr(new RequestCountTracker(host, resource)))
85 { 85 {
86 } 86 }
87 87
88 ResourceLoader::~ResourceLoader() 88 ResourceLoader::~ResourceLoader()
89 { 89 {
90 ASSERT(m_state == Terminated); 90 ASSERT(m_state == Terminated);
91 } 91 }
92 92
93 void ResourceLoader::trace(Visitor* visitor)
94 {
95 visitor->trace(m_host);
96 visitor->trace(m_resource);
97 }
98
99 void ResourceLoader::releaseResources() 93 void ResourceLoader::releaseResources()
100 { 94 {
101 ASSERT(m_state != Terminated); 95 ASSERT(m_state != Terminated);
102 ASSERT(m_notifiedLoadComplete); 96 ASSERT(m_notifiedLoadComplete);
103 m_requestCountTracker.clear(); 97 m_requestCountTracker.clear();
104 m_host->didLoadResource(m_resource); 98 m_host->didLoadResource(m_resource);
105 if (m_state == Terminated) 99 if (m_state == Terminated)
106 return; 100 return;
107 m_resource->clearLoader(); 101 m_resource->clearLoader();
108 m_resource->deleteIfPossible(); 102 m_resource->deleteIfPossible();
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 return m_host->isLoadedBy(loader); 406 return m_host->isLoadedBy(loader);
413 } 407 }
414 408
415 ResourceRequest& ResourceLoader::applyOptions(ResourceRequest& request) const 409 ResourceRequest& ResourceLoader::applyOptions(ResourceRequest& request) const
416 { 410 {
417 request.setAllowStoredCredentials(m_options.allowCredentials == AllowStoredC redentials); 411 request.setAllowStoredCredentials(m_options.allowCredentials == AllowStoredC redentials);
418 return request; 412 return request;
419 } 413 }
420 414
421 } 415 }
OLDNEW
« no previous file with comments | « sky/engine/core/fetch/ResourceLoader.h ('k') | sky/engine/core/fetch/ResourceLoaderHost.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698