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

Side by Side Diff: storage/browser/blob/blob_storage_context.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
« no previous file with comments | « no previous file | storage/browser/blob/blob_url_request_job_factory.cc » ('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) 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 "storage/browser/blob/blob_storage_context.h" 5 #include "storage/browser/blob/blob_storage_context.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "base/thread_task_runner_handle.h" 16 #include "base/thread_task_runner_handle.h"
17 #include "base/trace_event/trace_event.h" 17 #include "base/trace_event/trace_event.h"
18 #include "storage/browser/blob/blob_data_builder.h" 18 #include "storage/browser/blob/blob_data_builder.h"
19 #include "storage/browser/blob/blob_data_handle.h"
20 #include "url/gurl.h" 19 #include "url/gurl.h"
21 20
22 namespace storage { 21 namespace storage {
23 22
24 namespace { 23 namespace {
25 24
26 // We can't use GURL directly for these hash fragment manipulations 25 // We can't use GURL directly for these hash fragment manipulations
27 // since it doesn't have specific knowlege of the BlobURL format. GURL 26 // since it doesn't have specific knowlege of the BlobURL format. GURL
28 // treats BlobURLs as if they were PathURLs which don't support hash 27 // treats BlobURLs as if they were PathURLs which don't support hash
29 // fragments. 28 // fragments.
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 if (found == blob_map_.end()) 470 if (found == blob_map_.end())
472 return false; 471 return false;
473 return found->second->IsBeingBuilt(); 472 return found->second->IsBeingBuilt();
474 } 473 }
475 474
476 bool BlobStorageContext::IsUrlRegistered(const GURL& blob_url) { 475 bool BlobStorageContext::IsUrlRegistered(const GURL& blob_url) {
477 return public_blob_urls_.find(blob_url) != public_blob_urls_.end(); 476 return public_blob_urls_.find(blob_url) != public_blob_urls_.end();
478 } 477 }
479 478
480 } // namespace storage 479 } // namespace storage
OLDNEW
« no previous file with comments | « no previous file | storage/browser/blob/blob_url_request_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698