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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host_request_info.h

Issue 9348109: Add extra data to BrowserContext so that content layer and other embedders can stash data with it t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h"
13 #include "base/supports_user_data.h"
12 #include "base/time.h" 14 #include "base/time.h"
13 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
14 #include "content/public/common/page_transition_types.h" 16 #include "content/public/common/page_transition_types.h"
15 #include "content/public/common/process_type.h" 17 #include "content/public/common/process_type.h"
16 #include "content/public/common/referrer.h" 18 #include "content/public/common/referrer.h"
17 #include "net/base/load_states.h" 19 #include "net/base/load_states.h"
18 #include "net/url_request/url_request.h"
19 #include "webkit/glue/resource_type.h" 20 #include "webkit/glue/resource_type.h"
20 21
21 class ResourceDispatcherHost; 22 class ResourceDispatcherHost;
22 class ResourceHandler; 23 class ResourceHandler;
23 class SSLClientAuthHandler; 24 class SSLClientAuthHandler;
24 25
25 namespace content { 26 namespace content {
26 class CrossSiteResourceHandler; 27 class CrossSiteResourceHandler;
27 class ResourceContext; 28 class ResourceContext;
28 class ResourceDispatcherHostLoginDelegate; 29 class ResourceDispatcherHostLoginDelegate;
29 } 30 }
30 31
32 namespace net {
33 class URLRequest;
34 }
35
31 namespace webkit_blob { 36 namespace webkit_blob {
32 class BlobData; 37 class BlobData;
33 } 38 }
34 39
35 // Holds the data ResourceDispatcherHost associates with each request. 40 // Holds the data ResourceDispatcherHost associates with each request.
36 // Retrieve this data by calling ResourceDispatcherHost::InfoForRequest. 41 // Retrieve this data by calling ResourceDispatcherHost::InfoForRequest.
37 class ResourceDispatcherHostRequestInfo : public net::URLRequest::UserData { 42 class ResourceDispatcherHostRequestInfo : public base::SupportsUserData::Data {
38 public: 43 public:
39 // This will take a reference to the handler. 44 // This will take a reference to the handler.
40 CONTENT_EXPORT ResourceDispatcherHostRequestInfo( 45 CONTENT_EXPORT ResourceDispatcherHostRequestInfo(
41 ResourceHandler* handler, 46 ResourceHandler* handler,
42 content::ProcessType process_type, 47 content::ProcessType process_type,
43 int child_id, 48 int child_id,
44 int route_id, 49 int route_id,
45 int origin_pid, 50 int origin_pid,
46 int request_id, 51 int request_id,
47 bool is_main_frame, 52 bool is_main_frame,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // accessors above for consistency). 263 // accessors above for consistency).
259 bool is_paused_; 264 bool is_paused_;
260 bool called_on_response_started_; 265 bool called_on_response_started_;
261 bool has_started_reading_; 266 bool has_started_reading_;
262 int paused_read_bytes_; 267 int paused_read_bytes_;
263 268
264 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); 269 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo);
265 }; 270 };
266 271
267 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H _ 272 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698