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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceLoader.h

Issue 1977743002: Remove ResourceLoader::cachedResource() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp1829803002
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | 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) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 DECLARE_TRACE(); 49 DECLARE_TRACE();
50 50
51 // Promptly release m_loader. 51 // Promptly release m_loader.
52 EAGERLY_FINALIZE(); 52 EAGERLY_FINALIZE();
53 53
54 void start(ResourceRequest&); 54 void start(ResourceRequest&);
55 55
56 void cancel(); 56 void cancel();
57 void cancel(const ResourceError&); 57 void cancel(const ResourceError&);
58 58
59 Resource* cachedResource() { return m_resource.get(); }
60
61 void setDefersLoading(bool); 59 void setDefersLoading(bool);
62 60
63 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); 61 void didChangePriority(ResourceLoadPriority, int intraPriorityValue);
64 62
65 // WebURLLoaderClient 63 // WebURLLoaderClient
66 void willFollowRedirect(WebURLLoader*, WebURLRequest&, const WebURLResponse& redirectResponse) override; 64 void willFollowRedirect(WebURLLoader*, WebURLRequest&, const WebURLResponse& redirectResponse) override;
67 void didSendData(WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override; 65 void didSendData(WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
68 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override; 66 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) override;
69 void didReceiveResponse(WebURLLoader*, const WebURLResponse&, WebDataConsume rHandle*) override; 67 void didReceiveResponse(WebURLLoader*, const WebURLResponse&, WebDataConsume rHandle*) override;
70 void didReceiveData(WebURLLoader*, const char*, int, int encodedDataLength) override; 68 void didReceiveData(WebURLLoader*, const char*, int, int encodedDataLength) override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 Member<Resource> m_resource; 102 Member<Resource> m_resource;
105 103
106 // Used for sanity checking to make sure we don't experience illegal state 104 // Used for sanity checking to make sure we don't experience illegal state
107 // transitions. 105 // transitions.
108 ConnectionState m_state; 106 ConnectionState m_state;
109 }; 107 };
110 108
111 } // namespace blink 109 } // namespace blink
112 110
113 #endif 111 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698