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

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

Issue 15716007: Split webkit_storage target into webkit_storage_{browser,common,renderer} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: char* -> char[] Created 7 years, 6 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/common/appcache/appcache_interfaces.h ('k') | webkit/common/blob/scoped_file.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_COMMON_BLOB_BLOB_DATA_H_ 5 #ifndef WEBKIT_COMMON_BLOB_BLOB_DATA_H_
6 #define WEBKIT_COMMON_BLOB_BLOB_DATA_H_ 6 #define WEBKIT_COMMON_BLOB_BLOB_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "webkit/base/data_element.h" 16 #include "webkit/base/data_element.h"
17 #include "webkit/common/blob/shareable_file_reference.h" 17 #include "webkit/common/blob/shareable_file_reference.h"
18 #include "webkit/storage/webkit_storage_export.h" 18 #include "webkit/common/webkit_common_export.h"
19 19
20 namespace webkit_blob { 20 namespace webkit_blob {
21 21
22 class WEBKIT_STORAGE_EXPORT BlobData : public base::RefCounted<BlobData> { 22 class WEBKIT_COMMON_EXPORT BlobData : public base::RefCounted<BlobData> {
23 public: 23 public:
24 typedef webkit_base::DataElement Item; 24 typedef webkit_base::DataElement Item;
25 25
26 // TODO(michaeln): remove the empty ctor when we fully transition to uuids. 26 // TODO(michaeln): remove the empty ctor when we fully transition to uuids.
27 BlobData(); 27 BlobData();
28 explicit BlobData(const std::string& uuid); 28 explicit BlobData(const std::string& uuid);
29 29
30 void AppendData(const std::string& data) { 30 void AppendData(const std::string& data) {
31 AppendData(data.c_str(), data.size()); 31 AppendData(data.c_str(), data.size());
32 } 32 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 94
95 inline bool operator!=(const BlobData& a, const BlobData& b) { 95 inline bool operator!=(const BlobData& a, const BlobData& b) {
96 return !(a == b); 96 return !(a == b);
97 } 97 }
98 #endif // defined(UNIT_TEST) 98 #endif // defined(UNIT_TEST)
99 99
100 } // namespace webkit_blob 100 } // namespace webkit_blob
101 101
102 #endif // WEBKIT_COMMON_BLOB_BLOB_DATA_H_ 102 #endif // WEBKIT_COMMON_BLOB_BLOB_DATA_H_
OLDNEW
« no previous file with comments | « webkit/common/appcache/appcache_interfaces.h ('k') | webkit/common/blob/scoped_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698