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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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') | webkit/glue/web_intent_reply_data.h » ('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 (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/Platform/chromium/public/WebString.h" 7 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const string16& unserialized_data_in) 54 const string16& unserialized_data_in)
55 : action(action_in), 55 : action(action_in),
56 type(type_in), 56 type(type_in),
57 unserialized_data(unserialized_data_in), 57 unserialized_data(unserialized_data_in),
58 blob_length(0), 58 blob_length(0),
59 data_type(UNSERIALIZED) { 59 data_type(UNSERIALIZED) {
60 } 60 }
61 61
62 WebIntentData::WebIntentData(const string16& action_in, 62 WebIntentData::WebIntentData(const string16& action_in,
63 const string16& type_in, 63 const string16& type_in,
64 const FilePath& blob_file_in, 64 const base::FilePath& blob_file_in,
65 int64 blob_length_in) 65 int64 blob_length_in)
66 : action(action_in), 66 : action(action_in),
67 type(type_in), 67 type(type_in),
68 blob_file(blob_file_in), 68 blob_file(blob_file_in),
69 blob_length(blob_length_in), 69 blob_length(blob_length_in),
70 data_type(BLOB) { 70 data_type(BLOB) {
71 } 71 }
72 72
73 WebIntentData::WebIntentData(const string16& action_in, 73 WebIntentData::WebIntentData(const string16& action_in,
74 const string16& type_in, 74 const string16& type_in,
(...skipping 22 matching lines...) Expand all
97 filesystem_id(intent_data.filesystem_id), 97 filesystem_id(intent_data.filesystem_id),
98 data_type(intent_data.data_type) { 98 data_type(intent_data.data_type) {
99 for (size_t i = 0; i < intent_data.mime_data.GetSize(); ++i) { 99 for (size_t i = 0; i < intent_data.mime_data.GetSize(); ++i) {
100 const DictionaryValue* dict = NULL; 100 const DictionaryValue* dict = NULL;
101 if (!intent_data.mime_data.GetDictionary(i, &dict)) continue; 101 if (!intent_data.mime_data.GetDictionary(i, &dict)) continue;
102 mime_data.Append(dict->DeepCopy()); 102 mime_data.Append(dict->DeepCopy());
103 } 103 }
104 } 104 }
105 105
106 } // namespace webkit_glue 106 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/web_intent_data.h ('k') | webkit/glue/web_intent_reply_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698