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

Side by Side Diff: webkit/blob/blob_data.h

Issue 11103031: webkit: Merge blob and fileapi into one build target 'storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Leave *.gypi files in blob and fileapi Created 8 years, 2 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 | « ui/compositor/compositor.gyp ('k') | webkit/blob/blob_export.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 #ifndef WEBKIT_BLOB_BLOB_DATA_H_ 5 #ifndef WEBKIT_BLOB_BLOB_DATA_H_
6 #define WEBKIT_BLOB_BLOB_DATA_H_ 6 #define WEBKIT_BLOB_BLOB_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "webkit/blob/blob_export.h" 15 #include "webkit/base/data_element.h"
16 #include "webkit/blob/shareable_file_reference.h" 16 #include "webkit/blob/shareable_file_reference.h"
17 #include "webkit/base/data_element.h" 17 #include "webkit/storage/webkit_storage_export.h"
18 18
19 namespace webkit_blob { 19 namespace webkit_blob {
20 20
21 class BLOB_EXPORT BlobData : public base::RefCounted<BlobData> { 21 class WEBKIT_STORAGE_EXPORT BlobData : public base::RefCounted<BlobData> {
22 public: 22 public:
23 typedef webkit_base::DataElement Item; 23 typedef webkit_base::DataElement Item;
24 24
25 BlobData(); 25 BlobData();
26 26
27 void AppendData(const std::string& data) { 27 void AppendData(const std::string& data) {
28 AppendData(data.c_str(), data.size()); 28 AppendData(data.c_str(), data.size());
29 } 29 }
30 30
31 void AppendData(const char* data, size_t length); 31 void AppendData(const char* data, size_t length);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 inline bool operator!=(const BlobData& a, const BlobData& b) { 88 inline bool operator!=(const BlobData& a, const BlobData& b) {
89 return !(a == b); 89 return !(a == b);
90 } 90 }
91 #endif // defined(UNIT_TEST) 91 #endif // defined(UNIT_TEST)
92 92
93 } // namespace webkit_blob 93 } // namespace webkit_blob
94 94
95 #endif // WEBKIT_BLOB_BLOB_DATA_H_ 95 #endif // WEBKIT_BLOB_BLOB_DATA_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | webkit/blob/blob_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698