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

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

Issue 12874003: Limit to only 10 image requests per page in ResourceScheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move inner classes to .cc Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 class BlobData; 21 class BlobData;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 class CrossSiteResourceHandler; 25 class CrossSiteResourceHandler;
26 class ResourceContext; 26 class ResourceContext;
27 struct GlobalRequestID; 27 struct GlobalRequestID;
28 28
29 // Holds the data ResourceDispatcherHost associates with each request. 29 // Holds the data ResourceDispatcherHost associates with each request.
30 // Retrieve this data by calling ResourceDispatcherHost::InfoForRequest. 30 // Retrieve this data by calling ResourceDispatcherHost::InfoForRequest.
31 class ResourceRequestInfoImpl : public ResourceRequestInfo, 31 class CONTENT_EXPORT ResourceRequestInfoImpl
32 public base::SupportsUserData::Data { 32 : public ResourceRequestInfo,
33 public base::SupportsUserData::Data {
33 public: 34 public:
34 // Returns the ResourceRequestInfoImpl associated with the given URLRequest. 35 // Returns the ResourceRequestInfoImpl associated with the given URLRequest.
35 CONTENT_EXPORT static ResourceRequestInfoImpl* ForRequest( 36 static ResourceRequestInfoImpl* ForRequest(
36 net::URLRequest* request); 37 net::URLRequest* request);
37 38
38 // And, a const version for cases where you only need read access. 39 // And, a const version for cases where you only need read access.
39 static const ResourceRequestInfoImpl* ForRequest( 40 static const ResourceRequestInfoImpl* ForRequest(
40 const net::URLRequest* request); 41 const net::URLRequest* request);
41 42
42 CONTENT_EXPORT ResourceRequestInfoImpl( 43 ResourceRequestInfoImpl(
43 ProcessType process_type, 44 ProcessType process_type,
44 int child_id, 45 int child_id,
45 int route_id, 46 int route_id,
46 int origin_pid, 47 int origin_pid,
47 int request_id, 48 int request_id,
48 bool is_main_frame, 49 bool is_main_frame,
49 int64 frame_id, 50 int64 frame_id,
50 bool parent_is_main_frame, 51 bool parent_is_main_frame,
51 int64 parent_frame_id, 52 int64 parent_frame_id,
52 ResourceType::Type resource_type, 53 ResourceType::Type resource_type,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 WebKit::WebReferrerPolicy referrer_policy_; 144 WebKit::WebReferrerPolicy referrer_policy_;
144 ResourceContext* context_; 145 ResourceContext* context_;
145 bool is_async_; 146 bool is_async_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); 148 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
148 }; 149 };
149 150
150 } // namespace content 151 } // namespace content
151 152
152 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ 153 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.h » ('j') | content/browser/loader/resource_scheduler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698