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

Side by Side Diff: content/browser/cache_storage/cache_storage_dispatcher_host.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/cache_storage/cache_storage_dispatcher_host.h" 5 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h"
6 6
7 #include <stddef.h>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h"
9 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
10 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
11 #include "base/trace_event/trace_event.h" 14 #include "base/trace_event/trace_event.h"
12 #include "content/browser/bad_message.h" 15 #include "content/browser/bad_message.h"
13 #include "content/browser/cache_storage/cache_storage_cache.h" 16 #include "content/browser/cache_storage/cache_storage_cache.h"
14 #include "content/browser/cache_storage/cache_storage_context_impl.h" 17 #include "content/browser/cache_storage/cache_storage_context_impl.h"
15 #include "content/browser/cache_storage/cache_storage_manager.h" 18 #include "content/browser/cache_storage/cache_storage_manager.h"
16 #include "content/common/cache_storage/cache_storage_messages.h" 19 #include "content/common/cache_storage/cache_storage_messages.h"
17 #include "content/public/browser/content_browser_client.h" 20 #include "content/public/browser/content_browser_client.h"
18 #include "content/public/common/origin_util.h" 21 #include "content/public/common/origin_util.h"
19 #include "storage/browser/blob/blob_data_handle.h" 22 #include "storage/browser/blob/blob_data_handle.h"
20 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerCacheError.h" 23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerCacheError.h"
21 24
22 namespace content { 25 namespace content {
23 26
24 namespace { 27 namespace {
25 28
26 const uint32 kFilteredMessageClasses[] = {CacheStorageMsgStart}; 29 const uint32_t kFilteredMessageClasses[] = {CacheStorageMsgStart};
27 30
28 blink::WebServiceWorkerCacheError ToWebServiceWorkerCacheError( 31 blink::WebServiceWorkerCacheError ToWebServiceWorkerCacheError(
29 CacheStorageError err) { 32 CacheStorageError err) {
30 switch (err) { 33 switch (err) {
31 case CACHE_STORAGE_OK: 34 case CACHE_STORAGE_OK:
32 NOTREACHED(); 35 NOTREACHED();
33 return blink::WebServiceWorkerCacheErrorNotImplemented; 36 return blink::WebServiceWorkerCacheErrorNotImplemented;
34 case CACHE_STORAGE_ERROR_EXISTS: 37 case CACHE_STORAGE_ERROR_EXISTS:
35 return blink::WebServiceWorkerCacheErrorExists; 38 return blink::WebServiceWorkerCacheErrorExists;
36 case CACHE_STORAGE_ERROR_STORAGE: 39 case CACHE_STORAGE_ERROR_STORAGE:
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 UUIDToBlobDataHandleList::iterator it = blob_handle_store_.find(uuid); 505 UUIDToBlobDataHandleList::iterator it = blob_handle_store_.find(uuid);
503 if (it == blob_handle_store_.end()) 506 if (it == blob_handle_store_.end())
504 return; 507 return;
505 DCHECK(!it->second.empty()); 508 DCHECK(!it->second.empty());
506 it->second.pop_front(); 509 it->second.pop_front();
507 if (it->second.empty()) 510 if (it->second.empty())
508 blob_handle_store_.erase(it); 511 blob_handle_store_.erase(it);
509 } 512 }
510 513
511 } // namespace content 514 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/cache_storage/cache_storage_dispatcher_host.h ('k') | content/browser/cache_storage/cache_storage_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698