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

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

Issue 9651020: Pass content-type resources to web intents. Goes through download, then invokes the p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove includes 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
« no previous file with comments | « webkit/glue/web_intent_data.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webkit/glue/web_intent_data.h" 5 #include "webkit/glue/web_intent_data.h"
6 6
7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h"
8 8
9 namespace webkit_glue { 9 namespace webkit_glue {
10 10
11 WebIntentData::WebIntentData() 11 WebIntentData::WebIntentData()
12 : data_type(SERIALIZED) { 12 : blob_length(0),
13 data_type(SERIALIZED) {
13 } 14 }
14 15
15 WebIntentData::~WebIntentData() { 16 WebIntentData::~WebIntentData() {
16 } 17 }
17 18
18 WebIntentData::WebIntentData(const WebKit::WebIntent& intent) 19 WebIntentData::WebIntentData(const WebKit::WebIntent& intent)
19 : action(intent.action()), 20 : action(intent.action()),
20 type(intent.type()), 21 type(intent.type()),
21 data(intent.data()), 22 data(intent.data()),
23 blob_length(0),
22 data_type(SERIALIZED) { 24 data_type(SERIALIZED) {
23 } 25 }
24 26
25 WebIntentData::WebIntentData(const string16& action_in, 27 WebIntentData::WebIntentData(const string16& action_in,
26 const string16& type_in, 28 const string16& type_in,
27 const string16& unserialized_data_in) 29 const string16& unserialized_data_in)
28 : action(action_in), 30 : action(action_in),
29 type(type_in), 31 type(type_in),
30 unserialized_data(unserialized_data_in), 32 unserialized_data(unserialized_data_in),
33 blob_length(0),
31 data_type(UNSERIALIZED) { 34 data_type(UNSERIALIZED) {
32 } 35 }
33 36
37 WebIntentData::WebIntentData(const string16& action_in,
38 const string16& type_in,
39 const FilePath& blob_file_in,
40 int64 blob_length_in)
41 : action(action_in),
42 type(type_in),
43 blob_file(blob_file_in),
44 blob_length(blob_length_in),
45 data_type(BLOB) {
46 }
47
34 } // namespace webkit_glue 48 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/web_intent_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698