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

Side by Side Diff: content/shell/shell_download_manager_delegate.cc

Issue 9834092: Content shell: Use only public API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « content/shell/shell_content_browser_client.cc ('k') | content/shell/shell_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/shell/shell_download_manager_delegate.h" 5 #include "content/shell/shell_download_manager_delegate.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <commdlg.h> 9 #include <commdlg.h>
10 #endif 10 #endif
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "content/browser/download/download_state_info.h"
18 #include "content/browser/tab_contents/tab_contents.h"
19 #include "content/public/browser/browser_context.h" 17 #include "content/public/browser/browser_context.h"
20 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/download_manager.h" 19 #include "content/public/browser/download_manager.h"
20 #include "content/public/browser/web_contents.h"
22 #include "net/base/net_util.h" 21 #include "net/base/net_util.h"
23 22
24 namespace content { 23 namespace content {
25 24
26 ShellDownloadManagerDelegate::ShellDownloadManagerDelegate() 25 ShellDownloadManagerDelegate::ShellDownloadManagerDelegate()
27 : download_manager_(NULL) { 26 : download_manager_(NULL) {
28 } 27 }
29 28
30 ShellDownloadManagerDelegate::~ShellDownloadManagerDelegate(){ 29 ShellDownloadManagerDelegate::~ShellDownloadManagerDelegate(){
31 } 30 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 #endif 131 #endif
133 132
134 if (result.empty()) { 133 if (result.empty()) {
135 download_manager_->FileSelectionCanceled(download_id); 134 download_manager_->FileSelectionCanceled(download_id);
136 } else { 135 } else {
137 download_manager_->FileSelected(result, download_id); 136 download_manager_->FileSelected(result, download_id);
138 } 137 }
139 } 138 }
140 139
141 } // namespace content 140 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_content_browser_client.cc ('k') | content/shell/shell_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698