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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 40143003: Simplify SharedWorkerRepository code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 6e38c3f158cc65e6483702a47702ad27cc489fc9..cc98fd8ad4054682c2a035726016ef5529c69acd 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -47,6 +47,7 @@
#include "PopupContainer.h"
#include "PrerendererClientImpl.h"
#include "RuntimeEnabledFeatures.h"
+#include "SharedWorkerRepositoryClientImpl.h"
#include "SpeechInputClientImpl.h"
#include "SpeechRecognitionClientProxy.h"
#include "ValidationMessageClientImpl.h"
@@ -370,6 +371,12 @@ void WebViewImpl::setPasswordGeneratorClient(WebPasswordGeneratorClient* client)
m_passwordGeneratorClient = client;
}
+void WebViewImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient* client)
+{
+ m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(client);
+ m_page->setSharedWorkerRepositoryClient(m_sharedWorkerRepositoryClient.get());
+}
+
WebViewImpl::WebViewImpl(WebViewClient* client)
: m_client(client)
, m_autofillClient(0)
@@ -471,6 +478,10 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
setVisibilityState(m_client->visibilityState(), true);
}
+ // FIXME: Remove this when the embedder starts to call
+ // setSharedWorkerRepositoryClient().
+ setSharedWorkerRepositoryClient(0);
+
m_inspectorSettingsMap = adoptPtr(new SettingsMap);
}
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698