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

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

Issue 1194003004: Oilpan: enable appcache + move DocumentLoader to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 6 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/FrameLoaderClientImpl.h ('k') | Source/web/WebDataSourceImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 if (m_webFrame->client()) 643 if (m_webFrame->client())
644 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url); 644 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url);
645 } 645 }
646 646
647 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele ctors, const Vector<String>& removedSelectors) 647 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele ctors, const Vector<String>& removedSelectors)
648 { 648 {
649 if (WebFrameClient* client = m_webFrame->client()) 649 if (WebFrameClient* client = m_webFrame->client())
650 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We bVector<WebString>(removedSelectors)); 650 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We bVector<WebString>(removedSelectors));
651 } 651 }
652 652
653 PassRefPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader(LocalFram e* frame, const ResourceRequest& request, const SubstituteData& data) 653 PassRefPtrWillBeRawPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoad er(LocalFrame* frame, const ResourceRequest& request, const SubstituteData& data )
654 { 654 {
655 RefPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(frame, request, dat a); 655 RefPtrWillBeRawPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(frame, request, data);
656 if (m_webFrame->client()) 656 if (m_webFrame->client())
657 m_webFrame->client()->didCreateDataSource(m_webFrame, ds.get()); 657 m_webFrame->client()->didCreateDataSource(m_webFrame, ds.get());
658 return ds.release(); 658 return ds.release();
659 } 659 }
660 660
661 String FrameLoaderClientImpl::userAgent(const KURL& url) 661 String FrameLoaderClientImpl::userAgent(const KURL& url)
662 { 662 {
663 WebString override = m_webFrame->client()->userAgentOverride(m_webFrame, Web URL(url)); 663 WebString override = m_webFrame->client()->userAgentOverride(m_webFrame, Web URL(url));
664 if (!override.isEmpty()) 664 if (!override.isEmpty())
665 return override; 665 return override;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 959
960 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 960 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
961 { 961 {
962 if (m_webFrame->client()) { 962 if (m_webFrame->client()) {
963 m_webFrame->client()->suddenTerminationDisablerChanged( 963 m_webFrame->client()->suddenTerminationDisablerChanged(
964 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 964 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
965 } 965 }
966 } 966 }
967 967
968 } // namespace blink 968 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebDataSourceImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698