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

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

Issue 10204010: Handling default service in the web intents picker controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 #ifndef WEBKIT_GLUE_WEB_INTENT_DATA_H_ 5 #ifndef WEBKIT_GLUE_WEB_INTENT_DATA_H_
6 #define WEBKIT_GLUE_WEB_INTENT_DATA_H_ 6 #define WEBKIT_GLUE_WEB_INTENT_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "googleurl/src/gurl.h"
12 #include "webkit/glue/webkit_glue_export.h" 13 #include "webkit/glue/webkit_glue_export.h"
13 14
14 namespace WebKit { 15 namespace WebKit {
15 class WebIntent; 16 class WebIntent;
16 } 17 }
17 18
18 namespace webkit_glue { 19 namespace webkit_glue {
19 20
20 // Representation of the Web Intent data being initiated or delivered. 21 // Representation of the Web Intent data being initiated or delivered.
21 struct WEBKIT_GLUE_EXPORT WebIntentData { 22 struct WEBKIT_GLUE_EXPORT WebIntentData {
22 // The action of the intent. 23 // The action of the intent.
23 string16 action; 24 string16 action;
24 // The MIME type of data in this intent payload. 25 // The MIME type of data in this intent payload.
25 string16 type; 26 string16 type;
26 // The serialized representation of the payload data. Wire format is from 27 // The serialized representation of the payload data. Wire format is from
27 // WebSerializedScriptValue. 28 // WebSerializedScriptValue.
28 string16 data; 29 string16 data;
29 // Any extra key-value pair metadata. (Not serialized.) 30 // Any extra key-value pair metadata. (Not serialized.)
30 std::map<string16, string16> extra_data; 31 std::map<string16, string16> extra_data;
31 32
33 // Set to the service page if this intent data is from an explicit intent
34 // invocation. |service|.is_valid will be false otherwise.
35 GURL service;
36
32 // String payload data. 37 // String payload data.
33 string16 unserialized_data; 38 string16 unserialized_data;
34 39
35 // The file of a payload blob. Together with |blob_length|, suitable 40 // The file of a payload blob. Together with |blob_length|, suitable
36 // arguments to WebBlob::createFromFile. 41 // arguments to WebBlob::createFromFile.
37 FilePath blob_file; 42 FilePath blob_file;
38 // Length of the blob. 43 // Length of the blob.
39 int64 blob_length; 44 int64 blob_length;
40 45
41 // These enum values indicate which payload data type should be used. 46 // These enum values indicate which payload data type should be used.
(...skipping 13 matching lines...) Expand all
55 WebIntentData(const string16& action_in, 60 WebIntentData(const string16& action_in,
56 const string16& type_in, 61 const string16& type_in,
57 const FilePath& blob_file_in, 62 const FilePath& blob_file_in,
58 int64 blob_length_in); 63 int64 blob_length_in);
59 ~WebIntentData(); 64 ~WebIntentData();
60 }; 65 };
61 66
62 } // namespace webkit_glue 67 } // namespace webkit_glue
63 68
64 #endif // WEBKIT_GLUE_WEB_INTENT_DATA_H_ 69 #endif // WEBKIT_GLUE_WEB_INTENT_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698