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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 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 | 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 "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h" 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/download/download_request_limiter.h" 10 #include "chrome/browser/download/download_request_limiter.h"
(...skipping 26 matching lines...) Expand all
37 #include "content/public/browser/resource_context.h" 37 #include "content/public/browser/resource_context.h"
38 #include "net/base/load_flags.h" 38 #include "net/base/load_flags.h"
39 #include "net/base/ssl_config_service.h" 39 #include "net/base/ssl_config_service.h"
40 40
41 // TODO(oshima): Enable this for other platforms. 41 // TODO(oshima): Enable this for other platforms.
42 #if defined(OS_CHROMEOS) 42 #if defined(OS_CHROMEOS)
43 #include "chrome/browser/renderer_host/offline_resource_throttle.h" 43 #include "chrome/browser/renderer_host/offline_resource_throttle.h"
44 #endif 44 #endif
45 45
46 using content::BrowserThread; 46 using content::BrowserThread;
47 using content::RenderViewHost;
47 using content::ResourceDispatcherHostLoginDelegate; 48 using content::ResourceDispatcherHostLoginDelegate;
48 49
49 namespace { 50 namespace {
50 51
51 void AddPrerenderOnUI( 52 void AddPrerenderOnUI(
52 int render_process_id, int render_view_id, 53 int render_process_id, int render_view_id,
53 const GURL& url, const content::Referrer& referrer) { 54 const GURL& url, const content::Referrer& referrer) {
54 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 55 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
55 prerender::PrerenderManager* prerender_manager = 56 prerender::PrerenderManager* prerender_manager =
56 prerender::FindPrerenderManagerUsingRenderProcessId(render_process_id); 57 prerender::FindPrerenderManagerUsingRenderProcessId(render_process_id);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 ResourceDispatcherHostRequestInfo* info = 345 ResourceDispatcherHostRequestInfo* info =
345 resource_dispatcher_host_->InfoForRequest(request); 346 resource_dispatcher_host_->InfoForRequest(request);
346 347
347 // See if the response contains the X-Google-Accounts-SignIn header. If so, 348 // See if the response contains the X-Google-Accounts-SignIn header. If so,
348 // then the user has just finished signing in, and the server is allowing the 349 // then the user has just finished signing in, and the server is allowing the
349 // browser to suggest connecting the user's profile to the account. 350 // browser to suggest connecting the user's profile to the account.
350 OneClickSigninHelper::ShowInfoBarIfPossible(request, info->child_id(), 351 OneClickSigninHelper::ShowInfoBarIfPossible(request, info->child_id(),
351 info->route_id()); 352 info->route_id());
352 #endif 353 #endif
353 } 354 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698