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

Side by Side Diff: webkit/glue/glue_serialize.h

Issue 10695107: Fix: file permissions when restoring a page with file inputs with selected files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 // This file contains (de)serialization (or if you like python, pickling) 5 // This file contains (de)serialization (or if you like python, pickling)
6 // methods for various objects that we want to persist. 6 // methods for various objects that we want to persist.
7 // In serialization, we write an object's state to a string in some opaque 7 // In serialization, we write an object's state to a string in some opaque
8 // format. Deserialization reconstructs the object's state from such a string. 8 // format. Deserialization reconstructs the object's state from such a string.
9 9
10 #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ 10 #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_
(...skipping 10 matching lines...) Expand all
21 // HistoryItem serialization. 21 // HistoryItem serialization.
22 WEBKIT_GLUE_EXPORT std::string HistoryItemToString( 22 WEBKIT_GLUE_EXPORT std::string HistoryItemToString(
23 const WebKit::WebHistoryItem& item); 23 const WebKit::WebHistoryItem& item);
24 WEBKIT_GLUE_EXPORT WebKit::WebHistoryItem HistoryItemFromString( 24 WEBKIT_GLUE_EXPORT WebKit::WebHistoryItem HistoryItemFromString(
25 const std::string& serialized_item); 25 const std::string& serialized_item);
26 26
27 // Reads file paths from the HTTP body of a serialized WebHistoryItem. 27 // Reads file paths from the HTTP body of a serialized WebHistoryItem.
28 WEBKIT_GLUE_EXPORT std::vector<FilePath> FilePathsFromHistoryState( 28 WEBKIT_GLUE_EXPORT std::vector<FilePath> FilePathsFromHistoryState(
29 const std::string& content_state); 29 const std::string& content_state);
30 30
31 // Reads file paths from the selected file input elements of a serialized
32 // WebHistoryItem.
33 WEBKIT_GLUE_EXPORT std::vector<FilePath> FilePathsFromInputsInHistoryState(
34 const std::string& content_state);
35
31 // For testing purposes only. 36 // For testing purposes only.
32 WEBKIT_GLUE_EXPORT void HistoryItemToVersionedString( 37 WEBKIT_GLUE_EXPORT void HistoryItemToVersionedString(
33 const WebKit::WebHistoryItem& item, 38 const WebKit::WebHistoryItem& item,
34 int version, 39 int version,
35 std::string* serialized_item); 40 std::string* serialized_item);
36 WEBKIT_GLUE_EXPORT int HistoryItemCurrentVersion(); 41 WEBKIT_GLUE_EXPORT int HistoryItemCurrentVersion();
37 42
38 } // namespace webkit_glue 43 } // namespace webkit_glue
39 44
40 #endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ 45 #endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698