Searched refs:storage_ (Results 1 - 25 of 84) sorted by relevance

1234

/external/chromium_org/net/spdy/
H A Dspdy_pinnable_buffer_piece.cc15 if (!storage_ && buffer_ != NULL && length_ != 0) {
16 storage_.reset(new char[length_]);
17 std::copy(buffer_, buffer_ + length_, storage_.get());
18 buffer_ = storage_.get();
31 storage_.swap(other->storage_);
H A Dspdy_pinnable_buffer_piece.h43 return storage_.get() != NULL;
55 scoped_ptr<char[]> storage_; member in struct:net::SpdyPinnableBufferPiece
H A Dspdy_prefixed_buffer_reader.cc55 out->storage_.reset();
67 out->storage_.reset(new char[count]);
68 out->buffer_ = out->storage_.get();
69 ReadN(count, out->storage_.get());
/external/chromium_org/third_party/libaddressinput/chromium/
H A Dchrome_storage_impl_unittest.cc21 storage_(store_.get()),
22 runner_(&storage_) {}
27 ChromeStorageImpl storage_; member in class:autofill::ChromeStorageImplTest
H A Dstorage_test_runner.cc19 : storage_(storage),
58 storage_->Get("key", *callback);
67 storage_->Put("key", new std::string("value"));
69 storage_->Get("key", *callback);
78 storage_->Put("key", new std::string("bad-value"));
79 storage_->Put("key", new std::string("good-value"));
81 storage_->Get("key", *callback);
/external/chromium_org/chrome/browser/prefs/tracked/
H A Ddictionary_hash_store_contents.cc27 base::DictionaryValue* storage_; member in class:__anon4452::MutablePreferenceMacDictionary
34 : storage_(storage) {
40 if (!storage_->GetDictionary(kPreferenceMACs, &mac_dictionary)) {
42 storage_->Set(kPreferenceMACs, mac_dictionary);
52 : storage_(storage) {
72 storage_->Remove(kPreferenceMACs, NULL);
76 return storage_->GetDictionary(kPreferenceMACs, NULL);
81 storage_->GetDictionary(kPreferenceMACs, &mac_dictionary);
88 new MutablePreferenceMacDictionary(storage_));
93 storage_
[all...]
/external/llvm/include/llvm/ADT/
H A DIndexedMap.h34 StorageT storage_; member in class:llvm::IndexedMap
44 assert(toIndex_(n) < storage_.size() && "index out of bounds!");
45 return storage_[toIndex_(n)];
49 assert(toIndex_(n) < storage_.size() && "index out of bounds!");
50 return storage_[toIndex_(n)];
54 storage_.reserve(s);
58 storage_.resize(s, nullVal_);
62 storage_.clear();
67 if (NewSize > storage_.size())
72 return toIndex_(n) < storage_
[all...]
/external/chromium_org/net/tools/balsa/
H A Dsimple_buffer.h26 iterator begin() { return storage_ + read_idx_; }
27 const_iterator begin() const { return storage_ + read_idx_; }
29 iterator end() { return storage_ + write_idx_; }
30 const_iterator end() const { return storage_ + write_idx_; }
63 char* tmp = storage_;
64 storage_ = other->storage_;
65 other->storage_ = tmp;
81 char* storage_; member in class:net::SimpleBuffer
H A Dsimple_buffer.cc24 : storage_(new char[kInitialSimpleBufferSize]),
37 storage_ = new char[size];
41 delete[] storage_;
95 memcpy(storage_ + write_idx_, bytes, size);
106 *ptr = storage_ + write_idx_;
116 *ptr = storage_ + read_idx_;
154 memmove(storage_, read_ptr, read_size);
178 delete[] storage_;
179 storage_ = new_storage;
/external/chromium_org/extensions/browser/api/storage/
H A Dsettings_quota_unittest.cc48 ASSERT_TRUE(storage_.get() != NULL);
52 // Creates |storage_|. Must only be called once.
55 ASSERT_TRUE(storage_.get() == NULL);
58 storage_.reset(new SettingsStorageQuotaEnforcer(limits, delegate_));
61 // Returns whether the settings in |storage_| and |delegate_| are the same as
64 return settings.Equals(&storage_->Get()->settings()) &&
74 scoped_ptr<SettingsStorageQuotaEnforcer> storage_; member in class:extensions::ExtensionSettingsQuotaTest
76 // In-memory storage area being delegated to. Always owned by |storage_|.
84 EXPECT_TRUE(storage_->Set(DEFAULTS, "a", *byte_value_1_)->HasError());
85 EXPECT_FALSE(storage_
[all...]
/external/chromium_org/third_party/libaddressinput/src/cpp/test/
H A Dfake_storage_test.cc38 : storage_(),
44 FakeStorage storage_; member in class:__anon12583::FakeStorageTest
65 storage_.Get("key", *data_ready_);
73 storage_.Put("key", new std::string("value"));
74 storage_.Get("key", *data_ready_);
82 storage_.Put("key", new std::string("bad-value"));
83 storage_.Put("key", new std::string("good-value"));
84 storage_.Get("key", *data_ready_);
H A Dvalidating_storage_test.cc53 storage_(wrapped_storage_),
59 Storage* const wrapped_storage_; // Owned by |storage_|.
60 ValidatingStorage storage_; member in class:__anon12607::ValidatingStorageTest
81 storage_.Put(kKey, new std::string(kValidatedData));
82 storage_.Get(kKey, *data_ready_);
90 storage_.Put(kKey, new std::string(kEmptyData));
91 storage_.Get(kKey, *data_ready_);
99 storage_.Get(kKey, *data_ready_);
107 storage_.Put(kKey, new std::string(kValidatedData));
109 storage_
[all...]
/external/chromium-trace/trace-viewer/src/base/
H A Dsettings.js11 var storage_ = localStorage;
35 var rawVal = storage_.getItem(key);
45 storage_.removeItem(Settings.namespace_(key, opt_namespace));
63 storage_.setItem(Settings.namespace_(key, opt_namespace), v);
76 for (var i = 0; i < storage_.length; i++) {
77 var key = storage_.key(i);
107 storage_ = instance;
110 if (storage_ === localStorage)
112 return storage_;
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/geocoding/
H A Darea_code_map.cc39 storage_.reset(storage);
43 const int entries = storage_->GetNumOfEntries();
54 const int* const lengths = storage_->GetPossibleLengths();
55 const int lengths_size = storage_->GetPossibleLengthsSize();
68 const int32 current_prefix = storage_->GetPrefix(current_index);
70 return storage_->GetDescription(current_index);
80 int32 current_value = storage_->GetPrefix(current);
/external/chromium_org/ui/gfx/image/
H A Dimage_skia.cc260 ImageSkia::ImageSkia() : storage_(NULL) {
264 : storage_(new internal::ImageSkiaStorage(source, size)) {
271 : storage_(new internal::ImageSkiaStorage(source, scale)) {
273 if (!storage_->has_source())
274 storage_ = NULL;
285 ImageSkia::ImageSkia(const ImageSkia& other) : storage_(other.storage_) {
289 storage_ = other.storage_;
333 std::vector<gfx::ImageSkiaRep>& reps = storage_
[all...]
/external/chromium_org/extensions/browser/value_store/
H A Dvalue_store_unittest.cc173 storage_.reset((GetParam())(temp_dir_.path().AppendASCII("dbName")));
174 ASSERT_TRUE(storage_.get());
178 storage_.reset();
182 EXPECT_PRED_FORMAT2(SettingsEq, *empty_dict_, storage_->Get(key1_));
183 EXPECT_PRED_FORMAT2(SettingsEq, *empty_dict_, storage_->Get(empty_list_));
184 EXPECT_PRED_FORMAT2(SettingsEq, *empty_dict_, storage_->Get(list123_));
185 EXPECT_PRED_FORMAT2(SettingsEq, *empty_dict_, storage_->Get());
193 changes, storage_->Set(DEFAULTS, key1_, *val1_));
196 EXPECT_PRED_FORMAT2(SettingsEq, *dict1_, storage_->Get(key1_));
197 EXPECT_PRED_FORMAT2(SettingsEq, *empty_dict_, storage_
[all...]
H A Dvalue_store_frontend.cc18 Backend() : storage_(NULL) {}
22 DCHECK(!storage_);
25 storage_ = new LeveldbValueStore(db_path);
31 DCHECK(!storage_);
32 storage_ = storage.release();
38 ValueStore::ReadResult result = storage_->Get(key);
58 ValueStore::WriteResult result = storage_->Set(
68 storage_->Remove(key);
76 delete storage_;
78 BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE, storage_);
90 ValueStore* storage_; member in class:ValueStoreFrontend::Backend
[all...]
H A Dvalue_store_frontend_unittest.cc38 storage_.reset();
43 storage_.reset(new ValueStoreFrontend(db_path_));
47 storage_->Get(key, base::Bind(&ValueStoreFrontendTest::GetAndWait,
60 scoped_ptr<ValueStoreFrontend> storage_; member in class:ValueStoreFrontendTest
89 storage_->Set("key0", scoped_ptr<base::Value>(new base::FundamentalValue(0)));
90 storage_->Set("key1", scoped_ptr<base::Value>(new base::StringValue("new1")));
91 storage_->Remove("key2");
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
H A Dretriever.cc43 storage_(storage),
48 assert(storage_ != NULL);
49 storage_->Get(key, *validated_data_ready_);
79 storage_->Put(key, data);
94 ValidatingStorage* storage_; member in class:i18n::addressinput::__anon12564::Helper
105 : source_(source), storage_(new ValidatingStorage(storage)) {
107 assert(storage_ != NULL);
114 new Helper(key, retrieved, *source_, storage_.get());
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dresource_metadata_storage_unittest.cc27 storage_.reset(new ResourceMetadataStorage(
29 ASSERT_TRUE(storage_->Initialize());
32 // Overwrites |storage_|'s version.
35 ASSERT_EQ(FILE_ERROR_OK, storage_->GetHeader(&header));
37 EXPECT_EQ(FILE_ERROR_OK, storage_->PutHeader(header));
41 return storage_->CheckValidity();
44 leveldb::DB* resource_map() { return storage_->resource_map_.get(); }
50 storage_->resource_map_->Put(
59 storage_->resource_map_->Delete(
67 test_util::DestroyHelperForTests> storage_; member in class:drive::internal::ResourceMetadataStorageTest
[all...]
H A Dresource_metadata.cc73 storage_(storage),
95 if (!EnoughDiskSpaceIsAvailableForDBOperation(storage_->directory_path()))
98 FileError error = storage_->SetLargestChangestamp(0);
126 FileError error = storage_->GetEntry(util::kDriveGrandRootLocalId, &entry);
133 error = storage_->PutEntry(root);
140 error = storage_->PutEntry(entry);
149 error = storage_->GetEntry(util::kDriveOtherDirLocalId, &entry);
163 error = storage_->PutEntry(entry);
172 error = storage_->GetEntry(util::kDriveTrashDirLocalId, &entry);
188 error = storage_
[all...]
/external/chromium_org/chrome/browser/resources/chromeos/login/
H A Dscreen_context.js31 this.storage_ = {};
44 return this.storage_[key];
59 if (this.hasKey(key) && this.storage_[key] === value)
62 this.storage_[key] = value;
68 return this.storage_.hasOwnProperty(key);
84 oldValues[key] = this.storage_[key];
85 this.storage_[key] = changes[key];
/external/chromium_org/third_party/webrtc/base/
H A Dcryptstring.h79 storage_ = new char[32];
82 storage_[0] = 0;
91 memcpy(storage_ + length_, data, length);
93 storage_[length_] = '\0';
99 password->CopyTo(storage_ + length_, true);
108 return storage_;
119 char * old_storage = storage_;
127 storage_ = new char[capacity_];
130 memcpy(storage_, old_storage, length_);
143 storage_[
151 char * storage_; member in class:rtc::FormatCryptString
[all...]
/external/chromium_org/content/browser/appcache/
H A Dappcache_url_request_job.cc40 storage_(storage),
47 DCHECK(storage_);
67 storage_ = NULL; // not needed
74 storage_ = NULL; // not needed
126 storage_->LoadResponseInfo(
139 if (!storage_->service()->handler_factory()) {
155 storage_->LoadCache(cache_id_, this);
190 handler_source_reader_.reset(storage_->CreateResponseReader(
233 storage_ = NULL;
262 storage_
[all...]
/external/chromium_org/mojo/public/cpp/bindings/lib/
H A Darray_internal.cc33 : storage_(storage),
40 *storage_ |= mask_;
42 *storage_ &= ~mask_;
53 return (*storage_ & mask_) != 0;

Completed in 644 milliseconds

1234