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

Side by Side Diff: content/renderer/cache_storage/cache_storage_dispatcher.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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_
6 #define CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ 6 #define CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // ServiceWorkerScriptContext calls our OnMessageReceived directly. 46 // ServiceWorkerScriptContext calls our OnMessageReceived directly.
47 bool OnMessageReceived(const IPC::Message& message); 47 bool OnMessageReceived(const IPC::Message& message);
48 48
49 // Message handlers for CacheStorage messages from the browser process. 49 // Message handlers for CacheStorage messages from the browser process.
50 void OnCacheStorageHasSuccess(int thread_id, int request_id); 50 void OnCacheStorageHasSuccess(int thread_id, int request_id);
51 void OnCacheStorageOpenSuccess(int thread_id, int request_id, int cache_id); 51 void OnCacheStorageOpenSuccess(int thread_id, int request_id, int cache_id);
52 void OnCacheStorageDeleteSuccess(int thread_id, int request_id); 52 void OnCacheStorageDeleteSuccess(int thread_id, int request_id);
53 void OnCacheStorageKeysSuccess(int thread_id, 53 void OnCacheStorageKeysSuccess(int thread_id,
54 int request_id, 54 int request_id,
55 const std::vector<base::string16>& keys); 55 const std::vector<std::string>& keys);
56 void OnCacheStorageMatchSuccess(int thread_id, 56 void OnCacheStorageMatchSuccess(int thread_id,
57 int request_id, 57 int request_id,
58 const ServiceWorkerResponse& response); 58 const ServiceWorkerResponse& response);
59 59
60 void OnCacheStorageHasError(int thread_id, 60 void OnCacheStorageHasError(int thread_id,
61 int request_id, 61 int request_id,
62 blink::WebServiceWorkerCacheError reason); 62 blink::WebServiceWorkerCacheError reason);
63 void OnCacheStorageOpenError(int thread_id, 63 void OnCacheStorageOpenError(int thread_id,
64 int request_id, 64 int request_id,
65 blink::WebServiceWorkerCacheError reason); 65 blink::WebServiceWorkerCacheError reason);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 TimeMap cache_batch_times_; 214 TimeMap cache_batch_times_;
215 215
216 base::WeakPtrFactory<CacheStorageDispatcher> weak_factory_; 216 base::WeakPtrFactory<CacheStorageDispatcher> weak_factory_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcher); 218 DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcher);
219 }; 219 };
220 220
221 } // namespace content 221 } // namespace content
222 222
223 #endif // CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_ 223 #endif // CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/cache_storage/cache_storage_types.h ('k') | content/renderer/cache_storage/cache_storage_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698