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

Side by Side Diff: content/browser/indexed_db/indexed_db_blob_info.h

Issue 933823002: Avoid large inlined automatic methods in IndexedDB code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more CONTENT_EXPORT Created 5 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
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_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 15 matching lines...) Expand all
26 IndexedDBBlobInfo(const base::string16& type, int64 size, int64 key); 26 IndexedDBBlobInfo(const base::string16& type, int64 size, int64 key);
27 // These two are used for Files. 27 // These two are used for Files.
28 IndexedDBBlobInfo(const std::string& uuid, 28 IndexedDBBlobInfo(const std::string& uuid,
29 const base::FilePath& file_path, 29 const base::FilePath& file_path,
30 const base::string16& file_name, 30 const base::string16& file_name,
31 const base::string16& type); 31 const base::string16& type);
32 IndexedDBBlobInfo(int64 key, 32 IndexedDBBlobInfo(int64 key,
33 const base::string16& type, 33 const base::string16& type,
34 const base::string16& file_name); 34 const base::string16& file_name);
35 35
36 IndexedDBBlobInfo(const IndexedDBBlobInfo& other);
36 ~IndexedDBBlobInfo(); 37 ~IndexedDBBlobInfo();
38 IndexedDBBlobInfo& operator=(const IndexedDBBlobInfo& other);
37 39
38 bool is_file() const { return is_file_; } 40 bool is_file() const { return is_file_; }
39 const std::string& uuid() const { return uuid_; } 41 const std::string& uuid() const { return uuid_; }
40 const base::string16& type() const { return type_; } 42 const base::string16& type() const { return type_; }
41 int64 size() const { return size_; } 43 int64 size() const { return size_; }
42 const base::string16& file_name() const { return file_name_; } 44 const base::string16& file_name() const { return file_name_; }
43 int64 key() const { return key_; } 45 int64 key() const { return key_; }
44 const base::FilePath& file_path() const { return file_path_; } 46 const base::FilePath& file_path() const { return file_path_; }
45 const base::Time& last_modified() const { return last_modified_; } 47 const base::Time& last_modified() const { return last_modified_; }
46 const base::Closure& mark_used_callback() const { 48 const base::Closure& mark_used_callback() const {
(...skipping 20 matching lines...) Expand all
67 69
68 // Valid only when this comes out of the database. 70 // Valid only when this comes out of the database.
69 int64 key_; 71 int64 key_;
70 base::Closure mark_used_callback_; 72 base::Closure mark_used_callback_;
71 ReleaseCallback release_callback_; 73 ReleaseCallback release_callback_;
72 }; 74 };
73 75
74 } // namespace content 76 } // namespace content
75 77
76 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_ 78 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | content/browser/indexed_db/indexed_db_blob_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698