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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2410333006: Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). (Closed)
Patch Set: add comment in sw_fetch_dispatcher.cc and split the media test change to 2427363004 Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class RenderWidgetHelper; 70 class RenderWidgetHelper;
71 class RenderWidgetHost; 71 class RenderWidgetHost;
72 class RenderWidgetHostImpl; 72 class RenderWidgetHostImpl;
73 class RenderWidgetHostViewFrameSubscriber; 73 class RenderWidgetHostViewFrameSubscriber;
74 class ResourceMessageFilter; 74 class ResourceMessageFilter;
75 class StoragePartition; 75 class StoragePartition;
76 class StoragePartitionImpl; 76 class StoragePartitionImpl;
77 77
78 namespace mojom { 78 namespace mojom {
79 class StoragePartitionService; 79 class StoragePartitionService;
80 } 80 class URLLoaderFactory;
81 } // namespace mojom
81 82
82 typedef base::Thread* (*RendererMainThreadFactoryFunction)( 83 typedef base::Thread* (*RendererMainThreadFactoryFunction)(
83 const InProcessChildThreadParams& params); 84 const InProcessChildThreadParams& params);
84 85
85 // Implements a concrete RenderProcessHost for the browser process for talking 86 // Implements a concrete RenderProcessHost for the browser process for talking
86 // to actual renderer processes (as opposed to mocks). 87 // to actual renderer processes (as opposed to mocks).
87 // 88 //
88 // Represents the browser side of the browser <--> renderer communication 89 // Represents the browser side of the browser <--> renderer communication
89 // channel. There will be one RenderProcessHost per renderer process. 90 // channel. There will be one RenderProcessHost per renderer process.
90 // 91 //
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 void EnableAecDumpForId(const base::FilePath& file, int id); 373 void EnableAecDumpForId(const base::FilePath& file, int id);
373 // Sends |file_for_transit| to the render process. 374 // Sends |file_for_transit| to the render process.
374 void SendAecDumpFileToRenderer(int id, 375 void SendAecDumpFileToRenderer(int id,
375 IPC::PlatformFileForTransit file_for_transit); 376 IPC::PlatformFileForTransit file_for_transit);
376 void SendDisableAecDumpToRenderer(); 377 void SendDisableAecDumpToRenderer();
377 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); 378 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file);
378 #endif 379 #endif
379 380
380 static void OnMojoError(int render_process_id, const std::string& error); 381 static void OnMojoError(int render_process_id, const std::string& error);
381 382
383 static bool CreateURLLoaderFactory(
384 base::WeakPtr<RenderProcessHostImpl> weak_host,
385 mojo::InterfaceRequest<mojom::URLLoaderFactory> request);
386
382 template <typename InterfaceType> 387 template <typename InterfaceType>
383 using AddInterfaceCallback = 388 using AddInterfaceCallback =
384 base::Callback<void(mojo::InterfaceRequest<InterfaceType>)>; 389 base::Callback<void(mojo::InterfaceRequest<InterfaceType>)>;
385 390
386 template <typename CallbackType> 391 template <typename CallbackType>
387 struct InterfaceGetter; 392 struct InterfaceGetter;
388 393
389 template <typename InterfaceType> 394 template <typename InterfaceType>
390 struct InterfaceGetter<AddInterfaceCallback<InterfaceType>> { 395 struct InterfaceGetter<AddInterfaceCallback<InterfaceType>> {
391 static void GetInterfaceOnUIThread( 396 static void GetInterfaceOnUIThread(
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 instance_weak_factory_; 591 instance_weak_factory_;
587 592
588 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 593 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
589 594
590 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 595 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
591 }; 596 };
592 597
593 } // namespace content 598 } // namespace content
594 599
595 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 600 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698