summaryrefslogtreecommitdiffstats
path: root/content/browser/plugin_process_host.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-09 21:03:20 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-09 21:03:20 +0000
commitdf02acac84b909c194541c93eb25a3933b2b60cf (patch)
treeccd84a66926a2197dd25889141d1bf608f2baa36 /content/browser/plugin_process_host.cc
parent69faf748560f4f9c98b5e81c1bc917a3b7d6e045 (diff)
downloadchromium_src-df02acac84b909c194541c93eb25a3933b2b60cf.zip
chromium_src-df02acac84b909c194541c93eb25a3933b2b60cf.tar.gz
chromium_src-df02acac84b909c194541c93eb25a3933b2b60cf.tar.bz2
Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't have setters/getters on it, and make all the functions pure virtual).
BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9369009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121287 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_process_host.cc')
-rw-r--r--content/browser/plugin_process_host.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc
index ad8d074..03b5273 100644
--- a/content/browser/plugin_process_host.cc
+++ b/content/browser/plugin_process_host.cc
@@ -355,11 +355,11 @@ void PluginProcessHost::CancelRequests() {
// static
void PluginProcessHost::CancelPendingRequestsForResourceContext(
- const content::ResourceContext* context) {
+ content::ResourceContext* context) {
for (PluginProcessHostIterator host_it; !host_it.Done(); ++host_it) {
PluginProcessHost* host = *host_it;
for (size_t i = 0; i < host->pending_requests_.size(); ++i) {
- if (&host->pending_requests_[i]->GetResourceContext() == context) {
+ if (host->pending_requests_[i]->GetResourceContext() == context) {
host->pending_requests_[i]->OnError();
host->pending_requests_.erase(host->pending_requests_.begin() + i);
--i;