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

Side by Side Diff: content/browser/loader/content_size_resource_handler.h

Issue 2180933002: Add experimental code behind a flag for Content Size Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: while -> for Created 4 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_LOADER_CONTENT_SIZE_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_CONTENT_SIZE_RESOURCE_HANDLER_H_
7
8 #include <map>
9
10 #include "base/macros.h"
11 #include "content/browser/loader/global_routing_id.h"
12 #include "content/browser/loader/layered_resource_handler.h"
13 #include "net/url_request/url_request_status.h"
14 #include "url/gurl.h"
15
16 namespace net {
17 class URLRequest;
18 }
19
20 namespace content {
21
22 class ContentSizeResourceHandlerManager;
23
24 class ContentSizeResourceHandler : public LayeredResourceHandler {
25 public:
26 ContentSizeResourceHandler(std::unique_ptr<ResourceHandler> next_handler,
27 net::URLRequest* request,
28 ContentSizeResourceHandlerManager* manager);
29 ~ContentSizeResourceHandler() override;
30
31 private:
32 // ResourceHandler:
33 bool OnWillStart(const GURL&, bool* defer) override;
34 bool OnReadCompleted(int bytes_read, bool* defer) override;
35 void OnResponseCompleted(const net::URLRequestStatus& status,
36 const std::string& security_info,
37 bool* defer) override;
38
39 ContentSizeResourceHandlerManager* manager_;
40
41 DISALLOW_COPY_AND_ASSIGN(ContentSizeResourceHandler);
42 };
43
44 } // namespace content
45
46 #endif // CONTENT_BROWSER_LOADER_CONTENT_SIZE_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/content_size_frame_counter.cc ('k') | content/browser/loader/content_size_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698