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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 | Annotate | Revision Log
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/Source/WebKit/chromium/public/WebFrame.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
12 12
13 using appcache::AppCacheBackend; 13 using appcache::AppCacheBackend;
14 using WebKit::WebApplicationCacheHostClient; 14 using WebKit::WebApplicationCacheHostClient;
15 using WebKit::WebConsoleMessage; 15 using WebKit::WebConsoleMessage;
16 16
17 namespace content {
18
17 RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl( 19 RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl(
18 RenderViewImpl* render_view, 20 RenderViewImpl* render_view,
19 WebApplicationCacheHostClient* client, 21 WebApplicationCacheHostClient* client,
20 AppCacheBackend* backend) 22 AppCacheBackend* backend)
21 : WebApplicationCacheHostImpl(client, backend), 23 : WebApplicationCacheHostImpl(client, backend),
22 routing_id_(render_view->routing_id()) { 24 routing_id_(render_view->routing_id()) {
23 } 25 }
24 26
25 void RendererWebApplicationCacheHostImpl::OnLogMessage( 27 void RendererWebApplicationCacheHostImpl::OnLogMessage(
26 appcache::LogLevel log_level, const std::string& message) { 28 appcache::LogLevel log_level, const std::string& message) {
(...skipping 20 matching lines...) Expand all
47 RenderThreadImpl::current()->Send(new ViewHostMsg_AppCacheAccessed( 49 RenderThreadImpl::current()->Send(new ViewHostMsg_AppCacheAccessed(
48 routing_id_, info.manifest_url, false)); 50 routing_id_, info.manifest_url, false));
49 } 51 }
50 WebApplicationCacheHostImpl::OnCacheSelected(info); 52 WebApplicationCacheHostImpl::OnCacheSelected(info);
51 } 53 }
52 54
53 RenderViewImpl* RendererWebApplicationCacheHostImpl::GetRenderView() { 55 RenderViewImpl* RendererWebApplicationCacheHostImpl::GetRenderView() {
54 return static_cast<RenderViewImpl*> 56 return static_cast<RenderViewImpl*>
55 (RenderThreadImpl::current()->ResolveRoute(routing_id_)); 57 (RenderThreadImpl::current()->ResolveRoute(routing_id_));
56 } 58 }
59
60 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_webapplicationcachehost_impl.h ('k') | content/renderer/renderer_webcolorchooser_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698