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

Side by Side Diff: content/renderer/renderer_webapplicationcachehost_impl.cc

Issue 1750863002: Revert of Separate RenderView from RenderWidget, part 1: inheritance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderwidgettest
Patch Set: Created 4 years, 9 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 | « content/renderer/render_widget_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/renderer_webapplicationcachehost_impl.h" 5 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
6 6
7 #include "content/common/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "content/renderer/render_thread_impl.h" 8 #include "content/renderer/render_thread_impl.h"
9 #include "content/renderer/render_view_impl.h" 9 #include "content/renderer/render_view_impl.h"
10 #include "third_party/WebKit/public/web/WebFrame.h" 10 #include "third_party/WebKit/public/web/WebFrame.h"
11 #include "third_party/WebKit/public/web/WebView.h" 11 #include "third_party/WebKit/public/web/WebView.h"
12 12
13 using blink::WebApplicationCacheHostClient; 13 using blink::WebApplicationCacheHostClient;
14 using blink::WebConsoleMessage; 14 using blink::WebConsoleMessage;
15 15
16 namespace content { 16 namespace content {
17 17
18 RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl( 18 RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl(
19 RenderViewImpl* render_view, 19 RenderViewImpl* render_view,
20 WebApplicationCacheHostClient* client, 20 WebApplicationCacheHostClient* client,
21 AppCacheBackend* backend) 21 AppCacheBackend* backend)
22 : WebApplicationCacheHostImpl(client, backend), 22 : WebApplicationCacheHostImpl(client, backend),
23 routing_id_(render_view->GetRoutingID()) {} 23 routing_id_(render_view->routing_id()) {
24 }
24 25
25 void RendererWebApplicationCacheHostImpl::OnLogMessage( 26 void RendererWebApplicationCacheHostImpl::OnLogMessage(
26 AppCacheLogLevel log_level, const std::string& message) { 27 AppCacheLogLevel log_level, const std::string& message) {
27 if (RenderThreadImpl::current()->layout_test_mode()) 28 if (RenderThreadImpl::current()->layout_test_mode())
28 return; 29 return;
29 30
30 RenderViewImpl* render_view = GetRenderView(); 31 RenderViewImpl* render_view = GetRenderView();
31 if (!render_view || !render_view->webview() || 32 if (!render_view || !render_view->webview() ||
32 !render_view->webview()->mainFrame()) 33 !render_view->webview()->mainFrame())
33 return; 34 return;
(...skipping 17 matching lines...) Expand all
51 routing_id_, info.manifest_url, false)); 52 routing_id_, info.manifest_url, false));
52 } 53 }
53 WebApplicationCacheHostImpl::OnCacheSelected(info); 54 WebApplicationCacheHostImpl::OnCacheSelected(info);
54 } 55 }
55 56
56 RenderViewImpl* RendererWebApplicationCacheHostImpl::GetRenderView() { 57 RenderViewImpl* RendererWebApplicationCacheHostImpl::GetRenderView() {
57 return RenderViewImpl::FromRoutingID(routing_id_); 58 return RenderViewImpl::FromRoutingID(routing_id_);
58 } 59 }
59 60
60 } // namespace content 61 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698