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

Side by Side Diff: chrome/browser/download/download_request_limiter.cc

Issue 18919005: Migrate from googleurl/ includes to url/ ones in the remaining top-level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make googleurl a temp include rule - to prevent others including it again Created 7 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) 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/download/download_request_limiter.h" 5 #include "chrome/browser/download/download_request_limiter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.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/content_settings/tab_specific_content_settings.h" 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
11 #include "chrome/browser/download/download_request_infobar_delegate.h" 11 #include "chrome/browser/download/download_request_infobar_delegate.h"
12 #include "chrome/browser/infobars/infobar_service.h" 12 #include "chrome/browser/infobars/infobar_service.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/tab_contents/tab_util.h" 14 #include "chrome/browser/tab_contents/tab_util.h"
15 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 15 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
16 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h" 16 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h"
17 #include "content/public/browser/browser_context.h" 17 #include "content/public/browser/browser_context.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/navigation_controller.h" 19 #include "content/public/browser/navigation_controller.h"
20 #include "content/public/browser/navigation_entry.h" 20 #include "content/public/browser/navigation_entry.h"
21 #include "content/public/browser/notification_source.h" 21 #include "content/public/browser/notification_source.h"
22 #include "content/public/browser/notification_types.h" 22 #include "content/public/browser/notification_types.h"
23 #include "content/public/browser/render_process_host.h" 23 #include "content/public/browser/render_process_host.h"
24 #include "content/public/browser/resource_dispatcher_host.h" 24 #include "content/public/browser/resource_dispatcher_host.h"
25 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
26 #include "content/public/browser/web_contents_delegate.h" 26 #include "content/public/browser/web_contents_delegate.h"
27 #include "googleurl/src/gurl.h" 27 #include "url/gurl.h"
28 28
29 using content::BrowserThread; 29 using content::BrowserThread;
30 using content::NavigationController; 30 using content::NavigationController;
31 using content::NavigationEntry; 31 using content::NavigationEntry;
32 32
33 // TabDownloadState ------------------------------------------------------------ 33 // TabDownloadState ------------------------------------------------------------
34 34
35 DownloadRequestLimiter::TabDownloadState::TabDownloadState( 35 DownloadRequestLimiter::TabDownloadState::TabDownloadState(
36 DownloadRequestLimiter* host, 36 DownloadRequestLimiter* host,
37 content::WebContents* contents, 37 content::WebContents* contents,
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 bool allow) { 441 bool allow) {
442 BrowserThread::PostTask( 442 BrowserThread::PostTask(
443 BrowserThread::IO, FROM_HERE, base::Bind(callback, allow)); 443 BrowserThread::IO, FROM_HERE, base::Bind(callback, allow));
444 } 444 }
445 445
446 void DownloadRequestLimiter::Remove(TabDownloadState* state) { 446 void DownloadRequestLimiter::Remove(TabDownloadState* state) {
447 DCHECK(ContainsKey(state_map_, state->web_contents())); 447 DCHECK(ContainsKey(state_map_, state->web_contents()));
448 state_map_.erase(state->web_contents()); 448 state_map_.erase(state->web_contents());
449 delete state; 449 delete state;
450 } 450 }
OLDNEW
« no previous file with comments | « ash/screensaver/screensaver_view.h ('k') | chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698