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

Side by Side Diff: content/common/throttling_url_loader.h

Issue 2914423002: Network service: move URLLoaderThrottle and ThrottlingURLLoader. (Closed)
Patch Set: Created 3 years, 6 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 | « content/common/BUILD.gn ('k') | content/common/throttling_url_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef CONTENT_CHILD_THROTTLING_URL_LOADER_H_ 5 #ifndef CONTENT_COMMON_THROTTLING_URL_LOADER_H_
6 #define CONTENT_CHILD_THROTTLING_URL_LOADER_H_ 6 #define CONTENT_COMMON_THROTTLING_URL_LOADER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/url_loader.mojom.h" 11 #include "content/common/url_loader.mojom.h"
12 #include "content/common/url_loader_factory.mojom.h" 12 #include "content/common/url_loader_factory.mojom.h"
13 #include "content/public/child/url_loader_throttle.h" 13 #include "content/public/common/url_loader_throttle.h"
14 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 namespace mojom { 18 namespace mojom {
19 class URLLoaderFactory; 19 class URLLoaderFactory;
20 } 20 }
21 21
22 // ThrottlingURLLoader is a wrapper around the mojom::URLLoader[Factory] 22 // ThrottlingURLLoader is a wrapper around the mojom::URLLoader[Factory]
23 // interfaces. It applies a list of URLLoaderThrottle instances which could 23 // interfaces. It applies a list of URLLoaderThrottle instances which could
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Set if request is deferred and SetPriority() is called. 107 // Set if request is deferred and SetPriority() is called.
108 bool set_priority_cached_ = false; 108 bool set_priority_cached_ = false;
109 net::RequestPriority priority_ = net::MINIMUM_PRIORITY; 109 net::RequestPriority priority_ = net::MINIMUM_PRIORITY;
110 int32_t intra_priority_value_ = 0; 110 int32_t intra_priority_value_ = 0;
111 111
112 DISALLOW_COPY_AND_ASSIGN(ThrottlingURLLoader); 112 DISALLOW_COPY_AND_ASSIGN(ThrottlingURLLoader);
113 }; 113 };
114 114
115 } // namespace content 115 } // namespace content
116 116
117 #endif // CONTENT_CHILD_THROTTLING_URL_LOADER_H_ 117 #endif // CONTENT_COMMON_THROTTLING_URL_LOADER_H_
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/throttling_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698