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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RESOURCE_REQUEST_BODY_H_ 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_BODY_H_
6 #define CONTENT_COMMON_RESOURCE_REQUEST_BODY_H_ 6 #define CONTENT_COMMON_RESOURCE_REQUEST_BODY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 #include "webkit/common/data_element.h" 15 #include "webkit/common/data_element.h"
16 16
17 namespace base { 17 namespace base {
18 class FilePath; 18 class FilePath;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 // A struct used to represent upload data. The data field is populated by 23 // A struct used to represent upload data. The data field is populated by
24 // WebURLLoader from the data given as WebHTTPBody. 24 // WebURLLoader from the data given as WebHTTPBody.
25 class CONTENT_EXPORT ResourceRequestBody 25 class CONTENT_EXPORT ResourceRequestBody
26 : public base::RefCountedThreadSafe<ResourceRequestBody>, 26 : public base::RefCountedThreadSafe<ResourceRequestBody>,
27 public base::SupportsUserData { 27 public base::SupportsUserData {
28 public: 28 public:
29 typedef webkit_common::DataElement Element; 29 typedef storage::DataElement Element;
30 30
31 ResourceRequestBody(); 31 ResourceRequestBody();
32 32
33 void AppendBytes(const char* bytes, int bytes_len); 33 void AppendBytes(const char* bytes, int bytes_len);
34 void AppendFileRange(const base::FilePath& file_path, 34 void AppendFileRange(const base::FilePath& file_path,
35 uint64 offset, uint64 length, 35 uint64 offset, uint64 length,
36 const base::Time& expected_modification_time); 36 const base::Time& expected_modification_time);
37 void AppendBlob(const std::string& uuid); 37 void AppendBlob(const std::string& uuid);
38 void AppendFileSystemFileRange(const GURL& url, uint64 offset, uint64 length, 38 void AppendFileSystemFileRange(const GURL& url, uint64 offset, uint64 length,
39 const base::Time& expected_modification_time); 39 const base::Time& expected_modification_time);
(...skipping 16 matching lines...) Expand all
56 56
57 std::vector<Element> elements_; 57 std::vector<Element> elements_;
58 int64 identifier_; 58 int64 identifier_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBody); 60 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBody);
61 }; 61 };
62 62
63 } // namespace content 63 } // namespace content
64 64
65 #endif // CONTENT_COMMON_RESOURCE_REQUEST_BODY_H_ 65 #endif // CONTENT_COMMON_RESOURCE_REQUEST_BODY_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.cc ('k') | content/common/shareable_file_reference_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698