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

Side by Side Diff: Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp

Issue 1226113002: Move protocol registration from WebViewClient to WebFrameClient, part 2/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 #include "config.h" 5 #include "config.h"
6 #include "InternalsNavigatorContentUtils.h" 6 #include "InternalsNavigatorContentUtils.h"
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/testing/Internals.h" 9 #include "core/testing/Internals.h"
10 #include "modules/navigatorcontentutils/NavigatorContentUtils.h" 10 #include "modules/navigatorcontentutils/NavigatorContentUtils.h"
11 #include "modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock. h" 11 #include "modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock. h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 void InternalsNavigatorContentUtils::setNavigatorContentUtilsClientMock(Internal s&, Document* document) 15 void InternalsNavigatorContentUtils::setNavigatorContentUtilsClientMock(Internal s&, Document* document)
16 { 16 {
17 ASSERT(document && document->page()); 17 ASSERT(document && document->page());
18 NavigatorContentUtils* navigatorContentUtils = NavigatorContentUtils::from(* document->page()); 18 NavigatorContentUtils* navigatorContentUtils = NavigatorContentUtils::from(* document->frame());
19 navigatorContentUtils->setClientForTest(adoptPtr(new NavigatorContentUtilsCl ientMock())); 19 navigatorContentUtils->setClientForTest(adoptPtr(new NavigatorContentUtilsCl ientMock()));
20 } 20 }
21 21
22 } // namespace blink 22 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/navigatorcontentutils/NavigatorContentUtilsClient.h ('k') | Source/web/NavigatorContentUtilsClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698