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

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

Issue 1768063002: Introduce String::fromUTF8Lenient() and use it for cache_name in CacheStorage API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated jsbell's comment Created 4 years, 9 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 | content/browser/cache_storage/cache_storage_dispatcher_host.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 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 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 ~CacheStorageDispatcherHost() override; 44 ~CacheStorageDispatcherHost() override;
45 45
46 // Called by Init() on IO thread. 46 // Called by Init() on IO thread.
47 void CreateCacheListener(CacheStorageContextImpl* context); 47 void CreateCacheListener(CacheStorageContextImpl* context);
48 48
49 // The message receiver functions for the CacheStorage API: 49 // The message receiver functions for the CacheStorage API:
50 void OnCacheStorageHas(int thread_id, 50 void OnCacheStorageHas(int thread_id,
51 int request_id, 51 int request_id,
52 const GURL& origin, 52 const GURL& origin,
53 const base::string16& cache_name); 53 const std::string& cache_name);
54 void OnCacheStorageOpen(int thread_id, 54 void OnCacheStorageOpen(int thread_id,
55 int request_id, 55 int request_id,
56 const GURL& origin, 56 const GURL& origin,
57 const base::string16& cache_name); 57 const std::string& cache_name);
58 void OnCacheStorageDelete(int thread_id, 58 void OnCacheStorageDelete(int thread_id,
59 int request_id, 59 int request_id,
60 const GURL& origin, 60 const GURL& origin,
61 const base::string16& cache_name); 61 const std::string& cache_name);
62 void OnCacheStorageKeys(int thread_id, int request_id, const GURL& origin); 62 void OnCacheStorageKeys(int thread_id, int request_id, const GURL& origin);
63 void OnCacheStorageMatch(int thread_id, 63 void OnCacheStorageMatch(int thread_id,
64 int request_id, 64 int request_id,
65 const GURL& origin, 65 const GURL& origin,
66 const ServiceWorkerFetchRequest& request, 66 const ServiceWorkerFetchRequest& request,
67 const CacheStorageCacheQueryParams& match_params); 67 const CacheStorageCacheQueryParams& match_params);
68 68
69 // The message receiver functions for the Cache API: 69 // The message receiver functions for the Cache API:
70 void OnCacheMatch(int thread_id, 70 void OnCacheMatch(int thread_id,
71 int request_id, 71 int request_id,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 UUIDToBlobDataHandleList blob_handle_store_; 162 UUIDToBlobDataHandleList blob_handle_store_;
163 163
164 scoped_refptr<CacheStorageContextImpl> context_; 164 scoped_refptr<CacheStorageContextImpl> context_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcherHost); 166 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcherHost);
167 }; 167 };
168 168
169 } // namespace content 169 } // namespace content
170 170
171 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_ 171 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698