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

Unified Diff: content/renderer/renderer_blink_platform_impl.h

Issue 2643063002: Refactor Blink's ServiceConnector and add ability to mock in layout tests (Closed)
Patch Set: Fix build Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.h
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
index c5323258d8986ea91f9b677f772e55680f5a8d32..fbff08aa29876c351c1e10b9a068a597173adcba 100644
--- a/content/renderer/renderer_blink_platform_impl.h
+++ b/content/renderer/renderer_blink_platform_impl.h
@@ -19,6 +19,7 @@
#include "content/child/child_shared_bitmap_manager.h"
#include "content/common/content_export.h"
#include "content/common/url_loader_factory.mojom.h"
+#include "content/renderer/mojo/blink_connector_impl.h"
#include "content/renderer/origin_trials/web_trial_token_validator_impl.h"
#include "content/renderer/top_level_blame_context.h"
#include "content/renderer/webpublicsuffixlist_impl.h"
@@ -52,6 +53,7 @@ class Connector;
}
namespace content {
+class BlinkConnectorImpl;
class BlinkInterfaceProviderImpl;
class LocalStorageCachedAreas;
class PlatformEventObserverBase;
@@ -185,6 +187,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
const blink::WebSize& size) override;
blink::WebCompositorSupport* compositorSupport() override;
blink::WebString convertIDNToUnicode(const blink::WebString& host) override;
+ BlinkConnectorImpl* connector() override;
blink::InterfaceProvider* interfaceProvider() override;
void startListening(blink::WebPlatformEventType,
blink::WebPlatformEventListener*) override;
@@ -297,6 +300,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_;
+ std::unique_ptr<BlinkConnectorImpl> blink_connector_;
+
std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_;
mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_;
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698