| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |    5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ | 
|    6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |    6 #define CHROME_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  | 
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  161  |  161  | 
|  162   // The approximate in-memory size (bytes) that we credited this request |  162   // The approximate in-memory size (bytes) that we credited this request | 
|  163   // as consuming in |outstanding_requests_memory_cost_map_|. |  163   // as consuming in |outstanding_requests_memory_cost_map_|. | 
|  164   int memory_cost() const { return memory_cost_; } |  164   int memory_cost() const { return memory_cost_; } | 
|  165   void set_memory_cost(int cost) { memory_cost_ = cost; } |  165   void set_memory_cost(int cost) { memory_cost_ = cost; } | 
|  166  |  166  | 
|  167   int host_renderer_id() const { return host_renderer_id_; } |  167   int host_renderer_id() const { return host_renderer_id_; } | 
|  168   int host_render_view_id() const { return host_render_view_id_; } |  168   int host_render_view_id() const { return host_render_view_id_; } | 
|  169  |  169  | 
|  170   // We hold a reference to the requested blob data to ensure it doesn't |  170   // We hold a reference to the requested blob data to ensure it doesn't | 
|  171   // get finally released prior to the URLRequestJob being started. |  171   // get finally released prior to the net::URLRequestJob being started. | 
|  172   webkit_blob::BlobData* requested_blob_data() const { |  172   webkit_blob::BlobData* requested_blob_data() const { | 
|  173     return requested_blob_data_.get(); |  173     return requested_blob_data_.get(); | 
|  174   } |  174   } | 
|  175   void set_requested_blob_data(webkit_blob::BlobData* data); |  175   void set_requested_blob_data(webkit_blob::BlobData* data); | 
|  176  |  176  | 
|  177  private: |  177  private: | 
|  178   friend class ResourceDispatcherHost; |  178   friend class ResourceDispatcherHost; | 
|  179  |  179  | 
|  180   // Request is temporarily not handling network data. Should be used only |  180   // Request is temporarily not handling network data. Should be used only | 
|  181   // by the ResourceDispatcherHost, not the event handlers (accessors are |  181   // by the ResourceDispatcherHost, not the event handlers (accessors are | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  243  |  243  | 
|  244   // Contains the id of the host renderer. |  244   // Contains the id of the host renderer. | 
|  245   int host_renderer_id_; |  245   int host_renderer_id_; | 
|  246   // Contains the id of the host render view. |  246   // Contains the id of the host render view. | 
|  247   int host_render_view_id_; |  247   int host_render_view_id_; | 
|  248  |  248  | 
|  249   DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); |  249   DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); | 
|  250 }; |  250 }; | 
|  251  |  251  | 
|  252 #endif  // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |  252 #endif  // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ | 
| OLD | NEW |