summaryrefslogtreecommitdiff
path: root/chromium/content/browser/renderer_host/code_cache_host_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/renderer_host/code_cache_host_impl.h')
-rw-r--r--chromium/content/browser/renderer_host/code_cache_host_impl.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/content/browser/renderer_host/code_cache_host_impl.h b/chromium/content/browser/renderer_host/code_cache_host_impl.h
index 1f4a7f5401e..30b05af8512 100644
--- a/chromium/content/browser/renderer_host/code_cache_host_impl.h
+++ b/chromium/content/browser/renderer_host/code_cache_host_impl.h
@@ -44,14 +44,12 @@ class CONTENT_EXPORT CodeCacheHostImpl : public blink::mojom::CodeCacheHost {
CodeCacheHostImpl(
int render_process_id,
scoped_refptr<CacheStorageContextImpl> cache_storage_context,
- scoped_refptr<GeneratedCodeCacheContext> generated_code_cache_context);
- ~CodeCacheHostImpl() override;
-
- static void Create(
- int render_process_id,
- scoped_refptr<CacheStorageContextImpl> cache_storage_context,
scoped_refptr<GeneratedCodeCacheContext> generated_code_cache_context,
blink::mojom::CodeCacheHostRequest request);
+ ~CodeCacheHostImpl() override;
+
+ void SetCacheStorageContextForTesting(
+ scoped_refptr<CacheStorageContextImpl> context);
private:
// blink::mojom::CodeCacheHost implementation.
@@ -91,6 +89,8 @@ class CONTENT_EXPORT CodeCacheHostImpl : public blink::mojom::CodeCacheHost {
scoped_refptr<GeneratedCodeCacheContext> generated_code_cache_context_;
+ mojo::Binding<blink::mojom::CodeCacheHost> binding_;
+
base::WeakPtrFactory<CodeCacheHostImpl> weak_ptr_factory_{this};
DISALLOW_COPY_AND_ASSIGN(CodeCacheHostImpl);