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

Side by Side Diff: content/common/page_state_serialization.h

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « content/common/fileapi/webblob_messages.h ('k') | content/common/page_state_serialization.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ui/gfx/point.h" 13 #include "ui/gfx/point.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 struct CONTENT_EXPORT ExplodedHttpBodyElement { 18 struct CONTENT_EXPORT ExplodedHttpBodyElement {
19 WebKit::WebHTTPBody::Element::Type type; 19 WebKit::WebHTTPBody::Element::Type type;
20 std::string data; 20 std::string data;
21 base::NullableString16 file_path; 21 base::NullableString16 file_path;
22 GURL url; 22 GURL filesystem_url;
23 int64 file_start; 23 int64 file_start;
24 int64 file_length; 24 int64 file_length;
25 double file_modification_time; 25 double file_modification_time;
26 GURL deprecated_blob_url;
26 27
27 ExplodedHttpBodyElement(); 28 ExplodedHttpBodyElement();
28 ~ExplodedHttpBodyElement(); 29 ~ExplodedHttpBodyElement();
29 }; 30 };
30 31
31 struct CONTENT_EXPORT ExplodedHttpBody { 32 struct CONTENT_EXPORT ExplodedHttpBody {
32 base::NullableString16 http_content_type; 33 base::NullableString16 http_content_type;
33 std::vector<ExplodedHttpBodyElement> elements; 34 std::vector<ExplodedHttpBodyElement> elements;
34 int64 identifier; 35 int64 identifier;
35 bool contains_passwords; 36 bool contains_passwords;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #if defined(OS_ANDROID) 80 #if defined(OS_ANDROID)
80 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( 81 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting(
81 const std::string& encoded, 82 const std::string& encoded,
82 float device_scale_factor, 83 float device_scale_factor,
83 ExplodedPageState* exploded); 84 ExplodedPageState* exploded);
84 #endif 85 #endif
85 86
86 } // namespace content 87 } // namespace content
87 88
88 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ 89 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_
OLDNEW
« no previous file with comments | « content/common/fileapi/webblob_messages.h ('k') | content/common/page_state_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698