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

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

Issue 295063002: [NotLanded] Implement the fetching algorithm of the Web Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #include "core/html/HTMLHeadElement.h" 109 #include "core/html/HTMLHeadElement.h"
110 #include "core/html/HTMLInputElement.h" 110 #include "core/html/HTMLInputElement.h"
111 #include "core/html/HTMLLinkElement.h" 111 #include "core/html/HTMLLinkElement.h"
112 #include "core/html/PluginDocument.h" 112 #include "core/html/PluginDocument.h"
113 #include "core/inspector/InspectorController.h" 113 #include "core/inspector/InspectorController.h"
114 #include "core/inspector/ScriptCallStack.h" 114 #include "core/inspector/ScriptCallStack.h"
115 #include "core/loader/DocumentLoader.h" 115 #include "core/loader/DocumentLoader.h"
116 #include "core/loader/FrameLoadRequest.h" 116 #include "core/loader/FrameLoadRequest.h"
117 #include "core/loader/FrameLoader.h" 117 #include "core/loader/FrameLoader.h"
118 #include "core/loader/HistoryItem.h" 118 #include "core/loader/HistoryItem.h"
119 #include "core/loader/ManifestLoader.h"
119 #include "core/loader/SubstituteData.h" 120 #include "core/loader/SubstituteData.h"
120 #include "core/page/Chrome.h" 121 #include "core/page/Chrome.h"
121 #include "core/page/EventHandler.h" 122 #include "core/page/EventHandler.h"
122 #include "core/page/FocusController.h" 123 #include "core/page/FocusController.h"
123 #include "core/page/FrameTree.h" 124 #include "core/page/FrameTree.h"
124 #include "core/page/Page.h" 125 #include "core/page/Page.h"
125 #include "core/page/PrintContext.h" 126 #include "core/page/PrintContext.h"
126 #include "core/rendering/HitTestResult.h" 127 #include "core/rendering/HitTestResult.h"
127 #include "core/rendering/RenderBox.h" 128 #include "core/rendering/RenderBox.h"
128 #include "core/rendering/RenderFrame.h" 129 #include "core/rendering/RenderFrame.h"
(...skipping 15 matching lines...) Expand all
144 #include "platform/network/ResourceRequest.h" 145 #include "platform/network/ResourceRequest.h"
145 #include "platform/scroll/ScrollTypes.h" 146 #include "platform/scroll/ScrollTypes.h"
146 #include "platform/scroll/ScrollbarTheme.h" 147 #include "platform/scroll/ScrollbarTheme.h"
147 #include "platform/weborigin/KURL.h" 148 #include "platform/weborigin/KURL.h"
148 #include "platform/weborigin/SchemeRegistry.h" 149 #include "platform/weborigin/SchemeRegistry.h"
149 #include "platform/weborigin/SecurityPolicy.h" 150 #include "platform/weborigin/SecurityPolicy.h"
150 #include "public/platform/Platform.h" 151 #include "public/platform/Platform.h"
151 #include "public/platform/WebFloatPoint.h" 152 #include "public/platform/WebFloatPoint.h"
152 #include "public/platform/WebFloatRect.h" 153 #include "public/platform/WebFloatRect.h"
153 #include "public/platform/WebLayer.h" 154 #include "public/platform/WebLayer.h"
155 #include "public/platform/WebManifestRequest.h"
154 #include "public/platform/WebPoint.h" 156 #include "public/platform/WebPoint.h"
155 #include "public/platform/WebRect.h" 157 #include "public/platform/WebRect.h"
156 #include "public/platform/WebSize.h" 158 #include "public/platform/WebSize.h"
157 #include "public/platform/WebURLError.h" 159 #include "public/platform/WebURLError.h"
158 #include "public/platform/WebVector.h" 160 #include "public/platform/WebVector.h"
159 #include "public/web/WebConsoleMessage.h" 161 #include "public/web/WebConsoleMessage.h"
160 #include "public/web/WebDOMEvent.h" 162 #include "public/web/WebDOMEvent.h"
161 #include "public/web/WebDOMEventListener.h" 163 #include "public/web/WebDOMEventListener.h"
162 #include "public/web/WebDocument.h" 164 #include "public/web/WebDocument.h"
163 #include "public/web/WebFindOptions.h" 165 #include "public/web/WebFindOptions.h"
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 } 1562 }
1561 1563
1562 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const 1564 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const
1563 { 1565 {
1564 if (!frame()) 1566 if (!frame())
1565 return WebString(); 1567 return WebString();
1566 1568
1567 return WebString(frame()->layerTreeAsText(showDebugInfo ? LayerTreeIncludesD ebugInfo : LayerTreeNormal)); 1569 return WebString(frame()->layerTreeAsText(showDebugInfo ? LayerTreeIncludesD ebugInfo : LayerTreeNormal));
1568 } 1570 }
1569 1571
1572 void WebLocalFrameImpl::requestManifest(WebManifestRequest& request) const
1573 {
1574 if (!frame()) {
1575 request.requestFailed(blink::WebManifestRequest::NoLinkManifest);
1576 return;
1577 }
1578
1579 ManifestLoader::loadManifest(&request, frame()->document());
1580 }
1581
1570 // WebLocalFrameImpl public ---------------------------------------------------- ----- 1582 // WebLocalFrameImpl public ---------------------------------------------------- -----
1571 1583
1572 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client) 1584 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client)
1573 { 1585 {
1574 return WebLocalFrameImpl::create(client); 1586 return WebLocalFrameImpl::create(client);
1575 } 1587 }
1576 1588
1577 WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client) 1589 WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client)
1578 { 1590 {
1579 return adoptRef(new WebLocalFrameImpl(client)).leakRef(); 1591 return adoptRef(new WebLocalFrameImpl(client)).leakRef();
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 1924
1913 void WebLocalFrameImpl::invalidateAll() const 1925 void WebLocalFrameImpl::invalidateAll() const
1914 { 1926 {
1915 ASSERT(frame() && frame()->view()); 1927 ASSERT(frame() && frame()->view());
1916 FrameView* view = frame()->view(); 1928 FrameView* view = frame()->view();
1917 view->invalidateRect(view->frameRect()); 1929 view->invalidateRect(view->frameRect());
1918 invalidateScrollbar(); 1930 invalidateScrollbar();
1919 } 1931 }
1920 1932
1921 } // namespace blink 1933 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698