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

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: review comments Created 6 years, 7 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 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 } 1551 }
1550 1552
1551 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const 1553 WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const
1552 { 1554 {
1553 if (!frame()) 1555 if (!frame())
1554 return WebString(); 1556 return WebString();
1555 1557
1556 return WebString(frame()->layerTreeAsText(showDebugInfo ? LayerTreeIncludesD ebugInfo : LayerTreeNormal)); 1558 return WebString(frame()->layerTreeAsText(showDebugInfo ? LayerTreeIncludesD ebugInfo : LayerTreeNormal));
1557 } 1559 }
1558 1560
1561 void WebLocalFrameImpl::requestManifest(WebManifestRequest& request) const
1562 {
1563 if (!frame()) {
1564 request.requestFailed(blink::WebManifestRequest::NoLinkManifest);
1565 return;
1566 }
1567
1568 ManifestLoader::loadManifest(&request, frame()->document());
1569 }
1570
1559 // WebLocalFrameImpl public ---------------------------------------------------- ----- 1571 // WebLocalFrameImpl public ---------------------------------------------------- -----
1560 1572
1561 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client) 1573 WebLocalFrame* WebLocalFrame::create(WebFrameClient* client)
1562 { 1574 {
1563 return WebLocalFrameImpl::create(client); 1575 return WebLocalFrameImpl::create(client);
1564 } 1576 }
1565 1577
1566 WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client) 1578 WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client)
1567 { 1579 {
1568 return adoptRef(new WebLocalFrameImpl(client)).leakRef(); 1580 return adoptRef(new WebLocalFrameImpl(client)).leakRef();
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 1913
1902 void WebLocalFrameImpl::invalidateAll() const 1914 void WebLocalFrameImpl::invalidateAll() const
1903 { 1915 {
1904 ASSERT(frame() && frame()->view()); 1916 ASSERT(frame() && frame()->view());
1905 FrameView* view = frame()->view(); 1917 FrameView* view = frame()->view();
1906 view->invalidateRect(view->frameRect()); 1918 view->invalidateRect(view->frameRect());
1907 invalidateScrollbar(); 1919 invalidateScrollbar();
1908 } 1920 }
1909 1921
1910 } // namespace blink 1922 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698