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

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

Issue 29513003: Cleanup deprecated and no longer needed blob revamp stuff, deadcode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/common/data_element.cc ('k') | webkit/common/resource_request_body.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_COMMON_RESOURCE_REQUEST_BODY_H_ 5 #ifndef WEBKIT_COMMON_RESOURCE_REQUEST_BODY_H_
6 #define WEBKIT_COMMON_RESOURCE_REQUEST_BODY_H_ 6 #define WEBKIT_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"
(...skipping 16 matching lines...) Expand all
27 public base::SupportsUserData { 27 public base::SupportsUserData {
28 public: 28 public:
29 typedef webkit_common::DataElement Element; 29 typedef webkit_common::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 AppendBlobDeprecated(const GURL& blob_url);
38 void AppendBlob(const std::string& uuid); 37 void AppendBlob(const std::string& uuid);
39 void AppendFileSystemFileRange(const GURL& url, uint64 offset, uint64 length, 38 void AppendFileSystemFileRange(const GURL& url, uint64 offset, uint64 length,
40 const base::Time& expected_modification_time); 39 const base::Time& expected_modification_time);
41 40
42 const std::vector<Element>* elements() const { return &elements_; } 41 const std::vector<Element>* elements() const { return &elements_; }
43 std::vector<Element>* elements_mutable() { return &elements_; } 42 std::vector<Element>* elements_mutable() { return &elements_; }
44 void swap_elements(std::vector<Element>* elements) { 43 void swap_elements(std::vector<Element>* elements) {
45 elements_.swap(*elements); 44 elements_.swap(*elements);
46 } 45 }
47 46
48 // Identifies a particular upload instance, which is used by the cache to 47 // Identifies a particular upload instance, which is used by the cache to
49 // formulate a cache key. This value should be unique across browser 48 // formulate a cache key. This value should be unique across browser
50 // sessions. A value of 0 is used to indicate an unspecified identifier. 49 // sessions. A value of 0 is used to indicate an unspecified identifier.
51 void set_identifier(int64 id) { identifier_ = id; } 50 void set_identifier(int64 id) { identifier_ = id; }
52 int64 identifier() const { return identifier_; } 51 int64 identifier() const { return identifier_; }
53 52
54 private: 53 private:
55 friend class base::RefCounted<ResourceRequestBody>; 54 friend class base::RefCounted<ResourceRequestBody>;
56 virtual ~ResourceRequestBody(); 55 virtual ~ResourceRequestBody();
57 56
58 std::vector<Element> elements_; 57 std::vector<Element> elements_;
59 int64 identifier_; 58 int64 identifier_;
60 59
61 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBody); 60 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBody);
62 }; 61 };
63 62
64 } // namespace webkit_glue 63 } // namespace webkit_glue
65 64
66 #endif // WEBKIT_COMMON_RESOURCE_REQUEST_BODY_H_ 65 #endif // WEBKIT_COMMON_RESOURCE_REQUEST_BODY_H_
OLDNEW
« no previous file with comments | « webkit/common/data_element.cc ('k') | webkit/common/resource_request_body.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698