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

Side by Side Diff: Source/web/NavigatorContentUtilsClientImpl.cpp

Issue 462353003: Cleanup namespace usage in Source/web[A-V]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor updates Created 6 years, 4 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
« no previous file with comments | « Source/web/MediaKeysClientImpl.cpp ('k') | Source/web/PageOverlay.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "web/NavigatorContentUtilsClientImpl.h" 6 #include "web/NavigatorContentUtilsClientImpl.h"
7 7
8 #include "public/web/WebViewClient.h" 8 #include "public/web/WebViewClient.h"
9 #include "web/WebViewImpl.h" 9 #include "web/WebViewImpl.h"
10 10
11 using namespace blink;
12
13 namespace blink { 11 namespace blink {
14 12
15 PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::cre ate(WebViewImpl* webView) 13 PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::cre ate(WebViewImpl* webView)
16 { 14 {
17 return adoptPtr(new NavigatorContentUtilsClientImpl(webView)); 15 return adoptPtr(new NavigatorContentUtilsClientImpl(webView));
18 } 16 }
19 17
20 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView) 18 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView)
21 : m_webView(webView) 19 : m_webView(webView)
22 { 20 {
23 } 21 }
24 22
25 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const blink::KURL& baseURL, const blink::KURL& url, const String& title) 23 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const KURL& baseURL, const KURL& url, const String& title)
26 { 24 {
27 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); 25 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
28 } 26 }
29 27
30 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl ::isProtocolHandlerRegistered(const String& scheme, const blink::KURL& baseURL, const blink::KURL& url) 28 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl ::isProtocolHandlerRegistered(const String& scheme, const KURL& baseURL, const K URL& url)
31 { 29 {
32 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); 30 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
33 } 31 }
34 32
35 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const blink::KURL& baseURL, const blink::KURL& url) 33 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const KURL& baseURL, const KURL& url)
36 { 34 {
37 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); 35 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
38 } 36 }
39 37
40 } // namespace blink 38 } // namespace blink
41 39
OLDNEW
« no previous file with comments | « Source/web/MediaKeysClientImpl.cpp ('k') | Source/web/PageOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698