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

Side by Side Diff: content/browser/loader/stream_writer.cc

Issue 2554273002: Unexport resource_controller.h (Closed)
Patch Set: content_unittests build Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/loader/stream_writer.h" 5 #include "content/browser/loader/stream_writer.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "content/browser/loader/resource_controller.h"
8 #include "content/browser/streams/stream.h" 9 #include "content/browser/streams/stream.h"
9 #include "content/browser/streams/stream_registry.h" 10 #include "content/browser/streams/stream_registry.h"
10 #include "content/public/browser/resource_controller.h"
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 #include "url/url_constants.h" 13 #include "url/url_constants.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 StreamWriter::StreamWriter() : controller_(nullptr), immediate_mode_(false) { 17 StreamWriter::StreamWriter() : controller_(nullptr), immediate_mode_(false) {
18 } 18 }
19 19
20 StreamWriter::~StreamWriter() { 20 StreamWriter::~StreamWriter() {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 void StreamWriter::OnSpaceAvailable(Stream* stream) { 77 void StreamWriter::OnSpaceAvailable(Stream* stream) {
78 controller_->Resume(); 78 controller_->Resume();
79 } 79 }
80 80
81 void StreamWriter::OnClose(Stream* stream) { 81 void StreamWriter::OnClose(Stream* stream) {
82 controller_->Cancel(); 82 controller_->Cancel();
83 } 83 }
84 84
85 } // namespace content 85 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader.h ('k') | content/browser/loader/throttling_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698