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

Side by Side Diff: content/browser/indexed_db/indexed_db_backing_store.cc

Issue 2864243002: Cookies disabled for indexed_db_backing_store.cc (Closed)
Patch Set: Required header added. Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/browser/indexed_db/indexed_db_backing_store.h" 5 #include "content/browser/indexed_db/indexed_db_backing_store.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/browser/indexed_db/indexed_db_value.h" 32 #include "content/browser/indexed_db/indexed_db_value.h"
33 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" 33 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h"
34 #include "content/browser/indexed_db/leveldb/leveldb_database.h" 34 #include "content/browser/indexed_db/leveldb/leveldb_database.h"
35 #include "content/browser/indexed_db/leveldb/leveldb_factory.h" 35 #include "content/browser/indexed_db/leveldb/leveldb_factory.h"
36 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h" 36 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h"
37 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h" 37 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h"
38 #include "content/common/indexed_db/indexed_db_key.h" 38 #include "content/common/indexed_db/indexed_db_key.h"
39 #include "content/common/indexed_db/indexed_db_key_path.h" 39 #include "content/common/indexed_db/indexed_db_key_path.h"
40 #include "content/common/indexed_db/indexed_db_key_range.h" 40 #include "content/common/indexed_db/indexed_db_key_range.h"
41 #include "content/public/browser/browser_thread.h" 41 #include "content/public/browser/browser_thread.h"
42 #include "net/base/load_flags.h"
42 #include "net/url_request/url_request_context.h" 43 #include "net/url_request/url_request_context.h"
43 #include "storage/browser/blob/blob_data_handle.h" 44 #include "storage/browser/blob/blob_data_handle.h"
44 #include "storage/browser/fileapi/file_stream_writer.h" 45 #include "storage/browser/fileapi/file_stream_writer.h"
45 #include "storage/browser/fileapi/file_writer_delegate.h" 46 #include "storage/browser/fileapi/file_writer_delegate.h"
46 #include "storage/browser/fileapi/local_file_stream_writer.h" 47 #include "storage/browser/fileapi/local_file_stream_writer.h"
47 #include "storage/common/database/database_identifier.h" 48 #include "storage/common/database/database_identifier.h"
48 #include "storage/common/fileapi/file_system_mount_option.h" 49 #include "storage/common/fileapi/file_system_mount_option.h"
49 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" 50 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
50 #include "third_party/leveldatabase/env_chromium.h" 51 #include "third_party/leveldatabase/env_chromium.h"
51 52
(...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 std::unique_ptr<FileWriterDelegate> delegate( 2553 std::unique_ptr<FileWriterDelegate> delegate(
2553 base::MakeUnique<FileWriterDelegate>( 2554 base::MakeUnique<FileWriterDelegate>(
2554 std::move(writer), storage::FlushPolicy::FLUSH_ON_COMPLETION)); 2555 std::move(writer), storage::FlushPolicy::FLUSH_ON_COMPLETION));
2555 2556
2556 DCHECK(blob_url.is_valid()); 2557 DCHECK(blob_url.is_valid());
2557 net::URLRequestContext* request_context = 2558 net::URLRequestContext* request_context =
2558 request_context_getter->GetURLRequestContext(); 2559 request_context_getter->GetURLRequestContext();
2559 std::unique_ptr<net::URLRequest> blob_request( 2560 std::unique_ptr<net::URLRequest> blob_request(
2560 request_context->CreateRequest(blob_url, net::DEFAULT_PRIORITY, 2561 request_context->CreateRequest(blob_url, net::DEFAULT_PRIORITY,
2561 delegate.get())); 2562 delegate.get()));
2563 blob_request->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
2564 net::LOAD_DO_NOT_SEND_COOKIES);
2562 2565
2563 this->file_path_ = file_path; 2566 this->file_path_ = file_path;
2564 this->last_modified_ = last_modified; 2567 this->last_modified_ = last_modified;
2565 2568
2566 delegate->Start(std::move(blob_request), 2569 delegate->Start(std::move(blob_request),
2567 base::Bind(&LocalWriteClosure::Run, this)); 2570 base::Bind(&LocalWriteClosure::Run, this));
2568 chained_blob_writer_->set_delegate(std::move(delegate)); 2571 chained_blob_writer_->set_delegate(std::move(delegate));
2569 } 2572 }
2570 2573
2571 private: 2574 private:
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
4459 4462
4460 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( 4463 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor(
4461 const WriteDescriptor& other) = default; 4464 const WriteDescriptor& other) = default;
4462 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = 4465 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() =
4463 default; 4466 default;
4464 IndexedDBBackingStore::Transaction::WriteDescriptor& 4467 IndexedDBBackingStore::Transaction::WriteDescriptor&
4465 IndexedDBBackingStore::Transaction::WriteDescriptor:: 4468 IndexedDBBackingStore::Transaction::WriteDescriptor::
4466 operator=(const WriteDescriptor& other) = default; 4469 operator=(const WriteDescriptor& other) = default;
4467 4470
4468 } // namespace content 4471 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698