| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_WEB_VIEW_URL_REQUEST_CLONEABLE_H_ | 5 #ifndef COMPONENTS_WEB_VIEW_URL_REQUEST_CLONEABLE_H_ |
| 6 #define COMPONENTS_WEB_VIEW_URL_REQUEST_CLONEABLE_H_ | 6 #define COMPONENTS_WEB_VIEW_URL_REQUEST_CLONEABLE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/basictypes.h" | 13 #include "base/macros.h" |
| 12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 13 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 15 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
| 14 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 15 | 17 |
| 16 namespace web_view { | 18 namespace web_view { |
| 17 | 19 |
| 18 // This class caches data associated with a mojo::URLRequest and vends copies | 20 // This class caches data associated with a mojo::URLRequest and vends copies |
| 19 // of the request for the WebView system. Copies are used for repeated | 21 // of the request for the WebView system. Copies are used for repeated |
| 20 // navigations, but URLRequest structs are not copyable, as they contain | 22 // navigations, but URLRequest structs are not copyable, as they contain |
| 21 // handles to transfer large amounts of data between processes, so we | 23 // handles to transfer large amounts of data between processes, so we |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 std::vector<std::string> body_; | 56 std::vector<std::string> body_; |
| 55 | 57 |
| 56 base::TimeTicks originating_time_; | 58 base::TimeTicks originating_time_; |
| 57 | 59 |
| 58 DISALLOW_COPY_AND_ASSIGN(URLRequestCloneable); | 60 DISALLOW_COPY_AND_ASSIGN(URLRequestCloneable); |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 } // namespace web_view | 63 } // namespace web_view |
| 62 | 64 |
| 63 #endif // COMPONENTS_WEB_VIEW_URL_REQUEST_CLONEABLE_H_ | 65 #endif // COMPONENTS_WEB_VIEW_URL_REQUEST_CLONEABLE_H_ |
| OLD | NEW |