| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMON_PAGE_STATE_SERIALIZATION_H_ | 5 #ifndef CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 
| 6 #define CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 6 #define CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 
| 7 | 7 | 
| 8 #include <vector> | 8 #include <vector> | 
| 9 | 9 | 
| 10 #include "base/strings/nullable_string16.h" | 10 #include "base/strings/nullable_string16.h" | 
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" | 
| 12 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 12 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 
|  | 13 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 
| 13 #include "ui/gfx/point.h" | 14 #include "ui/gfx/point.h" | 
| 14 #include "url/gurl.h" | 15 #include "url/gurl.h" | 
| 15 | 16 | 
| 16 namespace content { | 17 namespace content { | 
| 17 | 18 | 
| 18 struct CONTENT_EXPORT ExplodedHttpBodyElement { | 19 struct CONTENT_EXPORT ExplodedHttpBodyElement { | 
| 19   blink::WebHTTPBody::Element::Type type; | 20   blink::WebHTTPBody::Element::Type type; | 
| 20   std::string data; | 21   std::string data; | 
| 21   base::NullableString16 file_path; | 22   base::NullableString16 file_path; | 
| 22   GURL filesystem_url; | 23   GURL filesystem_url; | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
| 45   base::NullableString16 original_url_string; | 46   base::NullableString16 original_url_string; | 
| 46   base::NullableString16 referrer; | 47   base::NullableString16 referrer; | 
| 47   base::NullableString16 target; | 48   base::NullableString16 target; | 
| 48   base::NullableString16 state_object; | 49   base::NullableString16 state_object; | 
| 49   std::vector<base::NullableString16> document_state; | 50   std::vector<base::NullableString16> document_state; | 
| 50   gfx::Point scroll_offset; | 51   gfx::Point scroll_offset; | 
| 51   int64 item_sequence_number; | 52   int64 item_sequence_number; | 
| 52   int64 document_sequence_number; | 53   int64 document_sequence_number; | 
| 53   int64 target_frame_id; | 54   int64 target_frame_id; | 
| 54   double page_scale_factor; | 55   double page_scale_factor; | 
|  | 56   blink::WebReferrerPolicy referrer_policy; | 
| 55   ExplodedHttpBody http_body; | 57   ExplodedHttpBody http_body; | 
| 56   std::vector<ExplodedFrameState> children; | 58   std::vector<ExplodedFrameState> children; | 
| 57 | 59 | 
| 58   ExplodedFrameState(); | 60   ExplodedFrameState(); | 
| 59   ~ExplodedFrameState(); | 61   ~ExplodedFrameState(); | 
| 60 }; | 62 }; | 
| 61 | 63 | 
| 62 struct CONTENT_EXPORT ExplodedPageState { | 64 struct CONTENT_EXPORT ExplodedPageState { | 
| 63   std::vector<base::NullableString16> referenced_files; | 65   std::vector<base::NullableString16> referenced_files; | 
| 64   ExplodedFrameState top; | 66   ExplodedFrameState top; | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 75 #if defined(OS_ANDROID) | 77 #if defined(OS_ANDROID) | 
| 76 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( | 78 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( | 
| 77     const std::string& encoded, | 79     const std::string& encoded, | 
| 78     float device_scale_factor, | 80     float device_scale_factor, | 
| 79     ExplodedPageState* exploded); | 81     ExplodedPageState* exploded); | 
| 80 #endif | 82 #endif | 
| 81 | 83 | 
| 82 }  // namespace content | 84 }  // namespace content | 
| 83 | 85 | 
| 84 #endif  // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 86 #endif  // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 
| OLD | NEW | 
|---|