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

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

Issue 3009005: Chrome side of changes required to populate appcache resource list.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/renderer_webapplicationcachehost_impl.h" 5 #include "chrome/renderer/renderer_webapplicationcachehost_impl.h"
6 6
7 #include "chrome/common/content_settings_types.h" 7 #include "chrome/common/content_settings_types.h"
8 #include "chrome/renderer/render_thread.h" 8 #include "chrome/renderer/render_thread.h"
9 #include "chrome/renderer/render_view.h" 9 #include "chrome/renderer/render_view.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
(...skipping 25 matching lines...) Expand all
36 WebKit::WebString::fromUTF8(message.c_str()))); 36 WebKit::WebString::fromUTF8(message.c_str())));
37 } 37 }
38 38
39 void RendererWebApplicationCacheHostImpl::OnContentBlocked( 39 void RendererWebApplicationCacheHostImpl::OnContentBlocked(
40 const GURL& manifest_url) { 40 const GURL& manifest_url) {
41 RenderThread::current()->Send(new ViewHostMsg_AppCacheAccessed( 41 RenderThread::current()->Send(new ViewHostMsg_AppCacheAccessed(
42 routing_id_, manifest_url, true)); 42 routing_id_, manifest_url, true));
43 } 43 }
44 44
45 void RendererWebApplicationCacheHostImpl::OnCacheSelected( 45 void RendererWebApplicationCacheHostImpl::OnCacheSelected(
46 int64 selected_cache_id, appcache::Status status) { 46 const appcache::AppCacheInfo& info) {
47 // TODO(jochen): Send a ViewHostMsg_AppCacheAccessed to the browser once this 47 // TODO(jochen): Send a ViewHostMsg_AppCacheAccessed to the browser once this
48 // methods gets the manifest url passed. 48 // methods gets the manifest url passed.
49 WebApplicationCacheHostImpl::OnCacheSelected(selected_cache_id, status); 49 WebApplicationCacheHostImpl::OnCacheSelected(info);
50 } 50 }
51 51
52 RenderView* RendererWebApplicationCacheHostImpl::GetRenderView() { 52 RenderView* RendererWebApplicationCacheHostImpl::GetRenderView() {
53 return static_cast<RenderView*> 53 return static_cast<RenderView*>
54 (RenderThread::current()->ResolveRoute(routing_id_)); 54 (RenderThread::current()->ResolveRoute(routing_id_));
55 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698