Chromium Code Reviews

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

Issue 9712: AppCachePlumbing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file provides the embedder's side of random webkit glue functions. 5 // This file provides the embedder's side of random webkit glue functions.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 214 matching lines...)
225 const GURL& url, 225 const GURL& url,
226 const GURL& policy_url, 226 const GURL& policy_url,
227 const GURL& referrer, 227 const GURL& referrer,
228 const std::string& frame_origin, 228 const std::string& frame_origin,
229 const std::string& main_frame_origin, 229 const std::string& main_frame_origin,
230 const std::string& headers, 230 const std::string& headers,
231 const std::string& default_mime_type, 231 const std::string& default_mime_type,
232 int load_flags, 232 int load_flags,
233 int origin_pid, 233 int origin_pid,
234 ResourceType::Type resource_type, 234 ResourceType::Type resource_type,
235 int app_cache_context_id,
235 int routing_id) { 236 int routing_id) {
236 ResourceDispatcher* dispatch = RenderThread::current()->resource_dispatcher(); 237 ResourceDispatcher* dispatch = RenderThread::current()->resource_dispatcher();
237 return dispatch->CreateBridge(method, url, policy_url, referrer, 238 return dispatch->CreateBridge(method, url, policy_url, referrer,
238 frame_origin, main_frame_origin, headers, 239 frame_origin, main_frame_origin, headers,
239 default_mime_type, load_flags, origin_pid, 240 default_mime_type, load_flags, origin_pid,
240 resource_type, 0, routing_id); 241 resource_type, 0,
242 app_cache_context_id, routing_id);
241 } 243 }
242 244
243 void NotifyCacheStats() { 245 void NotifyCacheStats() {
244 // Update the browser about our cache 246 // Update the browser about our cache
245 // NOTE: Since this can be called from the plugin process, we might not have 247 // NOTE: Since this can be called from the plugin process, we might not have
246 // a RenderThread. Do nothing in that case. 248 // a RenderThread. Do nothing in that case.
247 if (!IsPluginProcess()) 249 if (!IsPluginProcess())
248 RenderThread::current()->InformHostOfCacheStatsLater(); 250 RenderThread::current()->InformHostOfCacheStatsLater();
249 } 251 }
250 252
251 253
252 } // namespace webkit_glue 254 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine