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

Side by Side Diff: storage/browser/blob/blob_url_request_job_factory.cc

Issue 1139323003: Discard duplicate includes of files from storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments Created 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "storage/browser/blob/blob_url_request_job_factory.h" 5 #include "storage/browser/blob/blob_url_request_job_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h"
9 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
10 #include "net/base/request_priority.h" 9 #include "net/base/request_priority.h"
11 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
12 #include "net/url_request/url_request_job_factory.h"
13 #include "storage/browser/blob/blob_data_handle.h" 11 #include "storage/browser/blob/blob_data_handle.h"
14 #include "storage/browser/blob/blob_storage_context.h" 12 #include "storage/browser/blob/blob_storage_context.h"
15 #include "storage/browser/blob/blob_url_request_job.h" 13 #include "storage/browser/blob/blob_url_request_job.h"
16 #include "storage/browser/fileapi/file_system_context.h" 14 #include "storage/browser/fileapi/file_system_context.h"
17 15
18 namespace storage { 16 namespace storage {
19 17
20 namespace { 18 namespace {
21 19
22 int kUserDataKey; // The value is not important, the addr is a key. 20 int kUserDataKey; // The value is not important, the addr is a key.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 scoped_ptr<BlobDataHandle> handle = context_->GetBlobDataFromUUID(uuid); 84 scoped_ptr<BlobDataHandle> handle = context_->GetBlobDataFromUUID(uuid);
87 scoped_ptr<BlobDataSnapshot> snapshot; 85 scoped_ptr<BlobDataSnapshot> snapshot;
88 if (handle) { 86 if (handle) {
89 snapshot = handle->CreateSnapshot().Pass(); 87 snapshot = handle->CreateSnapshot().Pass();
90 SetRequestedBlobDataHandle(request, handle.Pass()); 88 SetRequestedBlobDataHandle(request, handle.Pass());
91 } 89 }
92 return snapshot.Pass(); 90 return snapshot.Pass();
93 } 91 }
94 92
95 } // namespace storage 93 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_storage_context.cc ('k') | storage/browser/database/database_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698